Replies |
GSM_GSV
Posted on: 4/19/2012 11:52:43 PM
|
Level: Starter | Status: [Member] | Points: 25
|
Do you want to display the contents of your textboxes in gridview upon clicking save button?
---------------------------------------
Live the life you've dreamed
Regards
MADHU
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
I recommend you to please post the code that you have attempted.
____________
www.flickr.com/photos/psdesigner/
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Sunny4989
Posted on: 4/19/2012 11:59:25 PM
|
Level: Starter | Status: [Member] | Points: 25
|
Can u please extend your question details more clearly???
------------------------------------------------
Learn throughout life
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
I have one solution.
Use an xml file. Editing an xml file will be easy affiar.
bind it to the grid view.
____________
www.flickr.com/photos/psdesigner/
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Sunny4989
Posted on: 4/20/2012 12:43:41 AM
|
Level: Starter | Status: [Member] | Points: 25
|
@ DotnetRajanikanth
XML file is no need
------------------------------------------------
Learn throughout life
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Kk86kiran
Posted on: 4/20/2012 3:05:53 AM
|
Level: Starter | Status: [Member] | Points: 25
|
2 text boxes available and one save button. In Update Panel i have one gridview. If enter any values in those text boxes those values will be displayed in the grid after clicking save button. In this button and text boxes are placed out side the update panel. Only grid in update panel. Edit also work in grid ?
k.m.j.kiran
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
@Sunny4989
I suggested it as an alternative of database
____________
www.flickr.com/photos/psdesigner/
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
@Kk86kiran
Editing can be performed in grid view. I have posted a link for that above reffer it.
____________
www.flickr.com/photos/psdesigner/
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Kk86kiran
Posted on: 4/20/2012 3:14:02 AM
|
Level: Starter | Status: [Member] | Points: 25
|
I know how to edit a grid but i want to invoke a trigger in button from out side of the update panel.
k.m.j.kiran
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Use AsyncPostBackTrigger inside the trigger in update panel.
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<fieldset>
<legend>UpdatePanel</legend>
<asp:Label ID="Label1" runat="server" Text="Panel created."></asp:Label><br />
</fieldset>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" />
</Triggers>
</asp:UpdatePanel>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /></div>
</form>
</body>
Refer this link also...
http://msdn.microsoft.com/en-us/library/bb399001.aspx In this link read the section Refreshing an UpdatePanel Control with an External Button
Hope this will help you ____________
www.flickr.com/photos/psdesigner/
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Sunny4989
Posted on: 4/20/2012 7:12:25 AM
|
Level: Starter | Status: [Member] | Points: 25
|
Hi kiran
Edit also work in grid ? ]]
What does it mean
------------------------------------------------
Learn throughout life
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Hi Kiran,
As I have understood : On click of button you want to display text boxes values in the the grid with edit option . But save button is out side the update panel.
If that is the problem . then we can call the trigger event of panel which has grid and we will update grid columns.
Otherwize Could you please elaborate your problem little more.
Thanks & Rgards,
Dhiren Kumar Kaunar
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Ravianand
Posted on: 5/12/2012 1:35:59 AM
|
Level: Starter | Status: [Member] | Points: 25
|
Can u please extend your question details more clearly???
Regards,
Ravi
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|
Meet1424
Posted on: 5/12/2012 2:12:56 AM
|
Level: Starter | Status: [Member] | Points: 25
|
Hi, try this on button click !
DataTable dt = new DataTable();
dt.Columns.Add(new DataColumn("Value", typeof(string)));
DataRow dr = dt.NewRow();
dr["Value"] = txtData.Text;
dt.Rows.Add(dr);
gvData.DataSource = dt;
gvData.DataBind();
I took a gridview inside updatepanel and one textbox and a button outside the updatepanel, when i input anything in textbox and click the button it binds the same input to gridview. I did not add any trigger for update panel and its working
Kk86kiran, if this helps please login to Mark As Answer. |
Reply | Alert Moderator
|