Solved

Need correct Syntax for Attributes.Add

Posted on 2008-10-29
3
302 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now