Ajax page call
-
There are two pages , one is login page(aspx) and another is html page . i want to get login page desing into html page at runtime using Ajax is there any option to do that.
There's no built in option to do anything, you need to write code. Not sure what you want exactly, you want to download HTML using AJAX and inject it into your login page ?
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
There's no built in option to do anything, you need to write code. Not sure what you want exactly, you want to download HTML using AJAX and inject it into your login page ?
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
There are two pages , one is login page(aspx) and another is html page . i want to get login page desing into html page at runtime using Ajax is there any option to do that.
prabumjkaran wrote:
get login page desing into html page at runtime using Ajax
Weird. I would suggest you can have a simple login link and when you click popup a small DIV to get the username and password. Submit these through AJAX and based on the response either redirect the user or halt on the same page till further retries are exhausted by the user.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
OK - so you want to make a basic AJAX call, and inject the result into your page ? Not using theh ASP.NET AJAX library, as you call an ASPX but run it in a straight HTML page ? I guess you'll get your HTML as the string coming back from the AJAX call, and then you can just use document.getElementById to get a div or something in your page and set it's content to be the HTML.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
That is what is being classified as 'Wierd'. You might run into Scripting Errors when the XmlHttp fails due to any errors on the server.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson