-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: rathod_s
Message 13 in Discussion
Hi,
this code avoids the postback,but i need to get the values in session on button
click and then open the child window.When i come back from child window i get
those values from sessions.
So, i will need the postback on button click.
Help please. Anything like session in javascript!!!!!!
Thanks.
alladin <[EMAIL PROTECTED]> wrote:
New Message on BDOTNET
asp.net
Reply
Reply to Sender Recommend
Message 6 in Discussion
From: alladin
Hi,
There are 2 solutions to this problem
1) Add the following code to your button in the code behind file.
btnButtonName.Attributes.Add("onclick", "return javascriptfunctionname();");
in your javascript function return false i.e
function javascriptfunctionname()
{
window.open("");
return false;
}
This will not allow the button postback to fire.
2) Use an HTML Button instead of an aspbutton.
View other groups in this category.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]