473,546 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Go Back To Updated GridView

Hi!

I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?

Regards,

Joe
Jul 16 '07 #1
7 2682
On Jul 16, 3:04 pm, Joe Kovac <Joe...@nospam. comwrote:
Hi!

I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?

Regards,

Joe
hi....

before moving to detail view save your gridview's page index... in
session or viewstate
when update finished in detailview... rebind the gridview and set your
saved page index... to the grid view...

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com

Jul 16 '07 #2
Masudur wrote:
On Jul 16, 3:04 pm, Joe Kovac <Joe...@nospam. comwrote:
>Hi!

I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?

Regards,

Joe

hi....

before moving to detail view save your gridview's page index... in
session or viewstate
when update finished in detailview... rebind the gridview and set your
saved page index... to the grid view...

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Thanks for the hint.
I guess the Session state might do it. The ViewState would be lost after
redirecting to the DetailsView.
But maybe there is a more automatically way?
Regards,
Joe
Jul 16 '07 #3
Joe Kovac wrote:
Hi!

I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?

Regards,

Joe
I forgot that there are much more things which I would like to remember,
like the positions (selected values) of DropDownLists, text within
Textboxes, etc.

Is there a standard way to remember this when coming back to the source
page?

Joe
Jul 16 '07 #4
On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam. comwrote:
Joe Kovac wrote:
Hi!
I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?
Regards,
Joe

I forgot that there are much more things which I would like to remember,
like the positions (selected values) of DropDownLists, text within
Textboxes, etc.

Is there a standard way to remember this when coming back to the source
page?

Joe
Sorry could not get the actual picture... if your grid view row have
dropdown list and textbox or... the page where grid view resides have
the controls...?

Thanks

Jul 16 '07 #5
Masudur wrote:
On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam. comwrote:
>Joe Kovac wrote:
>>Hi!
I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?
Regards,
Joe
I forgot that there are much more things which I would like to remember,
like the positions (selected values) of DropDownLists, text within
Textboxes, etc.

Is there a standard way to remember this when coming back to the source
page?

Joe

Sorry could not get the actual picture... if your grid view row have
dropdown list and textbox or... the page where grid view resides have
the controls...?

Thanks
The page with the grid view has additional controls which function as
filters and influence the grid view. Maybe I can use something like
cross page posting. But I never worked with this feature.

Thanks

Joe
Jul 16 '07 #6
On Jul 16, 3:39 pm, Joe Kovac <Joe...@nospam. comwrote:
Masudur wrote:
On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam. comwrote:
Joe Kovac wrote:
Hi!
I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?
Regards,
Joe
I forgot that there are much more things which I would like to remember,
like the positions (selected values) of DropDownLists, text within
Textboxes, etc.
Is there a standard way to remember this when coming back to the source
page?
Joe
Sorry could not get the actual picture... if your grid view row have
dropdown list and textbox or... the page where grid view resides have
the controls...?
Thanks

The page with the grid view has additional controls which function as
filters and influence the grid view. Maybe I can use something like
cross page posting. But I never worked with this feature.

Thanks

Joe
Hi joe...

in one of our project we did a similer thing...
but in our case we did used a searchtemplate. .. searchtemplate
basically a object structure where all the necessary objects are
saved..
from ui we constract the searchtemplate onject depending on user input
and then we pass the templatein businesslayer.. . businesslayer takeout
the necessary stuff and perfrom search operation and return the
resutl...
after the result got page... the searchtemplate is saved in session
for future use... if we navigate way from the page and come back to
the page in same session any time.. we check in pageload that if
existing searchtemplate is already in session or not... if exists
rebind the grid with search result... untill the user change the ui
search criteria and submit we dont change the search criteria...

one more thing... if you dont have to go to another page.. may be you
can use multiview of asp.net 2.0 in that case page will automatically
every thing in viewstate...

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com

