Click here to Skip to main content
15,905,323 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Error using Force Download Pin
Andy122791-Mar-06 3:42
Andy122791-Mar-06 3:42 
GeneralRe: Error using Force Download Pin
Vasudevan Deepak Kumar1-Mar-06 23:12
Vasudevan Deepak Kumar1-Mar-06 23:12 
GeneralRe: Error using Force Download - Solution Pin
Andy122794-Mar-06 17:19
Andy122794-Mar-06 17:19 
QuestionSHOUTcast server and Windows Media Services Pin
Mircea Grelus27-Feb-06 23:25
Mircea Grelus27-Feb-06 23:25 
QuestionWhiteboard in Flash Pin
thefrenzybug27-Feb-06 19:15
thefrenzybug27-Feb-06 19:15 
QuestionHow to use ASP Objects in VB Component Pin
Rajkamal_dfine27-Feb-06 19:03
Rajkamal_dfine27-Feb-06 19:03 
AnswerRe: How to use ASP Objects in VB Component Pin
Vasudevan Deepak Kumar2-Mar-06 1:19
Vasudevan Deepak Kumar2-Mar-06 1:19 
Questionsending email from HTML pages Pin
deepak127-Feb-06 17:26
deepak127-Feb-06 17:26 
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 

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.