Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDreamweaver, Visual Studio, c# asp.net web site development tools Pin
jboyd11124-Apr-09 5:47
jboyd11124-Apr-09 5:47 
AnswerRe: Dreamweaver, Visual Studio, c# asp.net web site development tools Pin
Rolando CC24-Apr-09 8:25
professionalRolando CC24-Apr-09 8:25 
Questiondatasets over class objects to store data Pin
Tina P24-Apr-09 5:33
Tina P24-Apr-09 5:33 
AnswerRe: datasets over class objects to store data Pin
Yusuf24-Apr-09 5:51
Yusuf24-Apr-09 5:51 
QuestionASP.net gzip compression using Response.Filter not working. Pin
Tiju John24-Apr-09 5:23
Tiju John24-Apr-09 5:23 
QuestionDataGrid EditCommand Pin
princy1024-Apr-09 4:40
princy1024-Apr-09 4:40 
AnswerRe: DataGrid EditCommand Pin
Ryomin24-Apr-09 7:48
professionalRyomin24-Apr-09 7:48 
GeneralRe: DataGrid EditCommand Pin
princy1024-Apr-09 21:33
princy1024-Apr-09 21:33 
Thanks for the solution. can u pls help me to find solution regarding with my Datagrid. I'm new to c#. in my coding i'm using control DataGrid named dgUserNote.

in its update command , i'm not getting the values in the cells

when i take e.Item.Cells[2].Text it shows like;
e.Item.Cells[2].Text=""

the code is as follows;

in designing part(asp) i add the Column as follows;

<columns> <asp:editcommandcolumn canceltext="Cancel" edittext="Edit" headertext="Edit" xmlns:asp="#unknown">
UpdateText="Update">

in coding (c#) i wrote like this;

void dgUserNote_UpdateCommand(object source, DataGridCommandEventArgs e)
{
SqlCommand SqlCom;

if (ConGlobal.State == ConnectionState.Closed) ConGlobal.Open();
SqlCom = new SqlCommand("SpInsertUserNote", ConGlobal);
SqlCom.Parameters.Add("@IorU", SqlDbType.VarChar).SqlValue = "U";
SqlCom.Parameters.Add("@Title", SqlDbType.VarChar).SqlValue = e.Item.Cells[2].Text;
SqlCom.Parameters.Add("@Description", SqlDbType.VarChar).SqlValue = e.Item.Cells[3].Text;
SqlCom.Parameters.Add("@Date", SqlDbType.VarChar).SqlValue = e.Item.Cells[4].Text;
SqlCom.Parameters.Add("@UserName", SqlDbType.VarChar).SqlValue = mdlNewClass.gStrUserName;
SqlCom.CommandType = CommandType.StoredProcedure;
SqlCom.ExecuteNonQuery();
SqlCom = null;
Response.Write("Record Updated Successfully...");
BindData();
dgUserNote.EditItemIndex = -1;
dgUserNote.DataBind();

}


pls help me to solve this problem

Thanks&Regards
Princy
Questionpassing value Pin
netJP12L24-Apr-09 4:33
netJP12L24-Apr-09 4:33 
AnswerRe: passing value Pin
led mike24-Apr-09 4:44
led mike24-Apr-09 4:44 
QuestionProblem creating server control that extends the CollapsiblePanelExtender from the AJAX toolkit Pin
simonpowers4424-Apr-09 3:54
simonpowers4424-Apr-09 3:54 
Questiondoes not contain a definition for 'btnSubmit_Click' Pin
XaraW24-Apr-09 2:52
XaraW24-Apr-09 2:52 
AnswerRe: does not contain a definition for 'btnSubmit_Click' Pin
SeMartens24-Apr-09 3:12
SeMartens24-Apr-09 3:12 
GeneralRe: does not contain a definition for 'btnSubmit_Click' Pin
DoctorMick24-Apr-09 4:26
DoctorMick24-Apr-09 4:26 
QuestionTEMP FOLDER Pin
Member 393125924-Apr-09 2:03
Member 393125924-Apr-09 2:03 
AnswerRe: TEMP FOLDER Pin
DoctorMick24-Apr-09 4:27
DoctorMick24-Apr-09 4:27 
AnswerSelf Cleaning Pin
David Mujica24-Apr-09 5:26
David Mujica24-Apr-09 5:26 
QuestionSession? Pin
Karthick_gc24-Apr-09 1:53
Karthick_gc24-Apr-09 1:53 
AnswerRe: Session? Pin
Abhijit Jana24-Apr-09 2:01
professionalAbhijit Jana24-Apr-09 2:01 
GeneralRe: Session? Pin
Karthick_gc24-Apr-09 2:06
Karthick_gc24-Apr-09 2:06 
GeneralRe: Session? Pin
Sandeep Akhare24-Apr-09 7:52
Sandeep Akhare24-Apr-09 7:52 
GeneralRe: Session? Pin
Abhijit Jana24-Apr-09 18:56
professionalAbhijit Jana24-Apr-09 18:56 
GeneralRe: Session? Pin
Sandeep Akhare27-Apr-09 8:02
Sandeep Akhare27-Apr-09 8:02 
GeneralRe: Session? Pin
Abhijit Jana24-Apr-09 19:06
professionalAbhijit Jana24-Apr-09 19:06 
QuestionNeed to get attibute name Pin
Satish - Developer24-Apr-09 1:33
Satish - Developer24-Apr-09 1:33 

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.