Click here to Skip to main content
15,899,126 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTurn off MIME in System.Net.Mail Pin
Xignal7617-May-07 3:47
Xignal7617-May-07 3:47 
QuestionCalender popup window Pin
deep717-May-07 3:22
deep717-May-07 3:22 
AnswerRe: Calender popup window Pin
Sathesh Sakthivel17-May-07 3:27
Sathesh Sakthivel17-May-07 3:27 
GeneralRe: Calender popup window Pin
deep717-May-07 3:40
deep717-May-07 3:40 
GeneralRe: Calender popup window Pin
Sathesh Sakthivel17-May-07 3:56
Sathesh Sakthivel17-May-07 3:56 
QuestionRe: Calender popup window Pin
deep717-May-07 19:45
deep717-May-07 19:45 
AnswerRe: Calender popup window Pin
Sathesh Sakthivel18-May-07 15:27
Sathesh Sakthivel18-May-07 15:27 
QuestionProblem in Inserting NewRow in GridView Pin
Mickky17-May-07 2:07
Mickky17-May-07 2:07 
I am inserting a row to the database through gridview, while doing this i placed an insert button in the footer of edit button column and textboxes to remaining columns the code works properly and a new roe is inserted in the database also.
The code is as fallows

protected void gv_rowcommand(object sender, GridViewCommandEventArgs e)
{

if (e.CommandName == "insert")
{

connection = new SqlConnection("user id=sa;database=pubs;datasource=system2");
adapter1 = new SqlDataAdapter("Select * from jobdetails", connection);
ds = new DataSet();
adapter1.Fill(ds, "jobs");
rec = ds.Tables["jobs"].NewRow();
rec[0] = Convert.ToInt32(((TextBox)GridView1.FooterRow.FindControl("TextBox4")).Text);
rec[1] = ((TextBox)GridView1.FooterRow.FindControl("TextBox5")).Text;
rec[2] = Convert.ToInt32(((TextBox)GridView1.FooterRow.FindControl("TextBox6")).Text);
rec[3] = Convert.ToInt32(((TextBox)GridView1.FooterRow.FindControl("TextBox7")).Text);
ds.Tables["jobs"].Rows.Add(rec);
bldr = new SqlCommandBuilder(adapter1);
adapter1.Update(ds, "jobs");
BindData();
}

}
up to now fine, but i don't want to display all the time the textboxes for that i placed insert button in edit column header and i written in the if condition
if (e.CommandName == "insert")
{

gridview1.showfooter=true
..........remaining code same
but the code gives error an input is not in correct format


if any one know the solution for this plz help me
Thank u...
QuestionDisplay Users and Roles in a Grid using ASP.Net 2.0 & C# Pin
Jagadeesh Jupalli17-May-07 1:11
Jagadeesh Jupalli17-May-07 1:11 
QuestionForeign caharacters Pin
gavthegenius17-May-07 1:10
gavthegenius17-May-07 1:10 
AnswerRe: Foreign caharacters Pin
Sathesh Sakthivel17-May-07 2:00
Sathesh Sakthivel17-May-07 2:00 
GeneralRe: Foreign caharacters Pin
gavthegenius17-May-07 3:05
gavthegenius17-May-07 3:05 
GeneralRe: Foreign caharacters Pin
Sathesh Sakthivel17-May-07 3:22
Sathesh Sakthivel17-May-07 3:22 
QuestionHtml tags problem in Textbox (very urgent) Pin
Faisal Khatri17-May-07 1:08
Faisal Khatri17-May-07 1:08 
AnswerRe: Html tags problem in Textbox (very urgent) Pin
abhi_viking17-May-07 1:29
abhi_viking17-May-07 1:29 
Questionhow to trace the textbox when the value is modified Pin
ramyasangeet17-May-07 0:49
ramyasangeet17-May-07 0:49 
AnswerRe: how to trace the textbox when the value is modified Pin
Sandeep Akhare17-May-07 0:59
Sandeep Akhare17-May-07 0:59 
QuestionScript page Pin
A kamath17-May-07 0:18
A kamath17-May-07 0:18 
AnswerRe: Script page Pin
Sherin Iranimose17-May-07 0:28
Sherin Iranimose17-May-07 0:28 
GeneralRe: Script page Pin
A kamath17-May-07 0:33
A kamath17-May-07 0:33 
QuestionForm authentication Pin
yaminilatha16-May-07 23:59
yaminilatha16-May-07 23:59 
AnswerRe: Form authentication Pin
enjoycrack17-May-07 0:09
enjoycrack17-May-07 0:09 
GeneralRe: Form authentication Pin
Sandeep Akhare17-May-07 0:26
Sandeep Akhare17-May-07 0:26 
GeneralRe: Form authentication Pin
enjoycrack17-May-07 0:38
enjoycrack17-May-07 0:38 
AnswerRe: datagrid Pin
enjoycrack17-May-07 0:10
enjoycrack17-May-07 0:10 

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.