-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: rathod_s
Message 12 in Discussion

i think you haven't got my reply so , rereplying.
 
 
Hurray !!!!!!!!!!!!!!!
 
           code behind worked.
Thanks.
 
If u wish then,
                   I have another problem in email messaging in html format.
If i copy-paste any content  like
 
Hi,
     how r u .
 i m fine . but wwhere are you.
 
Then it takes all content in one line ignoring the Enter keypress and all the 
spaces.
 
 
Thanks.
 
Hi,
can u please justify why return false didn't allow the button postback to get 
fired.
 
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!?
 
Yahoo! Small Business - Try our new resources site! 

-----------------------------------------------------------

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]

Reply via email to