Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > controls en undefined values

Reply
Thread Tools

controls en undefined values

 
 
Boris Nieuwenhuis
Guest
Posts: n/a
 
      11-06-2003
Hi,
I noticed this behaviour more often.
in the visual c# editor of .NET 1.1 if select a HTML control and then
select
it in the form editor and then right click and select run as server
control,
thhus changing it to a server side control, sometimes these controls don't
get initialised in the code behind.
For instance, now I have a radio group of 5 radio button, and I selected
them an made them run at server. If i put a breakpoint in my code behind
in
the page_load on these lines of code
if(Request["rdoAbonnement"]!=null){
if(Request.Form["rdoAbonnement"].Equals(Radio1.Value)){do something}
if(Request.Form["rdoAbonnement"].Equals(Radio2.Value)){do something}
if(Request.Form["rdoAbonnement"].Equals(Radio3.Value)){do something}
if(Request.Form["rdoAbonnement"].Equals(Radio4.Value)){do something}
if(Request.Form["rdoAbonnement"].Equals(Radio5.Value)){do something}
}
However Radio3 is a null reference, this control reference doesn;'t get
initialises. I saw this behaviour more often and with different types of
controls.
Anybody got an idea?
Greetz Boris




 
Reply With Quote
 
 
 
Reply

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
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski ASP .Net 4 09-05-2007 03:27 AM
typeof x == 'undefined' or x == undefined? -Lost Javascript 13 01-31-2007 12:04 AM
undefined vs. undefined (was: new Array() vs []) VK Javascript 45 09-12-2006 05:26 PM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM
Undefined array values Experienced but Undocumented Perl Misc 7 10-23-2003 08:55 PM



Advertisments