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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:56:34+00:00 2026-05-29T04:56:34+00:00

I have app with two sites, one where design is done and other which

  • 0

I have app with two sites, one where design is done and other which returns Images.I was storing my values to generic types and then converted them to query string and just set Image src on desing page to return changes. Code was getting bad and I was struggling with diffrent data on every place(since I have few different objects,and few same).I finally gave up after long struggle with query strings because my data was always messed up becuase of 1000 converting to different types.

Well now I created classes for my objects and everything is perfect but now when I serialize my objects with LosFormatter and glue it up like:

 <img id="img" src="Image.aspx?image=/wEy8AgAAQAAAP////8BAAAAAAAAAAwCAAAAQkxpa2VNeVN0dWZmLCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAUVN5c3RlbS5EcmF3aW5nLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJh..." </img>

Nothing happens. Page “Image.aspx” doesn’t even get called, nor I get any errors. I tried setting breakpoints to page_load and they never get hit.Everything worked fine with generic types and “normal” query string.Here is my LosFormatter Code:

public void RedrawImage()
{            
    System.Web.UI.LosFormatter formatter = new System.Web.UI.LosFormatter();
    StringWriter writer = new StringWriter();
    formatter.Serialize(writer,myObject);
    img.ImageUrl = "~/Image.aspx?image=" + Server.HtmlEncode(writer.ToString());
}

Has anyone had any similar issues?

  • 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-29T04:56:36+00:00Added an answer on May 29, 2026 at 4:56 am

    The problem might be unescaped characters in the query string. Try calling Server.UrlEncode instead of Server.HtmlEncode.

    UPDATE: Based on the posted comments, the query string is evidently too long. You can increase the limit in Web.config:

    <httpRuntime maxQueryStringLength="2048" />
    

    See http://www.asp.net/whitepapers/aspnet4.

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

Sidebar

Related Questions

Is it possible to have two app.config files where one app.config serves as a
In my iPad app I have two textfields. One displays the normal, default textfield
I currently have an app deployed on Heroku which runs on two web dynos
I have an app that requires two builds - one is a demo app,
I have a simple app, which pulls certain images off the web and displays
I have two app icons built-in (free and premium), is it possible to replace
I have an app with two view controllers. ViewControllerA is a blank view with
I have an app with an UINavigationController and two tableviews. When I switch between
I have a very basic app with two ignition-remoteimageviews (RIV) in them. The app
I have an App that I want to have two version in the App

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.