Click here to Skip to main content
15,916,379 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to use more than one web.sitemap Pin
Mike Ellison20-Jan-08 20:16
Mike Ellison20-Jan-08 20:16 
Questiontag cloud Pin
shah zad20-Jan-08 19:47
shah zad20-Jan-08 19:47 
GeneralRe: tag cloud Pin
Mike Ellison20-Jan-08 20:12
Mike Ellison20-Jan-08 20:12 
QuestionRe: tag cloud [modified] Pin
shah zad20-Jan-08 20:30
shah zad20-Jan-08 20:30 
GeneralRe: tag cloud Pin
Colin Angus Mackay20-Jan-08 23:03
Colin Angus Mackay20-Jan-08 23:03 
GeneralEditing the gridview directly Pin
SreejithAchutan20-Jan-08 17:55
SreejithAchutan20-Jan-08 17:55 
GeneralRe: Editing the gridview directly Pin
Venkatesh Mookkan20-Jan-08 18:05
Venkatesh Mookkan20-Jan-08 18:05 
GeneralRe: Editing the gridview directly Pin
SreejithAchutan20-Jan-08 18:44
SreejithAchutan20-Jan-08 18:44 
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
<Columns>
<asp:ButtonField DataTextField="DeptName" CommandName="Select" HeaderText="DepartmentName" ></asp:ButtonField>
<asp:TemplateField>
<ItemTemplate>
<asp:TextBox ID="txt1" runat="server"> </asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>


protected void Button1_Click(object sender, EventArgs e)
{
int DeptID;
string ID;
foreach (GridViewRow gr in GridView1.Rows)
{
ID = Gdv_Dept_List.SelectedDataKey.Value.ToString();
DeptID = int.Parse(ID);
TextBox tx = (TextBox)gr.FindControl("txt1");
insDept.up(DeptID,tx.Text);
BindGrid();
}

}


I gave the above design code and also in button click event above code is given.but when we tried to save it the selected field is updated to empty.what is the reason.
GeneralRe: Editing the gridview directly Pin
Venkatesh Mookkan21-Jan-08 0:23
Venkatesh Mookkan21-Jan-08 0:23 
Generalcheck LAN status Pin
saravanan0520-Jan-08 16:51
saravanan0520-Jan-08 16:51 
GeneralRe: check LAN status Pin
Venkatesh Mookkan20-Jan-08 17:49
Venkatesh Mookkan20-Jan-08 17:49 
GeneralRe: check LAN status Pin
saravanan0520-Jan-08 23:16
saravanan0520-Jan-08 23:16 
GeneralRe: check LAN status Pin
Venkatesh Mookkan21-Jan-08 0:26
Venkatesh Mookkan21-Jan-08 0:26 
GeneralDuplicate Posts. Please ignore Pin
Vasudevan Deepak Kumar20-Jan-08 22:54
Vasudevan Deepak Kumar20-Jan-08 22:54 
QuestionScheduling an occasional server task [modified] Pin
chaiguy133720-Jan-08 15:23
chaiguy133720-Jan-08 15:23 
GeneralRe: Scheduling an occasional server task Pin
N a v a n e e t h20-Jan-08 19:02
N a v a n e e t h20-Jan-08 19:02 
GeneralRe: Scheduling an occasional server task Pin
chaiguy133721-Jan-08 4:19
chaiguy133721-Jan-08 4:19 
GeneralRe: Scheduling an occasional server task Pin
chaiguy133721-Jan-08 4:21
chaiguy133721-Jan-08 4:21 
GeneralPublish an ASP.Net Website Pin
mehrdadc4820-Jan-08 9:08
mehrdadc4820-Jan-08 9:08 
GeneralRe: Publish an ASP.Net Website Pin
pmarfleet20-Jan-08 12:27
pmarfleet20-Jan-08 12:27 
GeneralRe: Publish an ASP.Net Website Pin
Venkatesh Mookkan20-Jan-08 17:53
Venkatesh Mookkan20-Jan-08 17:53 
Generalasp.net and silverlight Pin
smashguitars20-Jan-08 7:18
smashguitars20-Jan-08 7:18 
GeneralRe: asp.net and silverlight Pin
Mike Ellison20-Jan-08 20:22
Mike Ellison20-Jan-08 20:22 
GeneralRe: asp.net and silverlight Pin
Michael Sync21-Jan-08 4:52
Michael Sync21-Jan-08 4:52 
Generalread image from excel file.... Pin
pradeep kumarappagari20-Jan-08 6:06
pradeep kumarappagari20-Jan-08 6:06 

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.