473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

hyperlinks in asp.net

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>

Nov 19 '05 #1
2 1044
youneed spaces around your &'s

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<vn****@hotmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
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>

Nov 19 '05 #2
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_y ear=2005"

MattC

<vn****@hotmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
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>

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Colleyville Alan | last post by:
I have an application that has an Access table that stores the locations of slides in a Powerpoint file. This used to work fine when there were about 4 files and 200 slides. The database would...
0
by: Tim | last post by:
Access 97: I have a table with a hyperlink field that I display on a form. I can click on the form field and the hyperlink activates correctly. However, if I try to activate the hyperlink using VB...
4
by: Seefor | last post by:
Hi, I want my text hyperlinks to have a dotted border underneath, so I did this which works fine: a, a:link, a:visited, a:hover, a:active { color: #000; text-decoration: none;
9
by: Viken Karaguesian | last post by:
Hello all, I'm making a calendar section in a website. Each month is its own page and navigated by Previous / Next links. I have it working now with standard hyperlinks, but I want to learn how...
1
by: Robin | last post by:
Hello! I'm having trouble with links and hyperlinks in MS Access 2003 - any help would be great! Question 1! The "insert hyperlink" icon opens a browser window, allows the user to browse...
1
by: jez123456 | last post by:
Hi Experts I have a working c# application that users can store files (.doc, .xls, ..bmp, etc) as binary data into an Access database. I now need to extend this to also store hyperlinks. ...
1
by: Janna | last post by:
Hello tech savvy gurus! I hope someone can help me! THE PROBLEM: "Cannot open specified file" when I click on a hyperlink in an Access database when it is located on our server. THE...
1
by: mforema | last post by:
Hi Everybody, I have an Access table with a field filled with outdated hyperlinks. I also have an excel spreadsheet that is the master list for these hyperlinks. The spreadsheet will be updated...
3
by: prinsipe | last post by:
Hi all, what i'm doing is showing/hiding hyperlinks depending on the hyperlink clicked. it is partially working. when i call step1, all hyperlinks are hidden. but then i call step2, single and...
12
by: Frustratee | last post by:
Sorry guys, this is killing me. I have been fighting this issue for several weeks, to no avail. I am exporting the results of a query to an excel sheet, with one of the columns being from a field...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.