Attributes and Web Controls limitations?

  • Thread starter Thread starter Wayne
  • Start date Start date
W

Wayne

I have a <select> drop down list in a Web Control set to run at server side.

When I use the Attribute.Add routine it behaves a little strange:
ddlMenu1.Attribute.Add("OnChange", "location=this." & ddlMenu1.ClientID &
".SelectedIndex.Value")

That works, and adds the attribute inline, but when it fires it always
return NULL, no matter what.

In a straight forward HTML page that works, but not when in a control - is
this a limitation?
 
Wayne said:
I have a <select> drop down list in a Web Control set to run at server side.

When I use the Attribute.Add routine it behaves a little strange:
ddlMenu1.Attribute.Add("OnChange", "location=this." & ddlMenu1.ClientID &
".SelectedIndex.Value")

That works, and adds the attribute inline, but when it fires it always
return NULL, no matter what.

What exactly returns NULL, and what is NULL, anyway?
 
John Saunders said:
What exactly returns NULL, and what is NULL, anyway?

ddlMenu1.Value is returning NULL when it is suppose to return a numerical
value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top