Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i am doing my project in asp.net...i have created 3 tables in 3 seperate aspx pages...... ..my home page is default.aspx ..... i had given a link to 1st table(vdetails.aspx) in my home page(default.aspx)...when i click the save button of table1 it wil save the data in database and redirected to 2 nd table likewise 3rd table.......... BUT IN MY ADDRESS BAR IF I EDIT VDETAILS.ASPX INSTEAD OF DEFAULT.ASPX THE 2 ND TABLE WIL APPEAR ......... IT MUST NOT COME LIKE THAT WHEN I CLICK THE SAVE BUTTON OF 1 ST TABLE ONLY IT WIL REDIRECT BUT NOT EDITING IN THE ADDRESS BAR....plz help me what i want to do????

Thanks in Advance...
Posted

try like this
C#
in VDETAILS.ASPX page ://by using session concept
under page load:
if(session["name"]=="")
{
response.redirect ("default1.aspx");
}

or else put the address bar readonly

see this link
<a href="http://forums.asp.net/t/1207625.aspx/1">http://forums.asp.net/t/1207625.aspx/1</a>[<a href="http://forums.asp.net/t/1207625.aspx/1" target="_blank" title="New Window">^</a>]

<a href="http://www.codeproject.com/Questions/147018/how-to-hide-address-bar-in-asp-net-application">how to hide address bar in asp.net application</a>[<a href="http://www.codeproject.com/Questions/147018/how-to-hide-address-bar-in-asp-net-application" target="_blank" title="New Window">^</a>]
 
Share this answer
 
The best way would be to store a unique ID type value in session or cache from first page. when user opens second page then check this value exist or not. if it exist then only show the data on second page otherwise not.

Also make sure that when you open the second page and the session/cache value is found then after displaying the page remove that session/cache value so that the page could not be opened again directly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900