hyperlinks in asp.net

  • Thread starter Thread starter vncntj
  • Start date Start date
V

vncntj

i'm trying to pass these variables to the page of index.aspx
to retrieve the d_month and d_year

but i get....
BC30205: End of statement expected.

hyplastmonth.NavigateUrl="index.aspx?d_month="&3&"d_year="&2005


<script language="vb" runat="server">
Sub Page_Load(Sender as Object, E as EventArgs)
hyplastmonth.NavigateUrl="index.aspx?d_month="&3&"d_year="&2005
end sub
</script>


<asp:hyperlink id=hyplastmonth runat=server>lmonth</asp:hyperlink>
 
3 and 2005 are not strings in this case:
hyplastmonth.NavigateUrl="index.aspx?d_month="&3&"d_year="&2005

should this not read something like

hyplastmonth.NavigateUrl="index.aspx?d_month=3&d_year=2005"

MattC
 
Back
Top