Showing posts with label link. Show all posts
Showing posts with label link. Show all posts

Monday, March 26, 2012

newbie: need help with this css/html code

hey
asp.net 2.0
Please, I need some help with the layout of my webpage. this link shows my
problem: http://home.online.no/~au-holme/pub.../divtrouble.PNG
Instead of fieldname and value are displayed like this:
<FIELDNAME>
<FIELDVALUE>
I want fieldname & fieldvalue to be displayed on the same line:
<FIELDNAME> <FIELDVALUE>
This is my html:
<ul class="settings">
<li>Site preference
<ul class="subsettings">
<li><div class="setting">
<div class="fieldname">Newsletter:</div>
<div class="fieldvalue">
<asp:DropDownList ID="ddlSubscriptions"
runat="server">
<asp:ListItem Text="No subscription"
Value="None" Selected="true"></asp:ListItem>
<asp:ListItem Text="Subscribe to plain-text
vesion" Value="PlainText"></asp:ListItem>
<asp:ListItem Text="Subscribe to HTML version"
Value="Html"></asp:ListItem>
</asp:DropDownList>
</div>
</div>
</li>
<li><div class="fieldname">Language:</div>
<asp:DropDownList ID="ddlLanguages" runat="server">
<asp:ListItem Text="English" Value="en-US"
Selected="True"></asp:ListItem>
<asp:ListItem Text="Norwegian"
Value="no-NO"></asp:ListItem>
</asp:DropDownList>
</li>
</ul>
</li>
<li>Personal details
</li>
</ul>
This is my css:
.settings, .subsettings
{
list-style:none;
}
.settings li
{
font-family:Arial;
font-size:xx-large;
}
.subsettings li
{
font-family:Arial;
font-size:medium;
}
.subsettings li .fieldname
{
width:180px;
border:solid 2px yellow;
}
.subsettings li .fieldvalue
{
width:220px;
border:solid 2px cyan;
}
.setting
{
width:500px;
border:solid 2px red;
}<div>'s are a block element, meaning they go on their own line. use a
<span> which is an inline element instead.
-- bruce (sqlwork.com)
"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:OOemtbo3GHA.3812@.TK2MSFTNGP06.phx.gbl...
> hey
> asp.net 2.0
> Please, I need some help with the layout of my webpage. this link shows my
> problem: http://home.online.no/~au-holme/pub.../divtrouble.PNG
> Instead of fieldname and value are displayed like this:
> <FIELDNAME>
> <FIELDVALUE>
> I want fieldname & fieldvalue to be displayed on the same line:
> <FIELDNAME> <FIELDVALUE>
> This is my html:
> <ul class="settings">
> <li>Site preference
> <ul class="subsettings">
> <li><div class="setting">
> <div class="fieldname">Newsletter:</div>
> <div class="fieldvalue">
> <asp:DropDownList ID="ddlSubscriptions"
> runat="server">
> <asp:ListItem Text="No subscription"
> Value="None" Selected="true"></asp:ListItem>
> <asp:ListItem Text="Subscribe to plain-text
> vesion" Value="PlainText"></asp:ListItem>
> <asp:ListItem Text="Subscribe to HTML version"
> Value="Html"></asp:ListItem>
> </asp:DropDownList>
> </div>
> </div>
> </li>
> <li><div class="fieldname">Language:</div>
> <asp:DropDownList ID="ddlLanguages" runat="server">
> <asp:ListItem Text="English" Value="en-US"
> Selected="True"></asp:ListItem>
> <asp:ListItem Text="Norwegian"
> Value="no-NO"></asp:ListItem>
> </asp:DropDownList>
> </li>
> </ul>
> </li>
> <li>Personal details
> </li>
> </ul>
> This is my css:
> .settings, .subsettings
> {
> list-style:none;
> }
> .settings li
> {
> font-family:Arial;
> font-size:xx-large;
> }
> .subsettings li
> {
> font-family:Arial;
> font-size:medium;
> }
> .subsettings li .fieldname
> {
> width:180px;
> border:solid 2px yellow;
> }
> .subsettings li .fieldvalue
> {
> width:220px;
> border:solid 2px cyan;
> }
> .setting
> {
> width:500px;
> border:solid 2px red;
> }
>

