Click here to Skip to main content
15,896,201 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: sending email from HTML pages Pin
Sushant_Mathur27-Feb-06 21:04
Sushant_Mathur27-Feb-06 21:04 
AnswerRe: sending email from HTML pages Pin
Sushant_Mathur28-Feb-06 0:29
Sushant_Mathur28-Feb-06 0:29 
GeneralRe: sending email from HTML pages Pin
deepak128-Feb-06 9:45
deepak128-Feb-06 9:45 
AnswerRe: sending email from HTML pages Pin
Sushant_Mathur28-Feb-06 19:24
Sushant_Mathur28-Feb-06 19:24 
GeneralRe: sending email from HTML pages Pin
deepak11-Mar-06 13:01
deepak11-Mar-06 13:01 
AnswerRe: sending email from HTML pages Pin
Sushant_Mathur1-Mar-06 18:53
Sushant_Mathur1-Mar-06 18:53 
GeneralRe: sending email from HTML pages Pin
Vasudevan Deepak Kumar1-Mar-06 23:01
Vasudevan Deepak Kumar1-Mar-06 23:01 
Questionstop postback in asp.net Pin
cmarmr27-Feb-06 16:38
cmarmr27-Feb-06 16:38 
how do i use my javascript to stop postback in the input is not correct i don't want it to post back to the server





here is the code:


private void Page_Load(object sender, System.EventArgs e)
{
// Form the script that is to be registered at client side.
String scriptString = "<script language=JavaScript> \n";
scriptString += "function DoClick()\n {\n";
scriptString += "\t myForm.show.value='Welcome to Microsoft .NET'; \n ";
scriptString += "return true;\n}";
scriptString += "</script>";

if(!this.IsClientScriptBlockRegistered("clientScript"))
this.RegisterClientScriptBlock("clientScript", scriptString);

button.Attributes["onclick"]="DoClick()";


}


here is the html:


<form id="myForm" runat="server">
<asp:TextBox id="show" runat="server" Width="196px"></asp:TextBox>
<asp:Button id="button" runat="server" Text="Button"></asp:Button>
</form>


Thanks
chad

-- modified at 22:40 Monday 27th February, 2006
AnswerRe: stop postback in asp.net Pin
Guffa27-Feb-06 19:08
Guffa27-Feb-06 19:08 
GeneralRe: stop postback in asp.net Pin
cmarmr28-Feb-06 4:58
cmarmr28-Feb-06 4:58 
AnswerRe: stop postback in asp.net Pin
Guffa28-Feb-06 7:31
Guffa28-Feb-06 7:31 
AnswerRe: stop postback in asp.net Pin
HimaBindu Vejella28-Feb-06 18:17
HimaBindu Vejella28-Feb-06 18:17 
QuestionSafari & Firefox go back button Pin
vicky45727-Feb-06 5:33
vicky45727-Feb-06 5:33 
AnswerRe: Safari & Firefox go back button Pin
Shog927-Feb-06 16:10
sitebuilderShog927-Feb-06 16:10 
Questionchatting With file attachment Pin
suresh_068127-Feb-06 4:41
suresh_068127-Feb-06 4:41 
QuestionWebCast Info Pin
Small Rat27-Feb-06 4:14
Small Rat27-Feb-06 4:14 
Questionwindow.open Pin
Trey549827-Feb-06 3:22
Trey549827-Feb-06 3:22 
AnswerRe: window.open Pin
Guffa27-Feb-06 4:10
Guffa27-Feb-06 4:10 
AnswerRe: window.open Pin
Vasudevan Deepak Kumar1-Mar-06 23:03
Vasudevan Deepak Kumar1-Mar-06 23:03 
QuestionHow to create IFRAMES in javascript? Pin
KaKa'26-Feb-06 20:11
KaKa'26-Feb-06 20:11 
AnswerRe: How to create IFRAMES in javascript? Pin
Guffa27-Feb-06 6:16
Guffa27-Feb-06 6:16 
QuestionMenus In ASP Pin
prabu.m26-Feb-06 7:27
prabu.m26-Feb-06 7:27 
AnswerRe: Menus In ASP Pin
Sushant_Mathur27-Feb-06 21:22
Sushant_Mathur27-Feb-06 21:22 
AnswerRe: Menus In ASP Pin
Vasudevan Deepak Kumar2-Mar-06 1:21
Vasudevan Deepak Kumar2-Mar-06 1:21 
Questionweb services Pin
nahaleh25-Feb-06 20:31
nahaleh25-Feb-06 20:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.