View Single Post
  #3 (permalink)  
Old December 28th, 2006, 04:57 PM
savan_thakkar savan_thakkar is offline
Authorized User
Join Date: Feb 2006
Location: Ahmedabad, Gujarat, India.
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to savan_thakkar Send a message via Yahoo to savan_thakkar


Please check this code and let me know if it helps..

        FrontMaster fm = new FrontMaster();
        Content c=(Content)fm.FindControl("Content1");
        TextBox txt1 = (TextBox)c.FindControl("txt1");
        txt1.Attributes.Add("key", "YOUR SCRIPT GOES HERE...");

FrontMaster is your master page,Content1 is asp content control where the textbox resides and txt1 is textbox which needs to be validated...