sindhuxyz
asked on
asp.net chrome problem
Hi,
I am facing very strange case. Below code return data in firefox, safari, IE but always return nothing(zero row) to chrome. What can be issue with chrome. It is working and returning data in all other browsers.
I am facing very strange case. Below code return data in firefox, safari, IE but always return nothing(zero row) to chrome. What can be issue with chrome. It is working and returning data in all other browsers.
Dim sqlconn As New SqlConnection(ConnectionString)
Using cmd As New SqlCommand("spGetUserStatus", sqlconn)
cmd.CommandType = CommandType.StoredProcedure
cmd.Parameters.Add("@email", SqlDbType.VarChar).Value = email
Try
sqlconn.Open()
Catch ex As Exception
End Try
Dim dr As SqlDataReader = cmd.ExecuteReader(CommandBehavior.CloseConnection)
Dim dt As New DataTable()
dt.Load(dr)
End Using
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What are you using to display your data?
If you are using a required field validator check this out
http://dotnetguts.blogspot.com/2009/05/dropdownlist-autopostback-problem-with.html
http://dotnetguts.blogspot.com/2009/05/dropdownlist-autopostback-problem-with.html
ASKER
Thanks
ASKER
Dim dr As SqlDataReader = cmd.ExecuteReader(CommandB
sqlcommand had all parameters correct and values as well. When it executed sqldatareader had "HasRows" as false. I do not know to to track it. Any advise?
Thanks