Archive for the ‘ASP/.NET’ Category

Can I use Ajax with Microsoft’s .NET?

Thursday, March 25, 2010 11:35 No Comments

See http://ajax.schwarz-interactive.de/ for a free AJAX implementation for the .NET Framework.

This was posted under category: ASP/.NET, Ajax - Reverse Xaja

Check or Uncheck all in a group of checkbox in JavaScript

Thursday, March 11, 2010 3:23 1 Comment

JavaScript code to be kept before head tag.

<SCRIPT LANGUAGE="JavaScript">
function CheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = true ;
}

function UnCheckAll(chk)
{
for (i = 0; i < chk.length; i++)
chk[i].checked = false ;
}
</script>

HTML Code:

<form name="myform" action="checkboxes.asp" method="post">
<b>Scripts for Web design and programming</b><br>
<input type="checkbox" name="check_list" value="1">ASP<br>
<input type="checkbox" name="check_list" value="2">PHP<br>
<input type="checkbox" name="check_list" value="3">JavaScript<br>
<input type="checkbox" name="check_list" value="4">HTML<br>
<input type="checkbox" name="check_list" value="5">MySQL<br>

<input [...]

This was posted under category: ASP/.NET, PHP Interview Questions

Using Javascript to POST data between pages

Wednesday, February 17, 2010 11:42 1 Comment

The following is a simple example of how to submit data from one HTML page to another using the POST method from Javascript. Normally, if data needs to be sent from one HTML page to another, it is done by appending the information to the query parameter of the the URL in the familiar “name=value” [...]

This was posted under category: ASP/.NET, PHP Interview Questions

cURL to submit to an ASP/ASPX page

Saturday, August 29, 2009 22:46 No Comments

For anyone trying to use cURL to submit to an ASP/ASPX page that uses an image as the submit button.
Make sure that you have ‘button_name.x’ and ‘button_name.y’ in the post fields. PHP names these fields ‘button_name_x’ and ‘button_name_y’, while ASP uses a dot.
Also, as noted above, be sure to include the ‘__VIEWSTATE’ input field in [...]

This was posted under category: ASP/.NET, CURL PHP Examples