Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: saving files from database Pin
Christian Graus9-Mar-08 23:28
protectorChristian Graus9-Mar-08 23:28 
GeneralRe: saving files from database Pin
Icarus1239-Mar-08 23:44
Icarus1239-Mar-08 23:44 
GeneralRe: saving files from database Pin
N a v a n e e t h9-Mar-08 23:49
N a v a n e e t h9-Mar-08 23:49 
GeneralRe: saving files from database Pin
Icarus12310-Mar-08 0:42
Icarus12310-Mar-08 0:42 
GeneralRe: saving files from database Pin
Christian Graus9-Mar-08 23:51
protectorChristian Graus9-Mar-08 23:51 
QuestionHow can access the arguments sent by (JavaScript request) ajax ? Pin
dipak.dipak9-Mar-08 21:20
dipak.dipak9-Mar-08 21:20 
GeneralRe: How can access the arguments sent by (JavaScript request) ajax ? Pin
Christian Graus9-Mar-08 23:31
protectorChristian Graus9-Mar-08 23:31 
QuestionRe: How can access the arguments sent by (JavaScript request) ajax ? Pin
dipak.dipak10-Mar-08 0:26
dipak.dipak10-Mar-08 0:26 
Thanks for reply.
I just need to get data "POST" from the client side (by javascript with send method) in the page asp.net page with C# code.

var xmlHttp = GetXmlHttpObject();
xmlHttp.open("POST","SaveInfo.aspx",true);
var args = "id=" + ID + "&name=" + Name + "&sex=" + Sex + "&age=" + Age;

xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlHttp.setRequestHeader("Content-length", args.length);
xmlHttp.setRequestHeader("Connection", "close");

xmlHttp.onreadystatechange = function theStateChanged()
{
alert(xmlHttp.status);
if (xmlHttp.readyState==4 && xmlHttp.status==200)
{
alert("Successfully Saved");
}
}
xmlHttp.Send(args);

So, this is the code.
I want to access the args from the page SaveInfo.aspx . how can access that to save those on the database using C# code on this page.

Please help me.

Dipak

GeneralRe: How can access the arguments sent by (JavaScript request) ajax ? Pin
leppie10-Mar-08 0:57
leppie10-Mar-08 0:57 
GeneralUsing tor to connect with different ip each time Pin
metallica_rock109-Mar-08 21:06
metallica_rock109-Mar-08 21:06 
General[Multiple Duplication of the Post :: Please Ignore] Re: Using tor to connect with different ip each time Pin
Vasudevan Deepak Kumar9-Mar-08 22:31
Vasudevan Deepak Kumar9-Mar-08 22:31 
Questionhow to check fax number if working or not via csharp Pin
Kennie_n20009-Mar-08 21:00
Kennie_n20009-Mar-08 21:00 
AnswerRe: how to check fax number if working or not via csharp Pin
N a v a n e e t h9-Mar-08 21:19
N a v a n e e t h9-Mar-08 21:19 
GeneralDoubt Pin
ganesamoorthy9-Mar-08 20:52
ganesamoorthy9-Mar-08 20:52 
GeneralRe: Doubt Pin
martin_hughes9-Mar-08 21:47
martin_hughes9-Mar-08 21:47 
GeneralDataGridViiew Problem Pin
AshokParikh9-Mar-08 20:51
AshokParikh9-Mar-08 20:51 
GeneralRe: DataGridViiew Problem Pin
Xmen Real 9-Mar-08 23:41
professional Xmen Real 9-Mar-08 23:41 
GeneralRe: DataGridViiew Problem Pin
AshokParikh10-Mar-08 2:00
AshokParikh10-Mar-08 2:00 
GeneralRe: DataGridViiew Problem Pin
Xmen Real 10-Mar-08 5:41
professional Xmen Real 10-Mar-08 5:41 
Questionfocus on a treeview node Pin
Krazy Programmer9-Mar-08 20:51
Krazy Programmer9-Mar-08 20:51 
GeneralRe: focus on a treeview node Pin
C1AllenS9-Mar-08 21:04
C1AllenS9-Mar-08 21:04 
GeneralRe: focus on a treeview node Pin
Krazy Programmer9-Mar-08 22:43
Krazy Programmer9-Mar-08 22:43 
GeneralExport CR xi to PDF Pin
fakeer4uever9-Mar-08 20:34
fakeer4uever9-Mar-08 20:34 
GeneralRe: Export CR xi to PDF Pin
Christian Graus9-Mar-08 20:40
protectorChristian Graus9-Mar-08 20:40 
GeneralRe: Export CR xi to PDF Pin
Vikram A Punathambekar9-Mar-08 21:50
Vikram A Punathambekar9-Mar-08 21:50 

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.