?
Solved

Need correct Syntax for Attributes.Add

Posted on 2008-10-29
3
Medium Priority
?
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
silemone earned 200 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

770 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