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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:35:00+00:00 2026-05-30T00:35:00+00:00

I have some html controls which default display value is none. I have anchor

  • 0

I have some html controls which default display value is none. I have anchor which is showing this form.

Form:

  <div id="login_container">
                    <div id="login_close">
                        <img src="images/close.png" align="close" title="close" />
                    </div>
                    <h2>
                        Login</h2>
                    <h5 id="incorrect_login" runat="server">
                        Username or Password is incorrect</h5>
                    <span>
                        <p>
                            Username:</p>
                        <asp:TextBox ID="txtUserName" runat="server" CssClass="textbox" />
                    </span>
                    <br />
                    <span>
                        <p>
                            Password:</p>
                        <asp:TextBox ID="txtPasswrod" runat="server" CssClass="textbox" TextMode="Password" />
                    </span><span>Remember Me
                        <input type="checkbox" id="chkbRememberMe" class="checkox" runat="server" />
                    </span>
                    <input type="button" class="default_button" id="btnLogin" value="Login" runat="server"
                        onserverclick="btnLogin_Click" />
                    <br />
                    <div id="forgot">
                        <a href="#">Forgot you username?</a>
                        <br />
                        <a href="#">Forgot you password?</a>
                    </div>
                </div>
            </div>

jquery:

  var AnimateLoginShow = function () {
        $('#login_form').css('display', 'none');
        $('#back_drop, #login_container').animate({ 'opacity': '0.3' }, 200, 'linear');
        $('#login_container').animate({ 'opacity': '1.00' }, 0, 'linear');
        $('#login_container').animate({ 'width': '430' }, 150, 'linear');
        $('#login_container').animate({ 'height': '280' }, 150, 'linear');
        $('#login_form').css('display', 'block');
        $('#login_form').animate({ 'opacity': '1.00' }, 300, 'linear');
        $('#back_drop, #login_container').css('display', 'block');
    }

    $('#login').click(function () {
        AnimateLoginShow();
    });

So my problem is that when user clicks login button (on this form) which have code behind this form is Returns to its original state (display:none)

p.s this form is inside ajax update panel

  • 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-30T00:35:01+00:00Added an answer on May 30, 2026 at 12:35 am

    It looks like you need to add script by calling ScriptManager.RegisterStartupScript method to show elements on page:

    ScriptManager.RegisterStartupScript(this, this.GetType(), this.ID, "$('#back_drop, #login_container').css('display', 'block');", true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some simple HTML: <div id=selectorContainer> <div id=chainedSelector style=display: none;><% Html.RenderPartial(ProjectSuggest/ChainedProjectSelector); %></div> <div
I have an asp.net form that contains some html, 2 controls a calendar from
It is a basic HTML question. I have some div tags, which have some
I have a repeater control outputting some HTML. I want a table which outputs
I have some HTML that looks like this: <ul class=faq> <li class=open> <a class=question
I have some HTML menus, which I show completely when a user clicks on
I have some HTML and jQuery that slides a div up and down to
I want to display a basic html table with controls to toggle showing/hiding of
I have some Swing controls in a JPanel. I want this panel to appear
I have some user controls in ASP.NET that I am using as simply HTML,

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.