Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6354495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:35:04+00:00 2026-05-24T22:35:04+00:00

In Visual Studio 2008, a JavaScript function, I comment the line,. It’s a usercontrol, and I

  • 0

In Visual Studio 2008, a JavaScript function, I comment the line,. It’s a usercontrol, and I get it in JavaScript. I want to comment the line, but it didn’t work (
whether I add // or /* */, it doesn’t work).

var user = document.getElementById('<%=UCSeletUser.ClientID %>'); 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:35:07+00:00Added an answer on May 24, 2026 at 10:35 pm

    Your problem is that your JavaScript comments are just text like anything else to the ASPX processor. Anything not inside of the script markers is treated as a string literal — it doesn’t know or care that it’s a JavaScript comment. It goes through the page looking for script sections (<% %>) and doing whatever is inside them, regardless of the surrounding text. (Things work slightly differently for databinding code <%# %>, but that’s not relevant to your question.)

    If you don’t want that script block to run, you need to either take it out, or comment it out with server-side comments:

    C#:    //var user = document.getElementById('<%//=UCSeletUser.ClientID %>');
    VB:    //var user = document.getElementById('<%'=UCSeletUser.ClientID %>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm now working on RC Windows 7 and installed Visual Studio 2008 Professional edition. But I
I just moved from Visual Studio 2008 to Visual Studio 2010 (final) and noticed one major
In Visual Studio 2008, in the Find Results window, how do I not show the full
I have a Visual Studio 2008 solution, and I would like to include a real folder
I have VB.NET code in Visual Studio 2008 using an obsolete method and would like to
How do I tell if my application (compiled in Visual Studio 2008 as Any CPU )
Is there a way to find ILDASM.exe from Visual Studio 2008 ? I know the location
I am developing some applications in Windows Mobile 6 on Visual Studio 2008 , and I
I'm running Visual Studio 2008 on Windows 7 64-bit. I'm logged in as administrator, and I'm running
I have installed Visual Studio 2010 Professional, and despite my tremendous urge to work on it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.