Re: Inconsistant Browser linking
From: bruce barker (nospam_brubar_at_safeco.com)
Date: 09/23/04
- Next message: Craig: "CheckBoxList and postback"
- Previous message: bruce barker: "Re: binary image"
- In reply to: jcriv: "Re: Inconsistant Browser linking"
- Next in thread: Scott Simons: "Re: Inconsistant Browser linking"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 17:07:46 -0700
asp.net suppresses output of the width style if the browser is not IE.
google for a solution
-- bruce (sqlwork.com)
"jcriv" <jcriv@discussions.microsoft.com> wrote in message
news:6238931D-951C-4CE6-B7C3-03385C07ED4F@microsoft.com...
> Hi Mark,
> Thanks, that did the trick...
>
> I have one other quirk with Netscape and perhaps you have some clue about
> this as well.
>
> On webforms with several textboxes, they all come up the same width even
> though I set the width in the web forms properties pane. The textboxes
show
> the proper width in IE but not in any other browser. I viewed the html
that
> is being emitted by .net and it is different. as below
>
> IE gets this
>
> <input name="tbCompany" type="text" value="1" maxlength="4" id="tbCompany"
> tabindex="7" style="width:36px;Z-INDEX: 114; LEFT: 595px; POSITION:
absolute;
> TOP: 129px" />
>
>
> Netscape gets this
>
> <input name="tbCompany" type="text" value="1" maxlength="4" id="tbCompany"
> tabindex="7" style="Z-INDEX: 114; LEFT: 595px; POSITION: absolute; TOP:
> 129px" />
>
> note: the width:36px is missing in the code emitted for non-IE browser.
>
> So, I figured IE is smarted and Netscape does not understand the width
> style directive. BUT, If I copy the IE code and dump it into a file.htm
> and then open this file with Netscape it displays the textboxes with the
> correct width.
>
> Any idea what is going on here?
> Thanks,
> john
>
>
> "Mark" wrote:
>
> > Funny. I was dealing with what appears to be the same issue this
morning.
> >
> > I believe it boils down to your use of \ marks in your URL's. IE
naturally
> > converts them to /. Mozilla, FireFox, whatever all keep \ as \ in your
URL,
> > which results in a page cannot be found situation.
> >
> > So, looking at your code below, the line
> > sPgm = "..\Finance\FmForms\GlStatements1.aspx
> >
> > looks like it is a prime suspect. Change it to ...
> >
> > sPgm = "../Finance/FmForms/GlStatements1.aspx
> >
> > and I believe you'll be on the right track.
> >
> > HTH.
> >
> > Mark
> > www.dovetaildatabases.com
> >
> > "jcriv" <jcriv@discussions.microsoft.com> wrote in message
> > news:3719BEA9-08E3-46E5-8020-FEEEC48D0C63@microsoft.com...
> > > Hi,
> > > We have a large web app with a tree menu. All works fine when I run
this
> > > with IE 6 as the client. However, when I run with Mozilla FireFox,
> > > Netscape, etc I get errors trying to navigate from one webform to the
> > next.
> > >
> > > When a client goes to the website the default.htm page sends them to a
> > Login
> > > form in a LoginForms folder. Once the login is verified we links to a
> > > menu.htm which has 3 frames. A top frame with a heading, a left fram
with
> > a
> > > .aspx form with the tree menu and a right frame with another .aspx
forms
> > that
> > > is a greeting, etc form.
> > > The login form and the menu forms and all in the LoginForms folder
> > >
> > > the app folder tree is like the following
> > > wwwroot/MyWebForms/LoginForms
> > > wwwroot/MyWebForms/Finance/FmForms/forms.aspx
> > > wwwroot/MyWebForms/Finance/ReportForms/moreforms.aspx
> > >
> > > Each final leaf in the tree has a link with a relative path some thing
> > like
> > > ..\Finance\FmForms\GlStatments1.aspx
> > >
> > > Here is the code-behind that emits the html for one of the menu leafs.
> > >
> > > sPgm = "..\Finance\FmForms\GlStatements1.aspx
> > > sName = "Ledger Statements"
> > > App = "General Ledger"
> > > Sec = "FmForms"
> > >
> > > Response.Write("<TABLE BORDER=0><TR><TD WIDTH=10></TD><TD> <A href=" &
> > > Chr(34) & sPgm & "?App=" & App & "&Sec=" & Sec & Chr(34) & "target=" &
> > > Chr(34) & "_top" & Chr(34) & "><IMG SRC=" & Chr(34) & "leaf.gif" &
Chr(34)
> > &
> > > "> " & sName & "</A><DIV></DIV></TD></TR></TABLE>")
> > >
> > >
> > > Internet Explorer 6 shows the following when I hover over the href
> > >
> > > http://www.myServer.com/MyWebForms/Finance/FmForms/GlStatements1.aspx
> > >
> > >
> > > Mozilla FireFox, Netscape, etc (latest versions) show the following
> > >
> > >
> >
http://www.myServer.com/MyWebForms/LoginForms/..\Finance\FmForms\GlStatements1.aspx
> > >
> > > Why is there a difference? Also, this initial link seems to work but
when
> > I
> > > do a Response.Redirect("GlStatements2.aspx") to go to a second web
form
> > in
> > > the same folder, it works in IE but gets an error in Netscape and the
> > path
> > > displayed in the error shoes the 'LoginForms' stuck in the path
between
> > > MyWebForms and Finance. I hope there is something I can to to remedy
this
> > as
> > > some of our customers are insisting on using a non - IE browser.
> > >
> > > Thanks,
> > >
> > > --
> > > John
> >
> >
> >
- Next message: Craig: "CheckBoxList and postback"
- Previous message: bruce barker: "Re: binary image"
- In reply to: jcriv: "Re: Inconsistant Browser linking"
- Next in thread: Scott Simons: "Re: Inconsistant Browser linking"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|