M
Miguel Dias Moura
Hello,
I have this code:
1) <script runat="server">
2)Sub Page_Load(sender As Object, e As System.EventArgs)
3)Dim keywords() As String =
Request.QueryString("search").Split(CChar(""))
4)End Sub
</script>
When I use, for example, page.aspx?search=asp%20book everything works
well.
When I call only page.aspx I get this error in line (3):
Object reference not set to an instance of an object.
How can I prevent this?
Thanks,
Miguel
I have this code:
1) <script runat="server">
2)Sub Page_Load(sender As Object, e As System.EventArgs)
3)Dim keywords() As String =
Request.QueryString("search").Split(CChar(""))
4)End Sub
</script>
When I use, for example, page.aspx?search=asp%20book everything works
well.
When I call only page.aspx I get this error in line (3):
Object reference not set to an instance of an object.
How can I prevent this?
Thanks,
Miguel