newbie: need help with this css/html code

hey

asp.net 2.0

Please, I need some help with the layout of my webpage. this link shows my
problem: http://home.online.no/~au-holme/pub.../divtrouble.PNG
Instead of fieldname and value are displayed like this:
<FIELDNAME>
<FIELDVALUE>

I want fieldname & fieldvalue to be displayed on the same line:
<FIELDNAME<FIELDVALUE>

This is my html:
<ul class="settings">
<li>Site preference
<ul class="subsettings">
<li><div class="setting">
<div class="fieldname">Newsletter:</div>
<div class="fieldvalue">
<asp:DropDownList ID="ddlSubscriptions"
runat="server">
<asp:ListItem Text="No subscription"
Value="None" Selected="true"></asp:ListItem>
<asp:ListItem Text="Subscribe to plain-text
vesion" Value="PlainText"></asp:ListItem>
<asp:ListItem Text="Subscribe to HTML version"
Value="Html"></asp:ListItem>
</asp:DropDownList>
</div>
</div>
</li>
<li><div class="fieldname">Language:</div>
<asp:DropDownList ID="ddlLanguages" runat="server">
<asp:ListItem Text="English" Value="en-US"
Selected="True"></asp:ListItem>
<asp:ListItem Text="Norwegian"
Value="no-NO"></asp:ListItem>
</asp:DropDownList>
</li>
</ul>
</li>
<li>Personal details
</li>
</ul>

This is my css:
..settings, .subsettings
{
list-style:none;
}

..settings li
{
font-family:Arial;
font-size:xx-large;
}

..subsettings li
{
font-family:Arial;
font-size:medium;
}

..subsettings li .fieldname
{
width:180px;
border:solid 2px yellow;
}

..subsettings li .fieldvalue
{
width:220px;
border:solid 2px cyan;
}

..setting
{
width:500px;
border:solid 2px red;
}<div>'s are a block element, meaning they go on their own line. use a
<spanwhich is an inline element instead.

-- bruce (sqlwork.com)

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:OOemtbo3GHA.3812@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

hey
>
asp.net 2.0
>
Please, I need some help with the layout of my webpage. this link shows my
problem: http://home.online.no/~au-holme/pub.../divtrouble.PNG
>
Instead of fieldname and value are displayed like this:
<FIELDNAME>
<FIELDVALUE>
>
I want fieldname & fieldvalue to be displayed on the same line:
<FIELDNAME<FIELDVALUE>
>
This is my html:
<ul class="settings">
<li>Site preference
<ul class="subsettings">
<li><div class="setting">
<div class="fieldname">Newsletter:</div>
<div class="fieldvalue">
<asp:DropDownList ID="ddlSubscriptions"
runat="server">
<asp:ListItem Text="No subscription"
Value="None" Selected="true"></asp:ListItem>
<asp:ListItem Text="Subscribe to plain-text
vesion" Value="PlainText"></asp:ListItem>
<asp:ListItem Text="Subscribe to HTML version"
Value="Html"></asp:ListItem>
</asp:DropDownList>
</div>
</div>
</li>
<li><div class="fieldname">Language:</div>
<asp:DropDownList ID="ddlLanguages" runat="server">
<asp:ListItem Text="English" Value="en-US"
Selected="True"></asp:ListItem>
<asp:ListItem Text="Norwegian"
Value="no-NO"></asp:ListItem>
</asp:DropDownList>
</li>
</ul>
</li>
<li>Personal details
</li>
</ul>
>
This is my css:
.settings, .subsettings
{
list-style:none;
}
>
.settings li
{
font-family:Arial;
font-size:xx-large;
}
>
.subsettings li
{
font-family:Arial;
font-size:medium;
}
>
.subsettings li .fieldname
{
width:180px;
border:solid 2px yellow;
}
>
.subsettings li .fieldvalue
{
width:220px;
border:solid 2px cyan;
}
>
.setting
{
width:500px;
border:solid 2px red;
}
>

Newbie: Open other form when link is clicked

I have a hyperlink on my Web form (home.aspx). I want to open another
form (Login.aspx) when user clicks this link. How to do this? I also
want to maintain site map when another form gets opened."Rohit" <rpk.general@.gmail.comwrote in message
news:1192811576.682143.41250@.e34g2000pro.googlegro ups.com...

