Reputation: 543
Can any one please help me out. How to manage the url in the address bar,which will not to be changed for every operation in certain controller(create/Edit/Delete like ).
for Example if we are in page like 'http://localhost/Music'
when we are adding we will get 'http://localhost/Music/Add'
but when editing the particular item details 'http://localhost/Music/Edit?id=XXXXXXX'
here, I want to display the url Every time as "http://localhost/Music/ " only,How ?
Upvotes: 0
Views: 236
Reputation: 1038770
You will need to use AJAX if you want the user to stay on the same page all the time. So basically you will not be performing full postbacks but only asynchronous AJAX calls.
You could use the Ajax.*
helpers or implement this functionality yourself using for example jQuery.ajax
.
Upvotes: 5