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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:01:31+00:00 2026-06-16T15:01:31+00:00

My aspx file has the following code: <script type=text/javascript> var doClientSearch = { title:

  • 0

My aspx file has the following code:

<script type="text/javascript">

    var doClientSearch =
    {
        title: `Client Search`
    }


    $(document).ready(function ()
    {
        setup();
    });

</script>

In Visual Studio 20120, I use auto format which produces:

<script type="text/javascript">

    var doClientSearch =
    {
        title: `Client Search`
    }


              $(document).ready(function ()
              {
                  setup();
              });

    ... 

</script>

The remaining script is also indented. It appears all functions after the incorrect indention use that incorrect indention as a “left” gutter. I have been through all of the formatting options and cannot seem to find a way to resolve this issue. Many members of our development team do not indent code correctly (some do not indent at all!) and this code is extremely difficult to read and takes time to properly format without VS Format Document command.

I also welcome other strategies for proper code formatting.

  • 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-06-16T15:01:32+00:00Added an answer on June 16, 2026 at 3:01 pm

    The var statement should be closed with a ;

    I suspect that the indentation will work correctly if you close your var statement. For this particular use case, it still requires that your development team create somewhat semantically correct javascript code. Perhaps beating your dev team more frequently will do the trick. 🙂

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

Sidebar

Related Questions

I have an updateprogress in my aspx file, which has a label control in
I am trying to parse a file which has ITCH messages in it: http://www.nasdaqtrader.com/Trader.aspx?id=DPSpecs_USEquities#TVITCH
I have an .aspx file that outputs an image using the following methods: Server.MapPath(somefile.png)
I often open .aspx file. I used to do language -> j -> javascript.
This is my javascript method in .aspx file. I want to invoke this method
I have the following issue. I have an aspx file upload input that must
aspx file: <asp:Repeater ID=Repeater_sorular runat=server> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <div class=div_soru> <div class=div_soru_wrapper> <%#Eval(Subject)%> <asp:RadioButtonList
I need the the .ASPX file to behave differently based on a conditional compilation
I have several textboxes in my aspx file (not nested in any other controls),
Edit : I've got an aspx file (default.aspx) that loads a flash file (index.swf),

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.