Click here to Skip to main content
15,914,642 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: get hyperlink id in codebehind Pin
Vasudevan Deepak Kumar10-Feb-09 3:01
Vasudevan Deepak Kumar10-Feb-09 3:01 
Questionhtml tag Pin
arkiboys10-Feb-09 2:34
arkiboys10-Feb-09 2:34 
AnswerRe: html tag Pin
Vasudevan Deepak Kumar10-Feb-09 2:47
Vasudevan Deepak Kumar10-Feb-09 2:47 
GeneralRe: html tag Pin
arkiboys10-Feb-09 2:50
arkiboys10-Feb-09 2:50 
QuestionPage Request Manager Error Pin
support synthesys10-Feb-09 2:03
support synthesys10-Feb-09 2:03 
Questionwhen stored procudere fire error how can i handle it? Pin
keyur satyadev10-Feb-09 2:00
keyur satyadev10-Feb-09 2:00 
AnswerRe: when stored procudere fire error how can i handle it? Pin
support synthesys10-Feb-09 2:04
support synthesys10-Feb-09 2:04 
QuestionPostback to new record instead of first record Pin
bjh2910-Feb-09 1:52
bjh2910-Feb-09 1:52 
Questionre:How to perform grid view operations like select,update delete from database in asp.net 2.0? Pin
keyur satyadev10-Feb-09 1:30
keyur satyadev10-Feb-09 1:30 
AnswerRe: re:How to perform grid view operations like select,update delete from database in asp.net 2.0? Pin
Vimalsoft(Pty) Ltd10-Feb-09 3:44
professionalVimalsoft(Pty) Ltd10-Feb-09 3:44 
AnswerRe: opening excel document Pin
keyur satyadev10-Feb-09 1:25
keyur satyadev10-Feb-09 1:25 
GeneralRe: opening excel document Pin
kulandaivel_mca200710-Feb-09 1:33
kulandaivel_mca200710-Feb-09 1:33 
GeneralRe: opening excel document Pin
_AK_10-Feb-09 1:36
_AK_10-Feb-09 1:36 
GeneralRe: opening excel document Pin
anujbanka178410-Feb-09 1:54
anujbanka178410-Feb-09 1:54 
QuestionAdding row to datatable programmatically Pin
Paul McGann10-Feb-09 1:22
professionalPaul McGann10-Feb-09 1:22 
I have the following on the click event of a button in the footer of a DataGrid:

If e.CommandName = "Assign" Then

If e.Item.ItemType = ListItemType.Footer Then

Dim control_name As New DropDownList
control_name = e.Item.FindControl("control_name")

Dim row As DataRow = dt.NewRow
row(0) = Session("ID")
row(1) = control_name.SelectedItem.Value
row(2) = control_name.SelectedItem.Text
dt.Rows.Add(row)

datagrid.DataSource = dt
datagrid.DataBind()

End If
End If

The only difficulty i'm having is adding multiple rows to the datatable it adds one fine but for 2 it won't.

please if anyone can see the errors of my ways please inform me its much appreciated
AnswerRe: Adding row to datatable programmatically Pin
_AK_10-Feb-09 1:40
_AK_10-Feb-09 1:40 
GeneralRe: Adding row to datatable programmatically Pin
Paul McGann10-Feb-09 2:15
professionalPaul McGann10-Feb-09 2:15 
AnswerRe: Adding row to datatable programmatically Pin
Kaushal Arora10-Feb-09 17:59
Kaushal Arora10-Feb-09 17:59 
QuestionHOW TO OPEN FILE. Pin
anujbanka178410-Feb-09 1:20
anujbanka178410-Feb-09 1:20 
AnswerRe: HOW TO OPEN FILE. Pin
Vasudevan Deepak Kumar10-Feb-09 2:46
Vasudevan Deepak Kumar10-Feb-09 2:46 
AnswerRe: HOW TO OPEN FILE. Pin
Ranjit Viswakumar10-Feb-09 16:39
Ranjit Viswakumar10-Feb-09 16:39 
QuestionNetwork printing Pin
Armandt__10-Feb-09 1:05
Armandt__10-Feb-09 1:05 
AnswerRe: Network printing Pin
Armandt__11-Feb-09 20:05
Armandt__11-Feb-09 20:05 
Questionopening excel document Pin
kulandaivel_mca200710-Feb-09 1:04
kulandaivel_mca200710-Feb-09 1:04 
AnswerRe: opening excel document Pin
support synthesys10-Feb-09 2:06
support synthesys10-Feb-09 2: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.