[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

alignment problem on submit in asp.net

Posted on 2011-09-28
6
Medium Priority
?
207 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
  • 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
Independent Software Vendors: 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

830 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