Hi,
Plzz help me out.. I want to access values in HTML page which i am passing from an ASP.NET page... How to access plzzz help
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
sangmesh sangulage34 reputationPosted Jan 12, 2011, 6:54 PM EST
Just if you want to take values in .aspx page i.e in desing then use <%request.querystring[value] %> in that page and from first page pass the value in query string using response .redirect.
plz let me know if i am wrong I am considering your second page is aspx page.
George Onofrei56 reputationPosted Jan 12, 2011, 7:37 PM EST
Ananya Suhas65 reputationPosted Jan 12, 2011, 8:14 PM EST
U did not understand... 2nd page is HTML page and in this HTML page how can i access the value which is passed from as.net page
George Onofrei56 reputationPosted Jan 12, 2011, 8:37 PM EST
Ananya Suhas65 reputationPosted Jan 12, 2011, 9:18 PM EST
Cant use view state due to security reasons... And all the fields data must be entered by user.. so cant be hidden field
George Onofrei56 reputationPosted Jan 12, 2011, 9:30 PM EST
using JS, there surely is a way to access data from the previous page. Will search some more and give a reply soon.
Jaish MathewsRank #225 · 11K reputationPosted Jan 12, 2011, 10:58 PM EST
Did you try using java script global variables? i.e. declare varibles outside of java script functions. Once you set these variables in a page, globally available across any page. In below segment paegName can access across multiple pages
var pageName
function SetPageName()
{
pageName = <
}
Ananya Suhas65 reputationPosted Jan 12, 2011, 11:13 PM EST
I don`t know even abc of JAVASCRIPT
Jaish MathewsRank #225 · 11K reputationPosted Jan 13, 2011, 1:46 AM EST