Help with simplifying a vb.net 2005 web

S

Steve

Hi All

I am a VB.net windows forms programmer and I have a website for my products
which is written in vb.net 2005

The template for the website was taken from one of Microsoft's web templates

I like the look of the web but it seems to be overly complex with css sheets
etc

I need somebody to simplify the project whilst still maintaining the basic
appearance of the site

I have no experience with asp.net and also no interest in it

I am willing to pay for assistance on this

Anybody interested?

Regards
Steve
 
J

Joe Fawcett

Steve said:
Hi All

I am a VB.net windows forms programmer and I have a website for my
products which is written in vb.net 2005

The template for the website was taken from one of Microsoft's web
templates

I like the look of the web but it seems to be overly complex with css
sheets etc

I need somebody to simplify the project whilst still maintaining the basic
appearance of the site

I have no experience with asp.net and also no interest in it

I am willing to pay for assistance on this

Anybody interested?

Regards
Steve
Cascading stylesheets are normally preferable to inline styles, much easier
to maintain.
Is there a particular reason you want to get rid of them? Are there other
things you have in mind to change?
 
S

Steve

Hi Joe

The web runs OK with IE but several pages don't render properly with Firefox
etc

If you have firefox you will see what I mean at www.australiapos.com.au
Main page, Resellers and contacts pages

I have no idea why they don't render in firefox and assumed it was because
of the css which have float: parameters

I reply from a previous post several days ago from Alexey indicated that the
pages were using a jpg as the background when it wasn't required

I figured if I could get somebody to help me simplify the web pages then I
would be able to maintain the web with less effort


Regards
Steve
 
A

Allen Chen [MSFT]

Hi Steve,

Please remove the float:left and float:right from the CSS File. Namely use
following one instead:

#content-main-two-column {
width:540px;

}

#content-side-two-column {

width:160px;
}

You can refer to:

http://webjournl.wordpress.com/2007/03/15/css-float-property-not-working-in-
firefox-or-is-it/
to learn how to use float.

BTW, sometimes we can use two different CSS files to support different
browsers. You can try following way to do so.
In aspx:

Replace this line:

<link href="App_Themes/Standard/css-content.css" rel="stylesheet"
type="text/css" media="interactive, braille, emboss, handheld, projection,
screen, tty, tv" />
With:
<link href=<%=GetCSSFile() %> rel="stylesheet" type="text/css"
media="interactive, braille, emboss, handheld, projection, screen, tty, tv"
/>

In aspx.cs:

protected string GetCSSFile()
{
if (Request.Browser.Browser == "IE")
{
return "App_Themes/Standard/css-content.css";
}
else //Other browsers
{
return "App_Themes/Standard/cssforotherbrowsers.css";
}
}

Please try it to see if it works and let me know if you have any further
questions.

Regards,
Allen Chen
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can

improve the support we provide to you. Please feel free to let my manager
know what you think of the

level of service provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-

us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from

the community or a Microsoft Support Engineer within 2 business day is
acceptable. Please note that each

follow up response may take approximately 2 business days as the support
professional working with you

may need further investigation to reach the most efficient resolution. The
offering is not appropriate

for situations that require urgent, real-time or phone-based interactions.
Issues of this nature are

best handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer

Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steve

Hi Allen

I tried your suggestion and it worked fine. The pages now render correctly
in Firefox etc

Thanks for your help

The only problem is that on the Resellers and Contacts page the Contact Us
info is now above the Request Information section instead of to the left

How can I rectify that

Regards
Steve
 
A

Allen Chen [MSFT]

Hi Steve,

To achieve the requirement I think we'd better use float. You can try the
following steps. Please note the following steps are done at client side
with the rendered HTML. To make it work we need to edit the aspx code
correspondingly.

1. Insert following tag below the two divs <div
id="content-main-two-column1"> and <div id="content-side-two-column1">
(I've changed the IDs of these two divs and therefore will use other styles
for them in case it affected the Home page):

<div style='clear:both;'></div>

2. Add the following styles in the CSS file:

#content-main-two-column1 {
width:540px;
float:left;
}

#content-side-two-column1 {

width:160px;
float:right;
}

Since I haven't seen your server side code I can only provide above
information. Probably the divs are rendered by ASP.NET Panel control. If so
you can find the corresponding Panels first and insert the div tag below
them as mentioned in the step1.

Please try it and let me know if it works. If you meet with any
difficulties please don't hesitate to let me know and provide some server
side code as to how the two divs (content-main-two-column and
content-side-two-column) are rendered. This information can help me find
how to modify the server side code.

Regards,
Allen Chen
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,237
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top