cmd button and response.redirect

R

ray

I have a cmd button on a asp.net page that builds a query
string and does a simple response.redirect to another
page. We are experiencing a probem - not all users go
to the next page. Some just sit there. I think I have
it narrowed down to Win2K with IE6 (doesn't seem to
matter which, if any SP's are applied).

A sample of the code follows, in case anyone can see a
problem. If so, I'd be happy to take any suggestions on
what could be wrong.

Private Sub cmdViewSPA_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cmdViewSPA.Click
Dim sQueryString As String
sQueryString = "SPANumber=" & Server.UrlEncode
(txtSPANumber.Text)
If radViewMode.SelectedItem.Value > 0 Then
sQueryString = "SPANumber=" & Server.UrlEncode
(txtSPANumber.Text) & "&PrintMode=" &
radViewMode.SelectedItem.Value
Else
sQueryString = "SPANumber=" & Server.UrlEncode
(txtSPANumber.Text)
End If
Response.Redirect("SPAView.aspx?" & sQueryString)

End Sub

Thanks in advance for your help!

Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top