By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

code for come to the previous page(back)

prabunewindia
100+
P: 199
hi friends,
i am doing project in ASP.NET 2.0, C#
in some btn click event i want come back to pre. page
anyone know that code
please help me?
Prabu
Apr 21 '07 #1
Share this Question
Share on Google+
9 Replies


Frinavale
Expert Mod 5K+
P: 9,731
hi friends,
i am doing project in ASP.NET 2.0, C#
in some btn click event i want come back to pre. page
anyone know that code
please help me?
Prabu
What have you tried so far?

-Frinny
Apr 21 '07 #2

prabunewindia
100+
P: 199
i tried it by calling the prev. pages url.
but it is opening the fresh page. it is not showing, where i leave the page before post back. i also tried to get the page thru page. previousPage. not got it.
so plz.. if u know
Prabu
What have you tried so far?

-Frinny
Apr 23 '07 #3

P: 67
i tried it by calling the prev. pages url.
but it is opening the fresh page. it is not showing, where i leave the page before post back. i also tried to get the page thru page. previousPage. not got it.
so plz.. if u know
Prabu

Hi,

Why do you want to have a separate button to navigate to the previous page? Every browser has a 'Back' button which takes you back.
Apr 23 '07 #4

prabunewindia
100+
P: 199
hi friend,
i am having a treeView and gridView in one page.
when i open the page, no node in tree will be selected and no document in gridview.
after i selected treeNode, grid will display some documents.
if click on grid button one new page will open to edit& add some more infomation. if the user don't want to continue means he can return to prev page by clicking cancel button. i am redirecting it to the prev page.
but it is opening the fresh page, without treeNode selected and nothing in gridView. so i need exactly what in (BACK)..so Plz guide me
Prabu
Hi,

Why do you want to have a separate button to navigate to the previous page? Every browser has a 'Back' button which takes you back.
Apr 23 '07 #5

gagandeepgupta16
P: 56
hi,

have you tried javascripts?
you can navigate easily to previous page by using javascript(indirectly calling the explorers back button functionality)

hope this helps you ;-)
Apr 23 '07 #6

prabunewindia
100+
P: 199
hai gagandeepgupta,
i got....
did thru javascript....
thanks for ur great timely help
Prabu
hi,

have you tried javascripts?
you can navigate easily to previous page by using javascript(indirectly calling the explorers back button functionality)

hope this helps you ;-)
Apr 23 '07 #7

P: 3
Don't be an idiot by giving stupid answer.

In .Net, just a simple call of "Request.UrlRefrerer.AbsoluteUri" will give u the previous page url.

Hi,

Why do you want to have a separate button to navigate to the previous page? Every browser has a 'Back' button which takes you back.
May 9 '07 #8

prabunewindia
100+
P: 199
hi robteoh,
plz learn manners before u teach us .net. ok..
i won't need previous page url... read all the reply and answer with gentle
don't use unparlimentry words
Prabu

Don't be an idiot by giving stupid answer.

In .Net, just a simple call of "Request.UrlRefrerer.AbsoluteUri" will give u the previous page url.
May 9 '07 #9

MMcCarthy
Expert Mod 10K+
P: 14,534
Don't be an idiot by giving stupid answer.

In .Net, just a simple call of "Request.UrlRefrerer.AbsoluteUri" will give u the previous page url.
robteoh

One of the rules of this site is that everyone, whether member, expert, moderator or admin treat each other with respect.

If you wish to post giving an alternative answer you are welcome to do so but please do it in a courteous manner.

ADMIN
May 9 '07 #10

Post your reply

Sign in to post your reply or Sign up for a free account.