Hi!
I am an newbie in javascript. How can I start a function, which is written in javascript, in ASP.NET ?
Thanks in advanced for help,
Thomas
Printable View
Hi!
I am an newbie in javascript. How can I start a function, which is written in javascript, in ASP.NET ?
Thanks in advanced for help,
Thomas
you call the function within the html, like in the following example which is a button click:
<input type="submit" class="bginput" name="submit" value="Submit Reply" accesskey="s" tabindex="3" onclick="functionOne();>
The onclick event calls the function, which will be writeen in the head of the page or a seperate limked Javascript file.
What event do you want to start the function and do you need to pass any variables?
ok .. Perhaps I am totally on the wrong way. I describe my problem: I have 2 frames. In one there is a datagrid with some data. In the other one I have the menu buttons. In the menu buttons there is some asp code for selecting and formatting the data for the grid.
Now here is my problem: How can I refresh the frame with the datagrid ? I tried to make a function in javascript and wanted to call it, after I 've bind the datagrid. So I must call the function directly in ASP code.
Perhaps, there is another possibility directly in ASP without using javascript which I don't know.
Please help!