Thank you - your coding is very helpful in telling me what I need to do.
In implementing the coding, I notice that the variable types SqlCommand and SqlParameter are not defined. Do I use a Private declaration at the top of the WebForm.aspx page? Could you tell me the syntax for the Private statements?
Also, when I pasted in the "DB string connection" which I got from the connection properties on the form designer, there is a problem with the syntax. The string is as follows:
"Dim Conn As SqlConnection1 = "workstation id="RAY-XP"; packet size=4096;user id=sa;data source=ATLANTIS;persist security info=False;initial catalog=Unison"
The error msg is: "End of statement expexted"
Thanks again for getting me started.
Michael
Main Topics
Browse All Topics





by: ghornetPosted on 2003-09-24 at 16:49:30ID: 9424892
This should give you a start I just quickly wrote this but it might give you an idea
Conn) e
SqlDbType.DBDate, 50) C)
C1)
C2)
Dim Conn As SqlConnection ="DB string connection goes here"
Dim objSPComm As New SqlCommand("ContactCount",
objSPComm.CommandType = CommandType.StoredProcedur
Dim CC As SqlParameter = New SqlParameter("@StartDate",
CC.Direction = ParameterDirection.input
objSPComm.Parameters.Add(C
Dim CC1 As SqlParameter = New SqlParameter("@EndDate", SqlDbType.DBDate, 50)
CC1.Direction = ParameterDirection.input
objSPComm.Parameters.Add(C
Dim CC2 As SqlParameter = New SqlParameter("@Name", SqlDbType.VarChar, 50)
CC2.Direction = ParameterDirection.input
objSPComm.Parameters.Add(C
Conn.Open()
dgYourDG.DataSource = objSPComm.ExecuteReader()
dgYourDB.Databind()
Conn.Close()
This won't allow you to edit the data in the DG yet
but once you get the info in the DG it is'nt that hard
good luck