Click here to Skip to main content
15,888,297 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Server Error Pin
ToddHileHoffer30-Jan-09 3:20
ToddHileHoffer30-Jan-09 3:20 
QuestionAJAX UpdatePanel control Pin
Radhakrishnan G.30-Jan-09 3:06
Radhakrishnan G.30-Jan-09 3:06 
QuestionTreeView Control Pin
Civic0630-Jan-09 2:28
Civic0630-Jan-09 2:28 
AnswerRe: TreeView Control Pin
ToddHileHoffer30-Jan-09 2:34
ToddHileHoffer30-Jan-09 2:34 
GeneralRe: TreeView Control Pin
Civic0630-Jan-09 2:55
Civic0630-Jan-09 2:55 
GeneralRe: TreeView Control Pin
ToddHileHoffer30-Jan-09 3:09
ToddHileHoffer30-Jan-09 3:09 
QuestionCall a server function from javascript Pin
anderslundsgard30-Jan-09 2:08
anderslundsgard30-Jan-09 2:08 
AnswerRe: Call a server function from javascript Pin
ToddHileHoffer30-Jan-09 2:20
ToddHileHoffer30-Jan-09 2:20 
How I usually do this which may not be the best method. Drag a button on your form. Double Click it to get your server side code method. In the pageload hide the button from the user by adding the following:
<br />
   this.Button1.Style.Add("display", "none");<br />


Put your code server side in the button click's event. Then Add the following javascript to your page.
<br />
    function CallServerMethod() {<br />
             var Button1 = document.getElementById("<%=Button1.ClientID %>");<br />
             Button1.click();<br />
            }<br />


Now you can use the javascript "CallServerMethod()"


I didn't get any requirements for the signature


GeneralRe: Call a server function from javascript Pin
Christian Graus30-Jan-09 15:28
protectorChristian Graus30-Jan-09 15:28 
GeneralRe: Call a server function from javascript Pin
ToddHileHoffer30-Jan-09 15:58
ToddHileHoffer30-Jan-09 15:58 
GeneralRe: Call a server function from javascript Pin
anderslundsgard31-Jan-09 6:51
anderslundsgard31-Jan-09 6:51 
GeneralRe: Call a server function from javascript Pin
ToddHileHoffer31-Jan-09 8:30
ToddHileHoffer31-Jan-09 8:30 
AnswerRe: Call a server function from javascript Pin
Sundar_R30-Jan-09 7:22
Sundar_R30-Jan-09 7:22 
GeneralRe: Call a server function from javascript Pin
Christian Graus30-Jan-09 15:34
protectorChristian Graus30-Jan-09 15:34 
AnswerRe: Call a server function from javascript Pin
Christian Graus30-Jan-09 15:28
protectorChristian Graus30-Jan-09 15:28 
QuestionGridview Pin
5fingers30-Jan-09 1:56
5fingers30-Jan-09 1:56 
AnswerRe: Gridview Pin
Abhijit Jana30-Jan-09 2:04
professionalAbhijit Jana30-Jan-09 2:04 
GeneralRe: Gridview Pin
5fingers30-Jan-09 2:34
5fingers30-Jan-09 2:34 
GeneralRe: Gridview Pin
Abhijit Jana30-Jan-09 2:40
professionalAbhijit Jana30-Jan-09 2:40 
AnswerRe: Gridview Pin
Manas Bhardwaj30-Jan-09 2:05
professionalManas Bhardwaj30-Jan-09 2:05 
QuestionI want to add hyperlinks horizentally in my web page. Pin
Qasim198430-Jan-09 1:26
professionalQasim198430-Jan-09 1:26 
AnswerRe: I want to add hyperlinks horizentally in my web page. Pin
Manas Bhardwaj30-Jan-09 1:42
professionalManas Bhardwaj30-Jan-09 1:42 
Question[newbie] Data bound dropdownlist Pin
jon-8030-Jan-09 0:55
professionaljon-8030-Jan-09 0:55 
AnswerRe: [newbie] Data bound dropdownlist Pin
Manas Bhardwaj30-Jan-09 1:08
professionalManas Bhardwaj30-Jan-09 1:08 
Questionrefresh treeview Pin
nikhil123430-Jan-09 0:46
nikhil123430-Jan-09 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.