Click here to Skip to main content
15,893,190 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem with ajax dropdownbox Pin
N a v a n e e t h14-Aug-07 0:19
N a v a n e e t h14-Aug-07 0:19 
GeneralRe: problem with ajax dropdownbox Pin
anujose14-Aug-07 0:31
anujose14-Aug-07 0:31 
GeneralRe: problem with ajax dropdownbox Pin
Christian Graus14-Aug-07 0:40
protectorChristian Graus14-Aug-07 0:40 
GeneralRe: problem with ajax dropdownbox Pin
anujose14-Aug-07 0:49
anujose14-Aug-07 0:49 
GeneralRe: problem with ajax dropdownbox Pin
Christian Graus14-Aug-07 12:15
protectorChristian Graus14-Aug-07 12:15 
Questionfind primary key or foreign key Pin
VanithaVasu13-Aug-07 23:25
VanithaVasu13-Aug-07 23:25 
AnswerRe: find primary key or foreign key Pin
John-ph14-Aug-07 0:06
John-ph14-Aug-07 0:06 
Questionuploading XML file Pin
Milind Panchal13-Aug-07 23:02
Milind Panchal13-Aug-07 23:02 
Hi,

I have a following code

how to upload xml file to server.



// files upload function
function btn_send.onclick()
{
// create ADO-stream Object
var ado_stream = new ActiveXObject("ADODB.Stream");

// create XML document with default header and primary node
var xml_dom = new ActiveXObject("MSXML2.DOMDocument");
xml_dom.loadXML('<?xml version="1.0" ?> <root/>');
// specify namespaces datatypes
xml_dom.documentElement.setAttribute("xmlns:dt", "urn:schemas-microsoft-com:datatypes");

// create a new node and set binary content
var l_node1 = xml_dom.createElement("file1");
l_node1.dataType = "bin.base64";
// open stream object and read source file
ado_stream.Type = 1; // 1=adTypeBinary
ado_stream.Open();
ado_stream.LoadFromFile("c:\\tmp\\myfile.doc");
// store file content into XML node
l_node1.nodeTypedValue = ado_stream.Read(-1); // -1=adReadAll
ado_stream.Close();
xml_dom.documentElement.appendChild(l_node1);

// we can create more XML nodes for multiple file upload

// send XML documento to Web server
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("POST","./default.aspx",false);
xmlhttp.send(xml_dom);
// show server message in message-area
div_message.innerHTML = xmlhttp.ResponseText;
}

AnswerRe: uploading XML file Pin
Sandeep Akhare13-Aug-07 23:13
Sandeep Akhare13-Aug-07 23:13 
Questionsetting GridView's height dynamically Pin
vvijaykrishna13-Aug-07 22:09
vvijaykrishna13-Aug-07 22:09 
AnswerRe: setting GridView's height dynamically Pin
Imran Khan Pathan13-Aug-07 22:35
Imran Khan Pathan13-Aug-07 22:35 
QuestionAccess Data Types Pin
Whoami Whoami13-Aug-07 22:04
Whoami Whoami13-Aug-07 22:04 
AnswerRe: Access Data Types Pin
Whoami Whoami15-Sep-07 8:13
Whoami Whoami15-Sep-07 8:13 
Questionhow to pop-up a window in asp.net Pin
Priya S13-Aug-07 21:47
Priya S13-Aug-07 21:47 
AnswerRe: how to pop-up a window in asp.net Pin
Talal Sultan13-Aug-07 21:53
Talal Sultan13-Aug-07 21:53 
GeneralRe: how to pop-up a window in asp.net Pin
N a v a n e e t h13-Aug-07 22:21
N a v a n e e t h13-Aug-07 22:21 
GeneralRe: how to pop-up a window in asp.net Pin
Talal Sultan13-Aug-07 22:41
Talal Sultan13-Aug-07 22:41 
GeneralRe: how to pop-up a window in asp.net Pin
John-ph13-Aug-07 23:05
John-ph13-Aug-07 23:05 
AnswerRe: how to pop-up a window in asp.net Pin
N a v a n e e t h13-Aug-07 22:19
N a v a n e e t h13-Aug-07 22:19 
AnswerRe: how to pop-up a window in asp.net Pin
nandhububbly13-Aug-07 22:48
nandhububbly13-Aug-07 22:48 
GeneralRe: how to pop-up a window in asp.net Pin
Priya S13-Aug-07 23:33
Priya S13-Aug-07 23:33 
QuestionHow to stop server side event firing based on client side event Pin
here2learn13-Aug-07 21:42
here2learn13-Aug-07 21:42 
AnswerRe: How to stop server side event firing based on client side event Pin
Talal Sultan13-Aug-07 22:10
Talal Sultan13-Aug-07 22:10 
GeneralRe: How to stop server side event firing based on client side event Pin
here2learn13-Aug-07 22:26
here2learn13-Aug-07 22:26 
AnswerRe: How to stop server side event firing based on client side event Pin
N a v a n e e t h13-Aug-07 22:23
N a v a n e e t h13-Aug-07 22:23 

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.