954,148 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Temporary Web Page problem

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

david_bronsky
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

SheSaidImaPregy
Veteran Poster
1,080 posts since Sep 2007
Reputation Points: 43
Solved Threads: 68
 
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

dilipv
Light Poster
30 posts since Feb 2008
Reputation Points: 10
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You