Solved

Need correct Syntax for Attributes.Add

Posted on 2008-10-29
3
304 Views
Last Modified: 2012-05-05
Hello,
I am developing in .Net 2005; in the code behind I have
Me.lnkOne.Attributes.Add ("onclick", "javascript: pageTracker._trackPageview('One') ; ConfigurationManager.AppSettings("specialMessage");")

I've tried several variables of the ending syntax ") ), etc... I know it's something stupid?
I keep getting a syntax error on "specialMessage", but cannot figure out where I'm going wrong.
0
Comment
Question by:ncrocker
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
silemone earned 50 total points
ID: 22835529
Me.lnkOne.Attributes.Add ("onclick", "javascript: pageTracker._trackPageview('One') ; ConfigurationManager.AppSettings('specialMessage');")


remove double quotes in specialMessage
0
 

Author Closing Comment

by:ncrocker
ID: 31511393
Thank you... I'm going home now! Probably should have hours ago!
0
 
LVL 21

Expert Comment

by:silemone
ID: 22835727
:o)  if it helped you escape the office, all the more better...
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET (VB) return a record 2 40
Change to file doesn't show up 16 56
Reactjs with .NET 3 37
PowerShell:  Column widths won't expand 3 21
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question