Click here to Skip to main content
15,912,329 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 9:35
frankiebaby223-Jul-07 9:35 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 15:31
frankiebaby223-Jul-07 15:31 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
RichardBerry23-Jul-07 22:00
RichardBerry23-Jul-07 22:00 
GeneralRe: Save As A Chosen Date. [modified*3] Pin
frankiebaby223-Jul-07 22:22
frankiebaby223-Jul-07 22:22 
QuestionHTML Editor in Vb.net Pin
phyrrix22-Jul-07 6:46
phyrrix22-Jul-07 6:46 
AnswerRe: HTML Editor in Vb.net Pin
ne0h22-Jul-07 7:02
ne0h22-Jul-07 7:02 
AnswerRe: HTML Editor in Vb.net Pin
Naji El Kotob22-Jul-07 8:08
Naji El Kotob22-Jul-07 8:08 
Questionupdateing db Pin
stupid122-Jul-07 3:26
stupid122-Jul-07 3:26 
I am trying to update the Employees tbl in the northwind db. I want to use code behind to do it, to better understand databinding and how ds's and da's work. I am having an issue actually posting th edata back to the db.
I am using a detailsView to display the information on my page, I am also pulling the infor for the dv from a query string, here is my pageLoad code for my details page:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim connStr As String = ConfigurationManager.ConnectionStrings("NWConnectionString").ToString()
' Create DB Connection
Dim conn As New SqlConnection(connStr)
'Create DS
Dim ds As New DataSet
'Read EmployeeID from Default.aspx
Dim sEmployeeId As String = Request.QueryString("EmployeeID")
'Create DA
Dim da As New SqlDataAdapter("SELECT * FROM Employees WHERE [EmployeeID] = " & sEmployeeId, conn)

'Open Conn to DB
conn.Open()
'Fill DA with tbl
da.Fill(ds, "Employees")
'Set DataSource to DataSet
dvDetails.DataSource = ds
'Bind DV to ds
dvDetails.DataBind()
'Close DB Connection
conn.Close()
End If
End Sub

I will post the rest of the code in my next post, to keep the post a little shorter....
AnswerRe: updateing db Pin
stupid122-Jul-07 3:27
stupid122-Jul-07 3:27 
QuestionHow to replace text until end of the line? Pin
sweehin1822-Jul-07 2:18
sweehin1822-Jul-07 2:18 
AnswerRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 2:44
sitebuilderLuc Pattyn22-Jul-07 2:44 
GeneralRe: How to replace text until end of the line? Pin
sweehin1822-Jul-07 2:59
sweehin1822-Jul-07 2:59 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 3:32
sitebuilderLuc Pattyn22-Jul-07 3:32 
GeneralRe: How to replace text until end of the line? Pin
sweehin1823-Jul-07 4:59
sweehin1823-Jul-07 4:59 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn23-Jul-07 5:22
sitebuilderLuc Pattyn23-Jul-07 5:22 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn23-Jul-07 5:23
sitebuilderLuc Pattyn23-Jul-07 5:23 
GeneralRe: How to replace text until end of the line? Pin
sweehin1823-Jul-07 9:16
sweehin1823-Jul-07 9:16 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn23-Jul-07 9:36
sitebuilderLuc Pattyn23-Jul-07 9:36 
GeneralRe: How to replace text until end of the line? Pin
Luc Pattyn22-Jul-07 3:41
sitebuilderLuc Pattyn22-Jul-07 3:41 
GeneralRe: How to replace text until end of the line? Pin
sweehin1822-Jul-07 6:42
sweehin1822-Jul-07 6:42 
QuestionI have problem Pin
wayen22-Jul-07 1:53
wayen22-Jul-07 1:53 
AnswerRe: I have problem Pin
Sathesh Sakthivel22-Jul-07 4:07
Sathesh Sakthivel22-Jul-07 4:07 
GeneralRe: I have problem Pin
Paul Conrad22-Jul-07 5:38
professionalPaul Conrad22-Jul-07 5:38 
AnswerSearch and thou shall find Pin
Luc Pattyn22-Jul-07 9:51
sitebuilderLuc Pattyn22-Jul-07 9:51 
GeneralRe: Search and thou shall find Pin
Paul Conrad22-Jul-07 10:27
professionalPaul Conrad22-Jul-07 10:27 

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.