Skip to content
Loading
0
  • Mangesh G
    0
       U Need to make that Method as the webMethod Dinesh an call it using ajax 
     
    [WebMethod]
    public static Array Load()
    1. {
    2. string a=textbox1.text.Tostring();
    3. // I Can't access the controls inside a static method.
    4. }
    0
  • 0
    [System.Web.Services.WebMethod]
    public static Array Load()
    {
    //do something
    string a=textbox1.text ;//error
    } 
    0
  • Mangesh G
    0
    Dinesh Just clear My Doubt 
     
    You want to access the things On the Button Click 
     
    load should be called On the Button Click   is it right 
     
    its Bit confusing 
    0
  • 0
    Yea load should be on button click .
    0
  • 0
    Thanks for your effort,Thanks for your valuable time @ 
    Mangesh Gaherwar
    0
  • Mangesh G
    0
    Does it solved ur issue ? 
    0