Showing posts with label view. Show all posts
Showing posts with label view. Show all posts

Thursday, March 29, 2012

Html got arranged by VS is some compacted way

I highlighed some button links and added some properties when I looked at the html view, the whole html that was neatly arrange now is compated with lines spaning several "pages" to the left . Everything works file but is quite hard to read now that i have a whole nested table and cell in a single like

I tried the edit> advance > format and nothings moves

is there any way that i can get a meaningfull formating back ?

If you select all the HTML and then press Control-K, Control-D Visual Studio will make it's best attempt to format the HTML.

Saturday, March 24, 2012

HTML Design View

I recently started a new job which involves using Microsoft Visual Studio .NET 2003, which I also used at my last job.
Here's my problem. When I open an HTML page in Visual Studio, the only option I get is to view it in HTML view. There is no Design view tab. Under Tools, Options, HTML Designer, I have Design View checked for all three options (Start HTML Pages, Start Active Server Pages and Start Web Form Pages.
In addition, while I can see all the tabs on my toolbox (Device Controls, Crystal Reports, Data, XML Schema, Dialog Editor, Mobile Web Forms, Web Forms, Components, Windows Forms, HTML, Clipboard Ring and General), the only tab that has any of the objects enabled is the HTML tab. Except for the Pointer, all the other objects on all the other tabs are disabled (greyed-out).
This was not the case with the installation of Visual Studio .NET 2003 at my last job. Has anyone experienced this before or can anyone offer any suggestions as to what options I need to set in order to enable HTML Design View and to be able to use the server components?
Thanks in advance,
Steve
SDSwasey--
Regarding this...

SDSwasey wrote:


...When I open an HTML page in Visual Studio, the only option I get is to view it in HTML view. There is no Design view tab...


...I am not sure why this is happening.
However, try accessing the design view from the menus...
>View, >Design.
...Does that work?



Hi Mark:

Thanks for responding to my post.

I meant to include that in my original post. My View menu does not include the "Design" option. Neither is the option available when I right-click on the item in the Solutions Explorer.

Does Visual Studio .NET have to be installed as Administrator or as someone with Administrator privileges?

Thanks again,

Steve


Seehttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxoriInstallationSetup.asp for details, specifically the "User Permissions" section. Like most products, VS.NET requires admin rights for installation.
Sounds like someone may have installed it for you? If so, better go harrass them.
Good Luck!
SDSwasey--
Regarding this...

SDSwasey wrote:


Does Visual Studio .NET have to be installed as Administrator or as someone with Administrator privileges?


...the answer is "yes".
Ug.
If that was not the case when your instance of VS.NET 2003 was installed, then, (assuming that you are using Windows XP Pro), I recommend the following:
--Login to the workstation with an account that is a member of the "Administrators" group.
--Uninstall VS.NET 2003 completely.
--Reboot.
--Do a full install of VS.NET 2003, checking all options in the components selection dialog.
--Reboot.
--Apply all Recommended and Critical updates from the Windows Update site.
--Reboot.
--Try to run VS.NET 2003.
--If it works, then you are all set; but, if it does not work, then call your girl and tell her you might be late for dinner because it is probably going to be a long day.
HTH.

Thursday, March 22, 2012

HTML code warnings in asp.net html code view

