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

  • SEARCH
  • Home
  • 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 7686973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:35:51+00:00 2026-05-31T19:35:51+00:00

I have declared this variable in jquery var enabled = false; I want to

  • 0

I have declared this variable in jquery

var enabled = false;

I want to use it in my Html page in my Html hepler parameter like this

@Html.ListMultiple(enabled)

But this code doesn’t work since Html doesn’t know the variable because it is declared in jQuery.

  • 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-31T19:35:52+00:00Added an answer on May 31, 2026 at 7:35 pm

    I have declared this variable in jquery

    No, you haven’t. That is plain JavaScript. It would still be JavaScript even if it made use of functions provided by the jQuery library, which it doesn’t.

    I want to use it in my Html page in my Html hepler parameter like this

    That means you want to use it in you server side ASP code. You can’t do that.

    1. The ASP generates some text.
    2. The text is sent to the browser.
    3. The ASP finishes running.
    4. The browser parses the text as HTML / JavaScript / CSS / etc
    5. The browser executes the JavaScript

    At this stage the JavaScript is:

    • Running on a different machine
    • Running when the ASP has ended

    You can’t pass data back to the ASP that generated the page.

    You could make a new HTTP request (by submitting a form, setting location.href, using Ajax, etc) to send some data to a new invocation of an ASP program.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a variable declared like this in a class: Entity *array[BOARD_SIZE][BOARD_SIZE]; I need
I have an IEnumerable< T> which is declared on the page like this: IEnumerable<
I have declared global variable named counter=0 on my index.html page inside head section
I have a variable declared in one jsp page. This variable is an array.
I have two classes declared like this: class Object1 { protected ulong guid; protected
Hi I have an enum declared like this: typedef enum { Top, Bottom, Center
In C, I have declared a memory area like this: int cells = 512;
I have written my own function, which in C would be declared like this,
I have this code in jquery: var ratio; $(<img/>).attr(src, $(img).attr(src)).load(function() { ratio = this.width
I am trying something like: var usernameDone = false; /*Some application logic*/ alert(usernameDone); This

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.