Click here to Skip to main content
15,894,106 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: can we use C# and VB,Net in the same project?? Pin
Rahithi22-Feb-07 18:13
Rahithi22-Feb-07 18:13 
QuestionJavascript Keyboard Integration Pin
pHysiX21-Feb-07 18:27
pHysiX21-Feb-07 18:27 
AnswerRe: Javascript Keyboard Integration Pin
Bradml22-Feb-07 0:19
Bradml22-Feb-07 0:19 
GeneralRe: Javascript Keyboard Integration Pin
pHysiX22-Feb-07 11:57
pHysiX22-Feb-07 11:57 
QuestionVML Issue in IE6 Strict Mode Pin
T-Smooth21-Feb-07 6:22
T-Smooth21-Feb-07 6:22 
QuestionDatagrid update! Pin
nclauder21-Feb-07 3:30
nclauder21-Feb-07 3:30 
AnswerRe: Datagrid update! Pin
Michael Sync21-Feb-07 21:43
Michael Sync21-Feb-07 21:43 
GeneralRe: Datagrid update! Pin
nclauder21-Feb-07 22:26
nclauder21-Feb-07 22:26 
Hi micheal,
This is actually what I ment. I want the user to be adding data into Sql database using a datagrid. So I'm using a ListBox to do this and edit update and delete. I placed listbox in EditItemTemplate and label in ItemTemplate. but when I try now to edit it does not bring the lisbox but i can read the grid with the sql content. my code actually looks like this:

public void Edit_dgid(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
dgid.EditItemIndex = e.Item.ItemIndex;
BindDataGrid();
}

public void Cancel_dgid(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
dgid.EditItemIndex = -1;
BindDataGrid();
}

public void Update_dgid(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
System.Web.UI.WebControls.ListBox st=new System.Web.UI.WebControls.ListBox();
st=(System.Web.UI.WebControls.ListBox)e.Item.Cells[5].FindControl("lbachobj");
System.Web.UI.WebControls.ListBox st1=new System.Web.UI.WebControls.ListBox();
st=(System.Web.UI.WebControls.ListBox)e.Item.Cells[4].FindControl("lbobj");
SqlCommand myCommand=new SqlCommand();
myCommand.Connection=con;
myCommand.CommandText="insert into Object,AchievedObject where @Object,@AchievedObject";
myCommand.Parameters.Add(new SqlParameter("@AchievedObject",SqlDbType.Text));
myCommand.Parameters["@AchievedObject"].Value=st.SelectedValue;
myCommand.Parameters.Add(new SqlParameter("@Object",SqlDbType.Text));
myCommand.Parameters["@Object"].Value=st1.SelectedValue;
con.Open();
myCommand.ExecuteNonQuery();
con.Close();
dgid.EditItemIndex=-1;
BindDataGrid();
}

Thanks.
Questioncreate index.html Pin
hiral_shah21-Feb-07 1:21
hiral_shah21-Feb-07 1:21 
AnswerRe: create index.html Pin
Marcus J. Smith21-Feb-07 7:09
professionalMarcus J. Smith21-Feb-07 7:09 
AnswerRe: create index.html Pin
pHysiX21-Feb-07 18:31
pHysiX21-Feb-07 18:31 
AnswerRe: create index.html Pin
Michael Sync21-Feb-07 23:06
Michael Sync21-Feb-07 23:06 
QuestionDefaultButtons in .NET 2.0 Pin
MayyMagdy21-Feb-07 0:41
MayyMagdy21-Feb-07 0:41 
AnswerRe: DefaultButtons in .NET 2.0 Pin
kubben21-Feb-07 3:22
kubben21-Feb-07 3:22 
QuestionListening iFrame events Pin
djmarki21-Feb-07 0:07
djmarki21-Feb-07 0:07 
Questionproblem in web form loading Pin
EEmaan20-Feb-07 20:43
EEmaan20-Feb-07 20:43 
AnswerRe: problem in web form loading Pin
sathesh pandian20-Feb-07 20:59
sathesh pandian20-Feb-07 20:59 
GeneralRe: problem in web form loading Pin
EEmaan20-Feb-07 21:10
EEmaan20-Feb-07 21:10 
GeneralRe: problem in web form loading Pin
sathesh pandian20-Feb-07 21:36
sathesh pandian20-Feb-07 21:36 
QuestionFrames in HTML Pin
Jeeva Mary Varghese20-Feb-07 19:13
Jeeva Mary Varghese20-Feb-07 19:13 
AnswerRe: Frames in HTML Pin
sathesh pandian20-Feb-07 21:08
sathesh pandian20-Feb-07 21:08 
GeneralRe: Frames in HTML Pin
Jeeva Mary Varghese20-Feb-07 23:12
Jeeva Mary Varghese20-Feb-07 23:12 
GeneralRe: Frames in HTML Pin
sathesh pandian22-Feb-07 20:10
sathesh pandian22-Feb-07 20:10 
GeneralRe: Frames in HTML Pin
sathesh pandian22-Feb-07 20:17
sathesh pandian22-Feb-07 20:17 
QuestionRe: Frames in HTML Pin
badgrs21-Feb-07 0:49
badgrs21-Feb-07 0:49 

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.