Jul 16 '07 #7
Masudur wrote:
On Jul 16, 3:39 pm, Joe Kovac <Joe...@nospam. comwrote:
>Masudur wrote:
>>On Jul 16, 3:32 pm, Joe Kovac <Joe...@nospam. comwrote:
Joe Kovac wrote:
Hi!
I have one page with a GridView. Their I can select one item and edit
this item on an own page within a DetailsView. After updating the entry
I want the user to be able to get back to the same position of the
GridView as before.
E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits
the item and now he shall come back to the updated page 3. How do I
achieve this the easies way?
Regards,
Joe
I forgot that there are much more things which I would like to remember,
like the positions (selected values) of DropDownLists, text within
Textboxes, etc.
Is there a standard way to remember this when coming back to the source
page?
Joe
Sorry could not get the actual picture... if your grid view row have
dropdown list and textbox or... the page where grid view resides have
the controls...?
Thanks
The page with the grid view has additional controls which function as
filters and influence the grid view. Maybe I can use something like
cross page posting. But I never worked with this feature.

Thanks

Joe

Hi joe...

in one of our project we did a similer thing...
but in our case we did used a searchtemplate. .. searchtemplate
basically a object structure where all the necessary objects are
saved..
from ui we constract the searchtemplate onject depending on user input
and then we pass the templatein businesslayer.. . businesslayer takeout
the necessary stuff and perfrom search operation and return the
resutl...
after the result got page... the searchtemplate is saved in session
for future use... if we navigate way from the page and come back to
the page in same session any time.. we check in pageload that if
existing searchtemplate is already in session or not... if exists
rebind the grid with search result... untill the user change the ui
search criteria and submit we dont change the search criteria...

one more thing... if you dont have to go to another page.. may be you
can use multiview of asp.net 2.0 in that case page will automatically
every thing in viewstate...

Thanks
Md. Masudur Rahman (Munna)
Kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com
Hi Masudur,

I think you found a good solution for your tasks. As I do have many
pages with a similar construction, I do not want to change to much
(meaning multi view is not really wanted).
Saving the separate states of each control might work. Even nicer would
be if I could get the states from the previous page somehow without
saving them.

Regards, and thanks

Joe
Jul 16 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3662
by: Lonewolf | last post by:
Hi all, I'm having difficulties passing data back to managed class from my native class when the data is generated from within a native thread in the native class itself. I will give the following runtime error, " Attempting to call into managed code without transitioning out first. Do not attempt to run managed code inside low-level native...
1
308
by: Mike Grace | last post by:
Hi, I have a gridview which is using a SqlDataSource to update a table. The SqlDatasource is using a stored procedure to update the table. If I edit a row, change a value and click update the change is successfully applied to the SQL table. After this, the values in the underlying table are changed by another
3
6468
by: Kevin | last post by:
We have a base class that is responsible for creating the navigation and look and feel of our applications. So all our web pages inherit from this base page so they don't have to worry about the look and feel and navigation, only the main content. Everything has woked just fine until we converted to 2.0. Now we have a problem with the new...
8
1924
by: rdemyan via AccessMonster.com | last post by:
Anyone have any ideas on how to determine when the back-end file (containing only tables) has been updated with new data. The date/time of the file won't work because it gets updated to the current date/time when the back-end file is compacted. I'm just looking for an easy way to determine when there has been a change to data in any table...
1
2041
by: Joe Kovac | last post by:
Hi! I have one page with a GridView. Their I can select one item and edit this item on an own page within a DetailsView. After updating the entry I want the user to be able to get back to the same position of the GridView as before. E.g.: The user selected an item on the 3rd of 5 GridView pages. He edits the item and now he shall come back...
1
9540
by: Steve Kershaw | last post by:
Hi, I'm using the RowUpdating() event of an updatable GridView. I need to see the values of the columns in the updated row. There has got to be a way to do this! Any suggestions? Thanks in advance!
0
909
by: eshwaramoorthy | last post by:
Hi, i hav a dropdownlist within gridview.and if i select that particular value in dropdownlist the value should get updated. pls send me coding. thanks
1
1991
by: Landry, Eric | last post by:
I am posting this for a coworker. -------------------------------------------------------- The issue i'm having is after i enter all my data into my gridview's textboxes and dropdownlists the data wont stick. My object data source dumps to a class but after the update the grid should read from the class as well. After the update button is...
1
1921
by: Joe Blauth | last post by:
Hi all, I was running into a problem with a gridview under ASP.net. What I am trying to do is binding the DataSource dynamically in a way that enables me to edit the rows in the Gridview. This is basically running alright except of the fact that when I switch to "edit" in a row inside the Gridview and edit the value and hit "update" I don't...
0
7504
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7792
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6026
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5360
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.