my page is loading but the data is not populated into the textboxes it. What am I doing wrong?I have claiminfo which is a 6 number field coming over and Pic as a querystring.I want to fill two text boxes on the pageLAFtxt and DocpmtHere's my stored procedure:ALTER procedure [dbo].[GetClaiminfo] @claiminfo char(6),@PIC char(2)AsSELECT *FROM DelayedClaimWHERE claiminfo = @claiminfo and pic = @pic
Here's the adapter I'm trying to use. Dim conn As New Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString) Dim dt As New Data.DataTable Dim cmd As New Data.SqlClient.SqlCommand("GetClaiminfo", conn) cmd.Parameters.AddWithValue("@claiminfo", Integer.Parse(Request.QueryString("ssn"))) cmd.Parameters.AddWithValue("@pic", (Request.QueryString("pic"))) 'cmd.Parameters.AddWithValue("@PIC", CType(Request.QueryString("ssn"), Integer)) cmd.CommandType = Data.CommandType.StoredProcedure cmd.Connection.Open() cmd.ExecuteNonQuery() Dim ad As New Data.SqlClient.SqlDataAdapter(cmd) ad.Fill(dt) cmd.Connection.Close() conn.Close()
What am I doing wrong?