Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Java Script Validation in Web User Control - Urgent

Reply
Thread Tools

Java Script Validation in Web User Control - Urgent

 
 
Dinesh Reddy N Y
Guest
Posts: n/a
 
      04-12-2004
Hello EveryBody,

I am able to use to perform java script validations in the Web User
Control when i am using a Html Controls.

But is am facing problems when i try to run the same code after making the
HTML Controls as servercontrols ie runat = server.

The Same is working fine in normal .aspx file.

Here is the Java Script Function which is working before we make the
controls as runat = server


function List2Change()
{
if(document.all.List2.value == "Y")
{
document.all.trList3.style.display = ""; document.all.List3.focus();
}
else if(document.all.List2.value == "N")
{
document.all.trList3.style.display = "none";
}
}

When we make the Controls for eg: List2 in the code above as runat = server,
we are getting the foll Java Script error.

List2 is undifined

Can any one help me out in this issue.

Thanks and Regards

Dinesh Reddy N Y




 
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
Web user control - custom web control - java script. Leyla ASP .Net Web Controls 0 05-01-2006 10:05 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 1 10-04-2005 12:29 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net Web Controls 0 10-03-2005 10:23 AM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 0 10-03-2005 10:23 AM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM



Advertisments