Hi,
This is a silly question. I'm relatively new to asp.net and asp at all. But
I always had this doubt.
I'm working with Visual Studio and while exploring the ASPCommerce starter
kit, when I switch from design view to html code view, I see many keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.
Example, the next, the "link" keyword is underlied and it popups to : "the
active scheme does not support element link"
<link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
More, all the margin related attribute, are marked as : Could not find any
attribute "leftmargin" of element body
<body background="images/sitebkgrdnogray.gif" leftmargin="0" topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0">
And so on ...
So, could someone explain, what are all these warnings and where they are
comming from ?
Regards,Hi,
It's the VS internal html validation, which by default (with no meta header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
document property targetSchema to Internet Explorer 5 most, if not all, of
these "errors" will disappear.
Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> Hi,
> This is a silly question. I'm relatively new to asp.net and asp at all.
But
> I always had this doubt.
> I'm working with Visual Studio and while exploring the ASPCommerce starter
> kit, when I switch from design view to html code view, I see many keywords
> underlied, like if they were invalid, however, they're not, they display
> fine and the project runs fine.
> Example, the next, the "link" keyword is underlied and it popups to : "the
> active scheme does not support element link"
> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
> More, all the margin related attribute, are marked as : Could not find any
> attribute "leftmargin" of element body
> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
topmargin="0"
> rightmargin="0"
> bottommargin="0" marginheight="0" marginwidth="0">
> And so on ...
> So, could someone explain, what are all these warnings and where they are
> comming from ?
>
> Regards,
>
>
Martin :
Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
available there), and in fact it disappeared almost all.
However, these still there warning:
marginheight="0" marginwidth="0"
What does this have as special ?
Regards,
"Martin Dechev" <detcheff_@.hotmail.com> wrote in message
news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
> Hi,
> It's the VS internal html validation, which by default (with no meta
> header
> "vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
> document property targetSchema to Internet Explorer 5 most, if not all, of
> these "errors" will disappear.
> Greetings
> Martin
> "Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
> news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> But
> topmargin="0"
>
Hi,
These are not in the w3c standards (they are in fact, but apply only for
frame and iframe) and will be ignored by browsers. I prefer setting the
margins of the body of the document using the style attribute:
<body style="margin: 0px;">
or assigning it a css class alternatively.
Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OC1TqVIrEHA.3288@.TK2MSFTNGP12.phx.gbl...
> Martin :
> Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
> available there), and in fact it disappeared almost all.
> However, these still there warning:
> marginheight="0" marginwidth="0"
> What does this have as special ?
> Regards,
>
> "Martin Dechev" <detcheff_@.hotmail.com> wrote in message
> news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
the
of
display
are
>

HTML code warnings in asp.net html code view

Hi,

This is a silly question. I'm relatively new to asp.net and asp at all. But
I always had this doubt.

I'm working with Visual Studio and while exploring the ASPCommerce starter
kit, when I switch from design view to html code view, I see many keywords
underlied, like if they were invalid, however, they're not, they display
fine and the project runs fine.

Example, the next, the "link" keyword is underlied and it popups to : "the
active scheme does not support element link"

<link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css"
More, all the margin related attribute, are marked as : Could not find any
attribute "leftmargin" of element body

<body background="images/sitebkgrdnogray.gif" leftmargin="0" topmargin="0"
rightmargin="0"
bottommargin="0" marginheight="0" marginwidth="0"
And so on ...

So, could someone explain, what are all these warnings and where they are
comming from ?

Regards,Hi,

It's the VS internal html validation, which by default (with no meta header
"vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
document property targetSchema to Internet Explorer 5 most, if not all, of
these "errors" will disappear.

Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> Hi,
> This is a silly question. I'm relatively new to asp.net and asp at all.
But
> I always had this doubt.
> I'm working with Visual Studio and while exploring the ASPCommerce starter
> kit, when I switch from design view to html code view, I see many keywords
> underlied, like if they were invalid, however, they're not, they display
> fine and the project runs fine.
> Example, the next, the "link" keyword is underlied and it popups to : "the
> active scheme does not support element link"
> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
> More, all the margin related attribute, are marked as : Could not find any
> attribute "leftmargin" of element body
> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
topmargin="0"
> rightmargin="0"
> bottommargin="0" marginheight="0" marginwidth="0">
> And so on ...
> So, could someone explain, what are all these warnings and where they are
> comming from ?
>
> Regards,
>
Martin :

Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
available there), and in fact it disappeared almost all.
However, these still there warning:

marginheight="0" marginwidth="0"

What does this have as special ?

Regards,

