473,322 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How to refresh the content in GridView

Hi All,

I have one aspx page which has a gridview, some textboxes and one button.
When the button is clicked, a button_click function is called. in this
function, I will update the database base on the input in the textboxes. My
question is how to refresh the gridview to show the updated content in the
database?

Thanks in advance.

-Vincent
Feb 7 '06 #1
2 9764
You have to rebind the grid.

But my advice is to call Response.Redirect to itself after any action.
That prevents from duplicate action if user hits F5. (PS: Netscape does
refresh simply when resizing window)

George.

"Vincent Ye" <vi*****@newsgroups.nospam> wrote in message
news:eb*************@TK2MSFTNGP15.phx.gbl...
Hi All,

I have one aspx page which has a gridview, some textboxes and one button.
When the button is clicked, a button_click function is called. in this
function, I will update the database base on the input in the textboxes.
My question is how to refresh the gridview to show the updated content in
the database?

Thanks in advance.

-Vincent

Feb 7 '06 #2
Thanks George. It works

-Vincent

"George Ter-Saakov" <gt****@cardone.com> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
You have to rebind the grid.

But my advice is to call Response.Redirect to itself after any action.
That prevents from duplicate action if user hits F5. (PS: Netscape does
refresh simply when resizing window)

George.

"Vincent Ye" <vi*****@newsgroups.nospam> wrote in message
news:eb*************@TK2MSFTNGP15.phx.gbl...
Hi All,

I have one aspx page which has a gridview, some textboxes and one button.
When the button is clicked, a button_click function is called. in this
function, I will update the database base on the input in the textboxes.
My question is how to refresh the gridview to show the updated content in
the database?

Thanks in advance.

-Vincent


Feb 7 '06 #3

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

Similar topics

0
by: Matt | last post by:
I have a gridview that allows users to edit records. In reality, I've changed the SQL so the edit is actually doing an insert to a date driven table. Works great. Unfortunately it works too...
3
by: Simon Strandgaard | last post by:
Hi group, my setup: I have a GridView that extracts data from my table (a SqlDataSource). For each row, I have an 'edit' button and a 'delete' button. The 'edit' button opens a popup, through...
1
by: coynej60 | last post by:
I have a GridView that is bound to a SqlDataSource that uses Stored Procedures for its Select, Insert, Update and Delete Commands. The Gridview only contains one visible column (PK Identity column...
1
by: J055 | last post by:
Hi I have a GridView which includes the ability to delete rows. This works fine accept for when a naughty user decides to refresh the browser thereby posting the same delete command instruction....
0
by: Phillip Ian | last post by:
Tried this over in CSharp.General and didn't get anything, so I thought I'd try again here. If there's an AJAX specific group I could ask this in, please let me know...I did look. I'm trying to...
3
by: Dave | last post by:
I have an GridView on one page that will open a popup for the selected record. I've been told that there is a way that when the popup record is updated the GridView can be refreshed or Databind. ...
2
by: =?Utf-8?B?U2lsa0NpdHlGbG9yaWRh?= | last post by:
I have a web page "PgA" with a GridView. I open another page "PgB" in a new window. On PgB, they do some things that affect the underlying data for the GridView on PgA. When the user is done...
3
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hi all, i betcha here's a question never asked before ;) i have a simple web form with a gridview and a button. the button doesn't do anything but a postback. i load up the gridview from the...
1
by: shahidrasul | last post by:
i want to download a file which user select from gridview, downloading is completing without problem but after download i want to refresh my page because i do some changes in db . but when...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.