Click here to Skip to main content
15,921,884 members
Home / Discussions / Web Development
   

Web Development

 
Questionweird characters returned in xmlhttp object Pin
TofuBug2428-Feb-06 13:05
TofuBug2428-Feb-06 13:05 
AnswerRe: weird characters returned in xmlhttp object Pin
Sushant_Mathur28-Feb-06 19:20
Sushant_Mathur28-Feb-06 19:20 
GeneralRe: weird characters returned in xmlhttp object Pin
TofuBug241-Mar-06 2:18
TofuBug241-Mar-06 2:18 
GeneralRe: weird characters returned in xmlhttp object Pin
Shog91-Mar-06 5:40
sitebuilderShog91-Mar-06 5:40 
QuestionError using Force Download Pin
Andy1227928-Feb-06 10:53
Andy1227928-Feb-06 10:53 
GeneralRe: Error using Force Download Pin
Guffa28-Feb-06 11:12
Guffa28-Feb-06 11:12 
GeneralRe: Error using Force Download Pin
Andy1227928-Feb-06 11:16
Andy1227928-Feb-06 11:16 
AnswerRe: Error using Force Download Pin
Guffa28-Feb-06 11:32
Guffa28-Feb-06 11:32 
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 

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.