Click here to Skip to main content
15,902,933 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Select Only one checkbox in a gridview Pin
avi_dadi200223-Sep-08 18:57
avi_dadi200223-Sep-08 18:57 
AnswerRe: Select Only one checkbox in a gridview Pin
AlexeiXX323-Sep-08 7:59
AlexeiXX323-Sep-08 7:59 
QuestionPagination Pin
nhss23-Sep-08 0:39
nhss23-Sep-08 0:39 
QuestionGridView Updating Pin
#realJSOP22-Sep-08 23:35
professional#realJSOP22-Sep-08 23:35 
AnswerRe: GridView Updating Pin
N a v a n e e t h22-Sep-08 23:50
N a v a n e e t h22-Sep-08 23:50 
GeneralRe: GridView Updating Pin
#realJSOP23-Sep-08 2:37
professional#realJSOP23-Sep-08 2:37 
GeneralRe: GridView Updating Pin
Paul Conrad23-Sep-08 6:20
professionalPaul Conrad23-Sep-08 6:20 
GeneralRe: GridView Updating Pin
N a v a n e e t h23-Sep-08 17:45
N a v a n e e t h23-Sep-08 17:45 
John Simmons / outlaw programmer wrote:
I didn't say "automatically - I said "programatically"


Yeah, my mistake.

John Simmons / outlaw programmer wrote:
When the user clicks a button to submit data, I want the gridview to show the new data. I tried calling DataBind()


Use triggers in the update panel. Assume you have button named "btnSubmit", the trigger can be written like
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="btnSubmit" />
</Triggers>
In the "btnSubmit"'s click event handler,
yourGrid.DataSource = GetValues();
yourGrid.DataBind();


You have to use this kind of triggering only if the button is placed outside of updatepanel If button is inside the panel, you don't need to write these kind of triggering. It will be handled automatically.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

QuestionHow to get blank card reader drive Name Pin
Piyush Vardhan Singh22-Sep-08 23:32
Piyush Vardhan Singh22-Sep-08 23:32 
QuestionLarge file upload with progress bar Pin
mkalyan198022-Sep-08 23:11
mkalyan198022-Sep-08 23:11 
Questionshowing google ads Pin
Prashant B. Lavate22-Sep-08 22:39
Prashant B. Lavate22-Sep-08 22:39 
AnswerRe: showing google ads Pin
N a v a n e e t h22-Sep-08 22:41
N a v a n e e t h22-Sep-08 22:41 
GeneralRe: showing google ads Pin
Prashant B. Lavate22-Sep-08 22:55
Prashant B. Lavate22-Sep-08 22:55 
GeneralRe: showing google ads Pin
J4amieC23-Sep-08 0:11
J4amieC23-Sep-08 0:11 
AnswerRe: showing google ads Pin
Ashfield23-Sep-08 1:39
Ashfield23-Sep-08 1:39 
QuestionFormsAuthentication problem [modified] Pin
SreejithAchutan22-Sep-08 22:33
SreejithAchutan22-Sep-08 22:33 
AnswerRe: FormsAuthentication problem Pin
J4amieC23-Sep-08 0:16
J4amieC23-Sep-08 0:16 
QuestionDisabling all fields in new way?? using asp.net?? Pin
Karan_TN22-Sep-08 22:13
Karan_TN22-Sep-08 22:13 
AnswerRe: Disabling all fields in new way?? using asp.net?? Pin
Sneha Bisht22-Sep-08 22:39
Sneha Bisht22-Sep-08 22:39 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Karan_TN22-Sep-08 22:51
Karan_TN22-Sep-08 22:51 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Ashfield23-Sep-08 1:41
Ashfield23-Sep-08 1:41 
AnswerRe: Disabling all fields in new way?? using asp.net?? Pin
N a v a n e e t h22-Sep-08 22:40
N a v a n e e t h22-Sep-08 22:40 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
Karan_TN22-Sep-08 23:03
Karan_TN22-Sep-08 23:03 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
N a v a n e e t h22-Sep-08 23:52
N a v a n e e t h22-Sep-08 23:52 
GeneralRe: Disabling all fields in new way?? using asp.net?? Pin
simsen23-Sep-08 3:41
simsen23-Sep-08 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.