Solved

Need correct Syntax for Attributes.Add

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

728 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