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

ASP.NET

 
AnswerRe: mail server checking Pin
Abhijit Jana24-Jul-08 21:38
professionalAbhijit Jana24-Jul-08 21:38 
QuestionReading from access Pin
kamsabeti24-Jul-08 18:15
kamsabeti24-Jul-08 18:15 
Questionajax tabcontainer add new tabpanel with close button Pin
Bharani_Ram24-Jul-08 10:01
Bharani_Ram24-Jul-08 10:01 
QuestionHow to search data from database then populate at gridview? Pin
edwin7nice24-Jul-08 4:55
edwin7nice24-Jul-08 4:55 
AnswerRe: How to search data from database then populate at gridview? Pin
edwin7nice24-Jul-08 5:20
edwin7nice24-Jul-08 5:20 
QuestionHow to update dropdownlist.selectedvalue into database? Pin
edwin7nice24-Jul-08 4:45
edwin7nice24-Jul-08 4:45 
AnswerRe: How to update dropdownlist.selectedvalue into database? Pin
Sherin Iranimose24-Jul-08 4:52
Sherin Iranimose24-Jul-08 4:52 
GeneralRe: How to update dropdownlist.selectedvalue into database? Pin
edwin7nice24-Jul-08 5:26
edwin7nice24-Jul-08 5:26 
in my gridview, i have linkbutton for add new row. below is the code for add new gridviewrow. but for the edit and update gridviewrow i still no has any idea. may u help me?




Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As GridViewCommandEventArgs)
Dim conn As New SqlConnection("Data Source=localhost;Initial Catalog=Display;Integrated Security=True;")

Try
If e.CommandName.Equals("New") Then
Dim btnNew As LinkButton = TryCast(e.CommandSource, LinkButton)
Dim row As GridViewRow = TryCast(btnNew.NamingContainer, GridViewRow)
If row Is Nothing Then
Return
End If
Dim txtPickTownCity As TextBox = TryCast(row.FindControl("PickTownCityTextBox"), TextBox)
Dim dropdownlistPickState As DropDownList = TryCast(row.FindControl("DropDownList3"), DropDownList)
Dim txtDeliveryTownCity As TextBox = TryCast(row.FindControl("DeliveryTownCityTextBox"), TextBox)
Dim dropdownlistDeliveryState As DropDownList = TryCast(row.FindControl("DropDownList6"), DropDownList)
Dim cmd As New SqlCommand("INSERT INTO [Address] ([Pick_Town_City], [Pick_State], [Delivery_Town_City], [Delivery_State]) VALUES (@Pick_Town_City, @Pick_State, @Delivery_Town_City, @Delivery_State)", conn)
cmd.Parameters.AddWithValue("Pick_Town_City", txtPickTownCity.Text)
cmd.Parameters.AddWithValue("Pick_State", dropdownlistPickState.SelectedValue)
cmd.Parameters.AddWithValue("Delivery_Town_City", txtDeliveryTownCity.Text)
cmd.Parameters.AddWithValue("Delivery_State", dropdownlistDeliveryState.SelectedValue)
conn.Open()
If cmd.ExecuteNonQuery() = 1 Then
GridView1.DataBind()
End If
End If




Catch ex As Exception
Finally
conn.Close()
End Try
End Sub
GeneralRe: How to update dropdownlist.selectedvalue into database? Pin
Sherin Iranimose24-Jul-08 5:38
Sherin Iranimose24-Jul-08 5:38 
QuestionHow to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
diksha_g24-Jul-08 3:08
diksha_g24-Jul-08 3:08 
AnswerRe: How to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
windhopper24-Jul-08 20:46
windhopper24-Jul-08 20:46 
AnswerRe: How to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
drahmedgalal25-Jul-08 23:45
drahmedgalal25-Jul-08 23:45 
GeneralRe: How to add a contol(adrotator) in which pictures keep changing without refreshing the page?? Pin
Anudeep Jaiswal1-Aug-08 0:58
Anudeep Jaiswal1-Aug-08 0:58 
QuestionHow to provide database Search Functionality? Pin
vannapragada24-Jul-08 2:36
vannapragada24-Jul-08 2:36 
AnswerRe: How to provide database Search Functionality? Pin
Imran Khan Pathan24-Jul-08 2:58
Imran Khan Pathan24-Jul-08 2:58 
GeneralRe: How to provide database Search Functionality? Pin
Paddy Boyd24-Jul-08 3:29
Paddy Boyd24-Jul-08 3:29 
AnswerRe: How to provide database Search Functionality? Pin
www.Developerof.NET24-Jul-08 20:47
www.Developerof.NET24-Jul-08 20:47 
QuestionJavascript to convet english to french Pin
bommareddy20024-Jul-08 2:33
bommareddy20024-Jul-08 2:33 
AnswerRe: Javascript to convet english to french Pin
J4amieC24-Jul-08 4:34
J4amieC24-Jul-08 4:34 
AnswerRe: Javascript to convet english to french Pin
Christian Graus24-Jul-08 11:23
protectorChristian Graus24-Jul-08 11:23 
QuestionHow to store the userId and password in session and Killing the session? Pin
mcmilan24-Jul-08 2:11
mcmilan24-Jul-08 2:11 
AnswerRe: How to store the userId and password in session and Killing the session? Pin
Imran Khan Pathan24-Jul-08 2:38
Imran Khan Pathan24-Jul-08 2:38 
AnswerRe: How to store the userId and password in session and Killing the session? Pin
Ryomin24-Jul-08 3:05
professionalRyomin24-Jul-08 3:05 
AnswerRe: How to store the userId and password in session and Killing the session? Pin
deepthy.p.m24-Jul-08 20:03
deepthy.p.m24-Jul-08 20:03 
QuestionSystem.Diagnostics.Process.start Pin
Dot Net rookie24-Jul-08 1:58
Dot Net rookie24-Jul-08 1:58 

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.