Results 1 to 3 of 3

Thread: call javascript function

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Vienna
    Posts
    24

    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

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727
    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?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Vienna
    Posts
    24
    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
  •  



Click Here to Expand Forum to Full Width