hyperlinks in asp.net

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>
 
M

MattC

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
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top