|
-
Jul 21st, 2004, 05:04 AM
#1
Thread Starter
Junior Member
call javascript function
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
-
Jul 21st, 2004, 05:07 AM
#2
Fanatic Member
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?
-
Jul 21st, 2004, 05:30 AM
#3
Thread Starter
Junior Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|