Click here to Skip to main content
13,507,984 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am using this:
<asp:TextBox ID="TextBox1" CssClass="input-small" runat="server" 

        style="z-index: 1; left: 20px; top: 150px; position: absolute "></asp:TextBox>

I have linked the css classes of bootstrap to my page properly. I am using a simple javascript alert (not that provided with bootstrap) that displays whether email is valid or invalid.

The Problem: When the page is loaded for the first time, every thing is fine. Then I take input in the text box and press the login button, the js alert is displayed. When I click the ok button on the alert box and the web page is again displayed, the height of textbox is shrunk.
Is there anything which I am missing?
Posted 19-Jan-13 4:05am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I can't say much looking at the code you have provided. Try to use IE developer toolbar and see what has changed in terms of styles.

P.S. : Better move the inline styling to a css class and use it.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try to use Firebug
or put your coded code in update pannel
Omkar Hendre 10-Sep-14 8:49am
after page post back jquery or java script is not work properly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180417.1 | Last Updated 29 Jul 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100