C
Christina
Hello !!
I want a link on my vb.net web application, which when clicked, popUp's
up and shows a msg.
AFAIK, Javascript is the best way to go.
So I created an asp:hyperlink, and on its 'on click' event, I have
something like:
Page.RegisterStartupScript("myWinName", showAPopUp(messageString),
where, showAPopUp is a code-behind function which has
window.Open(....). messageString is a string that I am building when
the click event occurs.
I have 2 problems :
1) When the 'on Click' event fires, it posts back the page (I beleive,
its posting it to the server). But I am trying to use client sides
scripting to avoid server posts. Does Page.RegisterStartupScript post
data to the server ? If yes, is there a way I can do this without
posting it to the server ?
2) In the same link mentioned above, this is the sequence i am
following, which creates a problem.
i click the hyperlink, it opens a pop-up, i close it, go to next page.
Now, when I click IE's back button, instead of showing just the
previous page, it shows me the popup first. Is there a way I can avoid
this too ?
Thanks !!
I want a link on my vb.net web application, which when clicked, popUp's
up and shows a msg.
AFAIK, Javascript is the best way to go.
So I created an asp:hyperlink, and on its 'on click' event, I have
something like:
Page.RegisterStartupScript("myWinName", showAPopUp(messageString),
where, showAPopUp is a code-behind function which has
window.Open(....). messageString is a string that I am building when
the click event occurs.
I have 2 problems :
1) When the 'on Click' event fires, it posts back the page (I beleive,
its posting it to the server). But I am trying to use client sides
scripting to avoid server posts. Does Page.RegisterStartupScript post
data to the server ? If yes, is there a way I can do this without
posting it to the server ?
2) In the same link mentioned above, this is the sequence i am
following, which creates a problem.
i click the hyperlink, it opens a pop-up, i close it, go to next page.
Now, when I click IE's back button, instead of showing just the
previous page, it shows me the popup first. Is there a way I can avoid
this too ?
Thanks !!