Quote:

Originally Posted by

I have a hyperlink on my Web form (home.aspx). I want to open another
form (Login.aspx) when user clicks this link. How to do this?


Well, the obvious answer is to change the hyperlink to point to Login.aspx
instead of home.aspx, but I guess that's not what you really mean...

Can you explain in a bit more detail what you're trying to do...

--
Mark Rae
ASP.NET MVP
http://www.markrae.net
In the client-side click event of the link, call window.open ('popup.aspx");

"Rohit" wrote:

Quote:

Originally Posted by

I have a hyperlink on my Web form (home.aspx). I want to open another
form (Login.aspx) when user clicks this link. How to do this? I also
want to maintain site map when another form gets opened.
>
>

Saturday, March 24, 2012

newbie: trouble with asp:HyperLink

hey
asp.net 2.0
I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
something like www.helloworld.com, and click on the link during runtime,
then the link don't navigate to this page. Instead it navigate to
http://localhost:1794/Test/Controls/www.helloworld.com
http://localhost:1794/Test/Controls/ is the folder in which I've placed the
usercontrol using this hyperlink
This is the markup of my HyperLink
<asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />
Any suggestions?
JeffJeff,
You have to preface an external URL with http://. The control won't do
it for you as it can't tell if you're looking to browser to a local page or
want to browse to an external site.
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199...2006
"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:etohk8t$GHA.4604@.TK2MSFTNGP02.phx.gbl...
> hey
> asp.net 2.0
> I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
> something like www.helloworld.com, and click on the link during runtime,
> then the link don't navigate to this page. Instead it navigate to
> http://localhost:1794/Test/Controls/www.helloworld.com
> http://localhost:1794/Test/Controls/ is the folder in which I've placed
> the usercontrol using this hyperlink
> This is the markup of my HyperLink
> <asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
> Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />
> Any suggestions?
> Jeff
>
>
>
okay, thanks
"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:uTpSbPu$GHA.3928@.TK2MSFTNGP03.phx.gbl...
>I suggest you set the hyperlink's NavigateURL to this:
> http://www.helloworld.com
> That way it doesn't think its a relative URL since you seem to be linking
> to an external site.
> --
> I hope this helps,
> Steve C. Orr
> MCSD, MVP, CSM
> http://SteveOrr.net
>
> "Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
> news:etohk8t$GHA.4604@.TK2MSFTNGP02.phx.gbl...
>
I suggest you set the hyperlink's NavigateURL to this:
http://www.helloworld.com
That way it doesn't think its a relative URL since you seem to be linking to
an external site.
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Jeff" <it_consultant1@.hotmail.com.NOSPAM> wrote in message
news:etohk8t$GHA.4604@.TK2MSFTNGP02.phx.gbl...
> hey
> asp.net 2.0
> I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
> something like www.helloworld.com, and click on the link during runtime,
> then the link don't navigate to this page. Instead it navigate to
> http://localhost:1794/Test/Controls/www.helloworld.com
> http://localhost:1794/Test/Controls/ is the folder in which I've placed
> the usercontrol using this hyperlink
> This is the markup of my HyperLink
> <asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
> Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />
> Any suggestions?
> Jeff
>
>
>
yes, it can tell if you're looking to browser to a local page or
want to browse to an external site.
You are telling you want to browse to a local page

newbie: trouble with asp:HyperLink

hey

asp.net 2.0

I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
something like www.helloworld.com, and click on the link during runtime,
then the link don't navigate to this page. Instead it navigate to
http://localhost:1794/Test/Controls/www.helloworld.com
http://localhost:1794/Test/Controls/ is the folder in which I've placed the
usercontrol using this hyperlink

This is the markup of my HyperLink
<asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />

Any suggestions?

JeffJeff,
You have to preface an external URL with http://. The control won't do
it for you as it can't tell if you're looking to browser to a local page or
want to browse to an external site.

--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:etohk8t$GHA.4604@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

hey
>
asp.net 2.0
>
I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
something like www.helloworld.com, and click on the link during runtime,
then the link don't navigate to this page. Instead it navigate to
http://localhost:1794/Test/Controls/www.helloworld.com
>
http://localhost:1794/Test/Controls/ is the folder in which I've placed
the usercontrol using this hyperlink
>
This is the markup of my HyperLink
<asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />
>
Any suggestions?
>
Jeff
>
>
>
>
>


I suggest you set the hyperlink's NavigateURL to this:
http://www.helloworld.com
That way it doesn't think its a relative URL since you seem to be linking to
an external site.

--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:etohk8t$GHA.4604@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

hey
>
asp.net 2.0
>
I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
something like www.helloworld.com, and click on the link during runtime,
then the link don't navigate to this page. Instead it navigate to
http://localhost:1794/Test/Controls/www.helloworld.com
>
http://localhost:1794/Test/Controls/ is the folder in which I've placed
the usercontrol using this hyperlink
>
This is the markup of my HyperLink
<asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />
>
Any suggestions?
>
Jeff
>
>
>
>
>


okay, thanks

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.netwrote in message
news:uTpSbPu$GHA.3928@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>I suggest you set the hyperlink's NavigateURL to this:
http://www.helloworld.com
>
That way it doesn't think its a relative URL since you seem to be linking
to an external site.
>
--
I hope this helps,
Steve C. Orr
MCSD, MVP, CSM
http://SteveOrr.net
>
>
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:etohk8t$GHA.4604@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

>hey
>>
>asp.net 2.0
>>
>I have a asp:HyperLink on a usercontrol. If I set it's NavigateUrl to
>something like www.helloworld.com, and click on the link during runtime,
>then the link don't navigate to this page. Instead it navigate to
>http://localhost:1794/Test/Controls/www.helloworld.com
>>
>http://localhost:1794/Test/Controls/ is the folder in which I've placed
>the usercontrol using this hyperlink
>>
>This is the markup of my HyperLink
><asp:HyperLink ID="hlCompany" runat="server" CssClass="label"
>Target="_blank" Width="175px">[hlCompany]</asp:HyperLink><br />
>>
>Any suggestions?
>>
>Jeff
>>
>>
>>
>>
>>


>
>


yes, it can tell if you're looking to browser to a local page or
want to browse to an external site.

You are telling you want to browse to a local page

Thursday, March 22, 2012

Newbie:sending German characters on TCP link

Hi,

I've a .NET application that sends XML string as bytes on a TCP
connection. It had used ASCII encoding so far and everything was fine. Now
on a German OS, German characters were sent as question mark in the received
string. I guess that's because ASCII encoding was used and unicode encoding
should be used instead. But then would byte ordering(little endian ir big
endian) be a problem because the received TCP stream could be consumed by
both a Java and .NET clients ? What could be done to ensure that the
received unicode encoded XML stream be decoded by both .NET and Java clients
? And, which encoding .NET class be used utf8, utf32,.. ? Is there a sample
anywhere ?

Thanks in advance and regards

NavinOn Feb 27, 7:44 pm, "Navin Mishra" <navin.mis...@.siemens.comwrote:

Quote:

Originally Posted by

Hi,
>
I've a .NET application that sends XML string as bytes on a TCP
connection. It had used ASCII encoding so far and everything was fine. Now
on a German OS, German characters were sent as question mark in the received
string. I guess that's because ASCII encoding was used and unicode encoding
should be used instead. But then would byte ordering(little endian ir big
endian) be a problem because the received TCP stream could be consumed by
both a Java and .NET clients ? What could be done to ensure that the
received unicode encoded XML stream be decoded by both .NET and Java clients
? And, which encoding .NET class be used utf8, utf32,.. ? Is there a sample
anywhere ?
>


This group is for ASP.NET

Regarding your problem

First of all, ensure that the xml is encoded

sXML = "<?xml version=""1.0"" encoding=""windows-1252""?

Quote:

Originally Posted by

>.........."


then set this encoding to the method which send the data.

For example

myWriter = New System.IO.StreamWriter(xmlRequest.GetRequestStream (),
Encoding.GetEncoding(1252))
myWriter.Write(sXML)

I used German code page 1252 here, but you can consider to use utf-8...
Thus wrote Navin,

Quote:

Originally Posted by

Hi,
>
I've a .NET application that sends XML string as bytes on a TCP
connection. It had used ASCII encoding so far and everything was fine.
Now on a German OS, German characters were sent as question mark in
the received string. I guess that's because ASCII encoding was used
and unicode encoding should be used instead.


Absolutely. If not Unicode, then at least some 8 bit encoding like ISO Latin
1.

Quote:

Originally Posted by

But then would byte
ordering(little endian ir big endian) be a problem because the
received TCP stream could be consumed by both a Java and .NET clients
?


No. All UTF-16/32 variants include byte order marks that allow the receiver
to pick up the appropriate byte order, and UTF-8 is the same for both Big
Endian and Little Endian systems.

Quote:

Originally Posted by

What could be done to ensure that the received unicode encoded XML
stream be decoded by both .NET and Java clients ? And, which encoding
.NET class be used utf8, utf32,.. ? Is there a sample anywhere ?


If your XML contains mostly Latin characters, use UTF-8. That'll require
the least bandwidth. You can write an XML document to any stream using either
an XmlWriter or XmlDocument.Save().

Cheers,
--
Joerg Jooss
news-reply@.joergjooss.de

Newbie:sending German characters on TCP link

Hi,
I've a .NET application that sends XML string as bytes on a TCP
connection. It had used ASCII encoding so far and everything was fine. Now
on a German OS, German characters were sent as question mark in the received
string. I guess that's because ASCII encoding was used and unicode encoding
should be used instead. But then would byte ordering(little endian ir big
endian) be a problem because the received TCP stream could be consumed by
both a Java and .NET clients ? What could be done to ensure that the
received unicode encoded XML stream be decoded by both .NET and Java clients
? And, which encoding .NET class be used utf8, utf32,.. ? Is there a sample
anywhere ?
Thanks in advance and regards
NavinOn Feb 27, 7:44 pm, "Navin Mishra" <navin.mis...@.siemens.com> wrote:
> Hi,
> I've a .NET application that sends XML string as bytes on a TCP
> connection. It had used ASCII encoding so far and everything was fine. Now
> on a German OS, German characters were sent as question mark in the receiv
ed
> string. I guess that's because ASCII encoding was used and unicode encodin
g
> should be used instead. But then would byte ordering(little endian ir big
> endian) be a problem because the received TCP stream could be consumed by
> both a Java and .NET clients ? What could be done to ensure that the
> received unicode encoded XML stream be decoded by both .NET and Java clien
ts
> ? And, which encoding .NET class be used utf8, utf32,.. ? Is there a sampl
e
> anywhere ?
>
This group is for ASP.NET
Regarding your problem
First of all, ensure that the xml is encoded
sXML = "<?xml version=""1.0"" encoding=""windows-1252""?
>.........."
then set this encoding to the method which send the data.
For example
myWriter = New System.IO.StreamWriter(xmlRequest.GetRequestStream(),
Encoding.GetEncoding(1252))
myWriter.Write(sXML)
I used German code page 1252 here, but you can consider to use utf-8...
Thus wrote Navin,

> Hi,
> I've a .NET application that sends XML string as bytes on a TCP
> connection. It had used ASCII encoding so far and everything was fine.
> Now on a German OS, German characters were sent as question mark in
> the received string. I guess that's because ASCII encoding was used
> and unicode encoding should be used instead.
Absolutely. If not Unicode, then at least some 8 bit encoding like ISO Latin
1.

> But then would byte
> ordering(little endian ir big endian) be a problem because the
> received TCP stream could be consumed by both a Java and .NET clients
> ?
No. All UTF-16/32 variants include byte order marks that allow the receiver
to pick up the appropriate byte order, and UTF-8 is the same for both Big
Endian and Little Endian systems.

> What could be done to ensure that the received unicode encoded XML
> stream be decoded by both .NET and Java clients ? And, which encoding
> .NET class be used utf8, utf32,.. ? Is there a sample anywhere ?
If your XML contains mostly Latin characters, use UTF-8. That'll require
the least bandwidth. You can write an XML document to any stream using eithe
r
an XmlWriter or XmlDocument.Save().
Cheers,
--
Joerg Jooss
news-reply@.joergjooss.de