Click here to Skip to main content
16,004,919 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: User define right click menu Pin
Sylvester george29-Jan-07 20:02
Sylvester george29-Jan-07 20:02 
AnswerRe: User define right click menu Pin
Artem Kustikov29-Jan-07 21:29
Artem Kustikov29-Jan-07 21:29 
AnswerRe: User define right click menu Pin
Vasudevan Deepak Kumar29-Jan-07 21:49
Vasudevan Deepak Kumar29-Jan-07 21:49 
Questiontreeview + drag and drop using asp.net and c# Pin
ritu432129-Jan-07 19:41
ritu432129-Jan-07 19:41 
AnswerRe: treeview + drag and drop using asp.net and c# Pin
blue_arc30-Jan-07 0:20
blue_arc30-Jan-07 0:20 
QuestionUnable to retrieve the Column value of a datagrid Pin
MissionSuccess29-Jan-07 19:34
MissionSuccess29-Jan-07 19:34 
AnswerRe: Unable to retrieve the Column value of a datagrid Pin
Sylvester george29-Jan-07 19:43
Sylvester george29-Jan-07 19:43 
GeneralRe: Unable to retrieve the Column value of a datagrid Pin
MissionSuccess29-Jan-07 22:12
MissionSuccess29-Jan-07 22:12 
thanx i m getting IDs

but not on my Update command event.

my event is....

Private Sub Dtgrd_Products_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles Dtgrd_Products.UpdateCommand
Dim txtId As TextBox = CType(e.Item.Cells(2).Controls(0), TextBox)
'Dim txtid As String = e.Item.Cells(2).Text
Dim txttype As TextBox = CType(e.Item.Cells(4).Controls(0), TextBox)
Dim txtdia As TextBox = CType(e.Item.Cells(5).Controls(0), TextBox)
Dim txtlength As TextBox = CType(e.Item.Cells(6).Controls(0), TextBox)
Dim txtLamType As TextBox = CType(e.Item.Cells(7).Controls(0), TextBox)

Dim txtVarType As TextBox = CType(e.Item.Cells(8).Controls(0), TextBox)
Dim txtcol1 As TextBox = CType(e.Item.Cells(9).Controls(0), TextBox)
Dim txtcol2 As TextBox = CType(e.Item.Cells(10).Controls(0), TextBox)
Dim txtcol3 As TextBox = CType(e.Item.Cells(11).Controls(0), TextBox)
Dim txtcol4 As TextBox = CType(e.Item.Cells(12).Controls(0), TextBox)
Dim txtcol5 As TextBox = CType(e.Item.Cells(13).Controls(0), TextBox)
Dim txtcol6 As TextBox = CType(e.Item.Cells(14).Controls(0), TextBox)

conn = New SqlConnection(constr)
cmd = New SqlCommand("spr_UpdateProductDetails", conn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add(New SqlParameter("@Id", txtId.Text))
cmd.Parameters.Add(New SqlParameter("@type", txttype.Text))
cmd.Parameters.Add(New SqlParameter("@dia", txtdia.Text))
cmd.Parameters.Add(New SqlParameter("@length", txtlength.Text))
cmd.Parameters.Add(New SqlParameter("@laminate_type", txtLamType.Text))
cmd.Parameters.Add(New SqlParameter("@varnish_type", txtVarType.Text))
cmd.Parameters.Add(New SqlParameter("@col1", txtcol1.Text))
cmd.Parameters.Add(New SqlParameter("@col2", txtcol2.Text))
cmd.Parameters.Add(New SqlParameter("@col3", txtcol3.Text))
cmd.Parameters.Add(New SqlParameter("@col4", txtcol4.Text))
cmd.Parameters.Add(New SqlParameter("@col5", txtcol5.Text))
cmd.Parameters.Add(New SqlParameter("@col6", txtcol6.Text))

conn.Open()
cmd.ExecuteNonQuery()
Dtgrd_Products.EditItemIndex = -1
conn.Close()
bindgrid()
End Sub

here in every textboxes i m getting null.

any suggetion..
QuestionHow do I exit a file jscript Pin
quangnd280229-Jan-07 19:30
quangnd280229-Jan-07 19:30 
AnswerRe: How do I exit a file jscript Pin
Vasudevan Deepak Kumar29-Jan-07 21:49
Vasudevan Deepak Kumar29-Jan-07 21:49 
QuestionDeploying the application without creating deployment Pin
indian14329-Jan-07 18:29
indian14329-Jan-07 18:29 
AnswerRe: Deploying the application without creating deployment Pin
Sylvester george29-Jan-07 18:39
Sylvester george29-Jan-07 18:39 
GeneralRe: Deploying the application without creating deployment Pin
indian14329-Jan-07 18:51
indian14329-Jan-07 18:51 
GeneralRe: Deploying the application without creating deployment Pin
Sylvester george29-Jan-07 18:55
Sylvester george29-Jan-07 18:55 
GeneralRe: Deploying the application without creating deployment Pin
indian14329-Jan-07 19:38
indian14329-Jan-07 19:38 
GeneralRe: Deploying the application without creating deployment Pin
indian14330-Jan-07 4:59
indian14330-Jan-07 4:59 
QuestionHow can I get the IP address of server Pin
indian14329-Jan-07 18:25
indian14329-Jan-07 18:25 
AnswerRe: How can I get the IP address of server Pin
Sylvester george29-Jan-07 18:49
Sylvester george29-Jan-07 18:49 
GeneralRe: How can I get the IP address of server Pin
indian14329-Jan-07 18:52
indian14329-Jan-07 18:52 
AnswerRe: How can I get the IP address of server Pin
Vasudevan Deepak Kumar29-Jan-07 21:51
Vasudevan Deepak Kumar29-Jan-07 21:51 
Questioncreated deployment and put a folder named Pics. Pin
indian14329-Jan-07 18:22
indian14329-Jan-07 18:22 
QuestionWhat is the use of REsx file or resource file in .Net Pin
indian14329-Jan-07 18:08
indian14329-Jan-07 18:08 
AnswerRe: What is the use of REsx file or resource file in .Net Pin
Parwej Ahamad29-Jan-07 18:18
professionalParwej Ahamad29-Jan-07 18:18 
GeneralRe: What is the use of REsx file or resource file in .Net Pin
indian14329-Jan-07 19:30
indian14329-Jan-07 19:30 
Questiontexttbox validation Pin
saravanan0529-Jan-07 12:49
saravanan0529-Jan-07 12: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.