Click here to Skip to main content
16,006,341 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: strange DateTime format Pin
Sherin Iranimose23-Jul-08 4:07
Sherin Iranimose23-Jul-08 4:07 
GeneralRe: strange DateTime format Pin
Prog_master23-Jul-08 4:33
Prog_master23-Jul-08 4:33 
QuestionNUnitAddin Problem Pin
Member 451421823-Jul-08 3:37
Member 451421823-Jul-08 3:37 
QuestionHow to avoid Concurrency Problem? Pin
mcmilan23-Jul-08 3:31
mcmilan23-Jul-08 3:31 
AnswerRe: How to avoid Concurrency Problem? Pin
ToddHileHoffer23-Jul-08 5:52
ToddHileHoffer23-Jul-08 5:52 
QuestionValidation of date format in a textbox. Pin
amit201123-Jul-08 3:04
amit201123-Jul-08 3:04 
AnswerRe: Validation of date format in a textbox. Pin
Sherin Iranimose23-Jul-08 3:33
Sherin Iranimose23-Jul-08 3:33 
QuestionGridview Updatating issue Pin
kathyani23-Jul-08 2:41
kathyani23-Jul-08 2:41 
i want to edit the gridview,after clicking edit update the my data .
i wrote this code .its giving error Unable to cast object of type 'System.Web.UI.WebControls.DataControlLinkButton' to type 'System.Web.UI.WebControls.TextBox'.


protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{

string Journal_Notes_ID = ((TextBox)GridView1.Rows[e.RowIndex].Cells[0].Controls[0]).Text;

string User_ID = ((TextBox)GridView1.Rows[e.RowIndex].Cells[1].Controls[0]).Text;

string Course_Instance_Item_ID = ((TextBox)GridView1.Rows[e.RowIndex].Cells[2].Controls[0]).Text;

string Notes = ((TextBox)GridView1.Rows[e.RowIndex].Cells[4].Controls[0]).Text;

string update = "UPDATE dbo.Journal_Notes_Meter SET Journal_Notes_ID = '" + Journal_Notes_ID +

"',User_ID = '" + User_ID +

"', Course_Instance_Item_ID = '" + Course_Instance_Item_ID +

"', Notes = '" + Notes +

"' WHERE itemid = '" + User_ID +

"';";
SqlCommand cmd = new SqlCommand();
cmd.ExecuteNonQuery();
GridView1.EditIndex = -1;

GridView1.DataBind();


}
AnswerRe: Gridview Updatating issue Pin
Anand Desai23-Jul-08 2:49
Anand Desai23-Jul-08 2:49 
GeneralRe: Gridview Updatating issue Pin
kathyani23-Jul-08 3:01
kathyani23-Jul-08 3:01 
AnswerRe: Gridview Updatating issue Pin
Guy Harwood23-Jul-08 4:23
Guy Harwood23-Jul-08 4:23 
QuestionTree Structure Pin
sjs4u23-Jul-08 2:38
sjs4u23-Jul-08 2:38 
AnswerRe: Tree Structure Pin
eyeseetee23-Jul-08 2:49
eyeseetee23-Jul-08 2:49 
QuestionHallo Guys Pin
baraja201023-Jul-08 1:20
baraja201023-Jul-08 1:20 
AnswerRe: Hallo Guys Pin
sumit703423-Jul-08 1:54
sumit703423-Jul-08 1:54 
AnswerRe: Hallo Guys Pin
bommareddy20024-Jul-08 0:02
bommareddy20024-Jul-08 0:02 
QuestionLDAP and Authentication Pin
DotNetMan23-Jul-08 0:30
DotNetMan23-Jul-08 0:30 
Questionjavascript for convert english to french Pin
bommareddy20023-Jul-08 0:20
bommareddy20023-Jul-08 0:20 
AnswerRe: javascript for convert english to french Pin
Paddy Boyd23-Jul-08 0:35
Paddy Boyd23-Jul-08 0:35 
GeneralRe: javascript for convert english to french Pin
bommareddy20023-Jul-08 22:46
bommareddy20023-Jul-08 22:46 
AnswerRe: javascript for convert english to french Pin
Sherin Iranimose23-Jul-08 2:28
Sherin Iranimose23-Jul-08 2:28 
GeneralRe: javascript for convert english to french Pin
bommareddy20023-Jul-08 2:32
bommareddy20023-Jul-08 2:32 
AnswerRe: javascript for convert english to french Pin
Arindam Tewary23-Jul-08 3:50
professionalArindam Tewary23-Jul-08 3:50 
AnswerRe: javascript for convert english to french Pin
Pete O'Hanlon23-Jul-08 8:47
mvePete O'Hanlon23-Jul-08 8:47 
GeneralRe: javascript for convert english to french Pin
bommareddy20023-Jul-08 22:44
bommareddy20023-Jul-08 22:44 

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.