"Martin Dechev" <detcheff_@.hotmail.com> wrote in message
news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
> Hi,
> It's the VS internal html validation, which by default (with no meta
> header
> "vs_targetSchema" in the head) validates against IE 3/NN 3. If you set the
> document property targetSchema to Internet Explorer 5 most, if not all, of
> these "errors" will disappear.
> Greetings
> Martin
> "Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
> news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>> This is a silly question. I'm relatively new to asp.net and asp at all.
> But
>> I always had this doubt.
>>
>> I'm working with Visual Studio and while exploring the ASPCommerce
>> starter
>> kit, when I switch from design view to html code view, I see many
>> keywords
>> underlied, like if they were invalid, however, they're not, they display
>> fine and the project runs fine.
>>
>> Example, the next, the "link" keyword is underlied and it popups to :
>> "the
>> active scheme does not support element link"
>>
>> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
>>
>> More, all the margin related attribute, are marked as : Could not find
>> any
>> attribute "leftmargin" of element body
>>
>> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
> topmargin="0"
>> rightmargin="0"
>> bottommargin="0" marginheight="0" marginwidth="0">
>>
>> And so on ...
>>
>> So, could someone explain, what are all these warnings and where they are
>> comming from ?
>>
>>
>> Regards,
>>
>>
>>
>>
Hi,

These are not in the w3c standards (they are in fact, but apply only for
frame and iframe) and will be ignored by browsers. I prefer setting the
margins of the body of the document using the style attribute:

<body style="margin: 0px;"
or assigning it a css class alternatively.

Greetings
Martin
"Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
news:OC1TqVIrEHA.3288@.TK2MSFTNGP12.phx.gbl...
> Martin :
> Thanks, I did it, set it to Internet Explorer 5.0 (the higher option
> available there), and in fact it disappeared almost all.
> However, these still there warning:
> marginheight="0" marginwidth="0"
> What does this have as special ?
> Regards,
>
> "Martin Dechev" <detcheff_@.hotmail.com> wrote in message
> news:Oga7WOIrEHA.1900@.TK2MSFTNGP10.phx.gbl...
> > Hi,
> > It's the VS internal html validation, which by default (with no meta
> > header
> > "vs_targetSchema" in the head) validates against IE 3/NN 3. If you set
the
> > document property targetSchema to Internet Explorer 5 most, if not all,
of
> > these "errors" will disappear.
> > Greetings
> > Martin
> > "Craig Kenisston" <craigkenisston@.hotmail.com> wrote in message
> > news:OUcqF5HrEHA.3408@.TK2MSFTNGP10.phx.gbl...
> >> Hi,
> >>
> >> This is a silly question. I'm relatively new to asp.net and asp at all.
> > But
> >> I always had this doubt.
> >>
> >> I'm working with Visual Studio and while exploring the ASPCommerce
> >> starter
> >> kit, when I switch from design view to html code view, I see many
> >> keywords
> >> underlied, like if they were invalid, however, they're not, they
display
> >> fine and the project runs fine.
> >>
> >> Example, the next, the "link" keyword is underlied and it popups to :
> >> "the
> >> active scheme does not support element link"
> >>
> >> <link rel="stylesheet" type="text/css" href="http://links.10026.com/?link=ASPNETCommerce.css">
> >>
> >> More, all the margin related attribute, are marked as : Could not find
> >> any
> >> attribute "leftmargin" of element body
> >>
> >> <body background="images/sitebkgrdnogray.gif" leftmargin="0"
> > topmargin="0"
> >> rightmargin="0"
> >> bottommargin="0" marginheight="0" marginwidth="0">
> >>
> >> And so on ...
> >>
> >> So, could someone explain, what are all these warnings and where they
are
> >> comming from ?
> >>
> >>
> >> Regards,
> >>
> >>
> >>
> >>

Wednesday, March 21, 2012

HTML Changing

Hello All,

I'm expereincing a strange problem using Visual Studio. In HTML view I have the following two lines of code. Every time I save the page the two "/" disappear. from the HTML. This then causes an error message when the page loads. I have tried various settings on the option tab to stop this from occuring but none seem to work.


<meta name="keywords" content="keys" ID="Keywords" runat="server"/>
<meta name="description" content="description" ID="Description" runat="server"/>
Which version of VS?