I have question about Temporary Web Page.
When I click on link in my web application and redirect to ( for example)
mywebsite.com/12.aspx.
When event OnLoad() fire,I read value 12, which is Primary key and make query to the database,get record and represent on web page.
But,I need temporary web page with a address mywebsite.com/mynumber.aspx.
or whatever,where I can read value of mynumber ,make query and represents data to web page.
Is there any idea how can I solve this problem.
Thanks in advance
David

That doesn't make much sense.. are you talking about URL rewriting?

I have question about Temporary Web Page.
When I click on link in my web application and redirect to ( for example)
mywebsite.com/12.aspx.
When event OnLoad() fire,I read value 12, which is Primary key and make query to the database,get record and represent on web page.
But,I need temporary web page with a address mywebsite.com/mynumber.aspx.
or whatever,where I can read value of mynumber ,make query and represents data to web page.
Is there any idea how can I solve this problem.
Thanks in advance
David

Hi david_bronsky,
You are talking about Querystring OR URL Rewriting. Querystring is some information attached on the end of the URL after question mark sign. For ex
http://www.mydomain.com/productdetails.aspx?pid=12
Quesrystring is pid=12
You can access querystring as follows
int i=Request.QueryString["pid"].ToInt32();
After that you can easily make database connection and access appropriate data from it.

Hope this will help you.
Thanks & Regards
Dilip Kumar Vishwakarma
Programmer
.Net Consulting

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.