Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Keep custom property-value in custom rendered control

Thread Tools

Keep custom property-value in custom rendered control

Rob Joosen
Posts: n/a
Hi there, here's the thing

I have a custom control (rendered) with a label, textbox and some validators. I use that for entering a birthdate, to check if someone has a minimum age.

So, I use the range-validator and fill the Maximumvalue en Minimumvalue-properties. This same validator is used to check if the user enters a date and not text

In my Page Load, I can set the values for the Min and Maxvalue. That works, because, when I check thesource of my page, I see the correct values.

But then, when I click the button to go to the next page, I see that these min-max values are reset to 1/1/1

Why is that, and more important, what can I do to prevent that

(source is available if needed)
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
edit attribute values of a web control just before control rendered to the page (control's Load event?) TJ ASP .Net Web Controls 4 04-07-2006 01:30 AM
Custom User Control is not rendered inside another user control in a server table. Leeor Chernov ASP .Net 2 10-16-2005 08:35 AM
Custom control and Rendered HTML Tag =?Utf-8?B?SSBhbSBTYW0=?= ASP .Net 0 06-01-2005 12:34 AM
Repeater control in a rendered custom control Cappy ASP .Net Building Controls 0 01-21-2004 03:44 PM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM