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 6226133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:58:13+00:00 2026-05-24T08:58:13+00:00

i have use java script successfully running in my project but when i have

  • 0

i have use java script successfully running in my project but when i have to use master page and content page for this purpose i create master page and copy all css and script in the head tag of the master page and rest of the controls in the body tag
then i did copy all css and script in the asp:content1 tag while all other thing in the another asp:content2 tag abviously removed all form tags
when i compile content page it gave error

“‘serializer’ does not exist in the current context ” in the source file master

actually i use this code in which is actually giving error,

i use this namespace “using System.Web.Script.Serialization;”
then use this code in the code behind file,

protected double[] Pvar;
protected JavaScriptSerializer serializer = new 
System.Web.Script.Serialization.JavaScriptSerializer();
Pvar[runs] = Convert.ToDouble(output.Tables[0].Rows[runs][2]);

then for accessing this this array in client side javascript i use this code,

 var Arr=<%= serializer.Serialize(Pvar)%>;

it giving error in this line but remember code is correct because it is working on a simple ASPX page on the same time side by using master page and content page ..

Hopes for your suggestions,

  • 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-24T08:58:14+00:00Added an answer on May 24, 2026 at 8:58 am

    From which page, are you accessing the serializer object? You cannot access protected variable from content code-behind in master page markup and vice versa. So make sure that’s not being the case otherwise you need to create public properties/methods and access them by casting Master property in content page (or Page property in Master page) to correct code behind class.

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

Sidebar

Related Questions

I have this line which successfully select all elements of classmyclass on my page:
Using mysql, c#.net, Java Script I have the web application, i want to create
Using C# & Java Script I have the link like this http://localhost/Server/Vehicle/Vehicle.aspx?appid=5 , when
i often use but i have this problem. if there is a whose action
Duplicate of: Use javascript to inject script references as needed? Javascript doesn't have any
I'm converting an application to use Java 1.5 and have found the following method:
I have a Perl module that I would like to use from Java. Is
I've just started using Java's enums in my own projects (I have to use
Here is what I want to do. Use this HTML line and have the
I have this java application and ran into a requirement to parse an STDF.

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.