Click here to Skip to main content
15,905,782 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDB access password Pin
Chrispie12311-Nov-09 0:24
Chrispie12311-Nov-09 0:24 
AnswerRe: DB access password Pin
Abhishek Sur11-Nov-09 0:35
professionalAbhishek Sur11-Nov-09 0:35 
GeneralRe: DB access password Pin
Chrispie12311-Nov-09 4:33
Chrispie12311-Nov-09 4:33 
GeneralRe: DB access password Pin
Abhishek Sur11-Nov-09 6:44
professionalAbhishek Sur11-Nov-09 6:44 
GeneralRe: DB access password Pin
Chrispie12326-Nov-09 3:22
Chrispie12326-Nov-09 3:22 
GeneralRe: DB access password Pin
Blikkies26-Nov-09 3:48
professionalBlikkies26-Nov-09 3:48 
GeneralRe: DB access password Pin
Abhishek Sur26-Nov-09 4:05
professionalAbhishek Sur26-Nov-09 4:05 
Questionradiolist diappear on postback Pin
anilaabc10-Nov-09 22:39
anilaabc10-Nov-09 22:39 
AnswerRe: radiolist diappear on postback Pin
Abhishek Sur11-Nov-09 0:37
professionalAbhishek Sur11-Nov-09 0:37 
QuestionFind Local Time From UCT Time Pin
adkalavadia10-Nov-09 22:36
adkalavadia10-Nov-09 22:36 
AnswerRe: Find Local Time From UCT Time Pin
Covean11-Nov-09 2:49
Covean11-Nov-09 2:49 
GeneralRe: Find Local Time From UCT Time Pin
adkalavadia11-Nov-09 18:50
adkalavadia11-Nov-09 18:50 
GeneralRe: Find Local Time From UCT Time Pin
Covean11-Nov-09 21:05
Covean11-Nov-09 21:05 
QuestiononChange Event in javascript Pin
Jacobb Michael10-Nov-09 21:36
Jacobb Michael10-Nov-09 21:36 
AnswerRe: onChange Event in javascript Pin
Petr Pechovic10-Nov-09 23:19
professionalPetr Pechovic10-Nov-09 23:19 
AnswerRe: onChange Event in javascript Pin
Abhishek Sur11-Nov-09 0:29
professionalAbhishek Sur11-Nov-09 0:29 
QuestionAjax Help [modified] Pin
JMAboliEnrich10-Nov-09 21:29
JMAboliEnrich10-Nov-09 21:29 
I want to use Ajax in External .js File...

I have some code in PHP which is similar to following...

function Validate()
{
var pars="selectedIndex="+strUname+"&objname=checkPid";
var url ='/checkUser.php';
var sucReqUname=function(t){
document.getElementById("chackingmsg").innerHTML="";
avail_uname=t;
if(t == "1"){ val_failed();
return false;
}
else{ val_success(o.id);}
}
getAjaxRes(url,pars,sucReqUname);

}
//common ajax
function getAjaxRes(url,params,ResRetFun){
var http = new GetXmlHttpObject();
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
http.onreadystatechange = function() {
if(http.readyState == 4 && http.status == 200)
ResRetFun(http.responseText);
}
http.send(params);
}
function GetXmlHttpObject(){
var xmlHttp=null;
try{ xmlHttp=new XMLHttpRequest();}
catch (e){// Internet Explorer
try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
}
return xmlHttp;
}


i want to use this code in java script .. can any one tell me how to use
this in asp.net in external .js file...

its urgent........
Thanks in advance....

modified on Wednesday, November 11, 2009 4:21 AM

QuestionVS 2008 - Web Setup Project Failed to install Pin
Jay_se10-Nov-09 20:35
Jay_se10-Nov-09 20:35 
Questioncrystal report column should use column separator Pin
vikas shukla10-Nov-09 20:10
vikas shukla10-Nov-09 20:10 
Questionradiobuttonlist with image Pin
creative7710-Nov-09 20:10
creative7710-Nov-09 20:10 
AnswerRe: radiobuttonlist with image Pin
Christian Graus10-Nov-09 20:19
protectorChristian Graus10-Nov-09 20:19 
GeneralRe: radiobuttonlist with image Pin
creative7710-Nov-09 20:32
creative7710-Nov-09 20:32 
GeneralRe: radiobuttonlist with image Pin
Christian Graus10-Nov-09 21:06
protectorChristian Graus10-Nov-09 21:06 
AnswerRe: radiobuttonlist with image Pin
Abhishek Sur10-Nov-09 20:31
professionalAbhishek Sur10-Nov-09 20:31 
QuestionHow to get live stream from webcam in our web page? Pin
Member 446605910-Nov-09 20:07
Member 446605910-Nov-09 20:07 

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.