Solved

alignment problem on submit in asp.net

Posted on 2011-09-28
6
193 Views
Last Modified: 2012-05-12
Please see the difference between following 2 images.
These are the screenshots of my webpage. (designed in asp.net)
As shown in the images, after clicking the Send button on the webpage changes the alignment completely. Everything gets shifted towards left.

I have used a .css file for sytling.

Could someone please suggest something?

 original look of a webpage


 changed look of a webpage on form submit
0
Comment
Question by:Tina_Bhole
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 36781062
Post your css file can suggest you
0
 

Author Comment

by:Tina_Bhole
ID: 36788723
Hello jagadishdulal,

Thanks for your response
Please see the attachments
Site-Master.txt
CourseEnquiry.txt
css.txt
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 36813243
Change your css of line no 219 to
 
.smallform9
{
    border:solid .1em #121468;
    margin:0 auto;
    width:90%;
    padding-bottom:2em;
    padding-top:1em;
    padding-left:0;
    text-align:left;
    margin-bottom:1em;
    margin-top:1em;
}

Open in new window

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Tina_Bhole
ID: 36906589
Hi jagadishdulal ,

Thanks for your response.
I changed margin: auto to margin: 0 auto; but it still didn't fix the alignment problem.
0
 

Accepted Solution

by:
Tina_Bhole earned 0 total points
ID: 36960273
Finally I found a solution and a cause as well.
The reason it was happening was..I used Response.Write instead of Page.ClientScript.RegisterStartupScript to flash alert messages using javascript which for some reason changed the alignment of the controls on my web page.
After I made this particular change. everything is working fine.
0
 

Author Closing Comment

by:Tina_Bhole
ID: 36978286
The reason it was happening was..I used Response.Write instead of Page.ClientScript.RegisterStartupScript to flash alert messages using javascript which for some reason changed the alignment of the controls on my web page.
After I made this particular change. everything is working fine.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 71
Can't change Woocommerce checkout select boxes, white on white text. 1 31
Regular Expression needed 4 18
Diff of the day 2 10
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question