Solved

Need correct Syntax for Attributes.Add

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
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 video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

20 Experts available now in Live!

Get 1:1 Help Now