Hi All,
How to add the HTML script when creating new ASPX page. After it is done I
may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET that WHEN creating a new aspx page, then
it will generate that basic HTML scrip as well.
Regards,
Joe 9 5969
"Joe Penora" <DF****@hotmail.comwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
How to add the HTML script when creating new ASPX page. After it is done I
may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET that WHEN creating a new aspx page, then
it will generate that basic HTML scrip as well.
Er, what "HTML script" are you talking about...?
Code like the below to be added into the ASPX page.
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:OZ*************@TK2MSFTNGP04.phx.gbl...
"Joe Penora" <DF****@hotmail.comwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
>How to add the HTML script when creating new ASPX page. After it is done I may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET that WHEN creating a new aspx page, then it will generate that basic HTML scrip as well.
Er, what "HTML script" are you talking about...?
On Feb 26, 9:29 pm, "Joe Penora" <DF_...@hotmail.comwrote:
Code like the below to be added into the ASPX page.
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
"Mark Rae" <m...@markNOSPAMrae.comwrote in message
news:OZ*************@TK2MSFTNGP04.phx.gbl...
"Joe Penora" <DF_...@hotmail.comwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
How to add the HTML script when creating new ASPX page. After it is done
I
may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET that WHEN creating a new aspx page,
then
it will generate that basic HTML scrip as well.
Er, what "HTML script" are you talking about...?- Hide quoted text -
- Show quoted text -
I suppose your ASPX file has
<%@ Page Language="vb" %>
(or c#, etc)
Just add your "HTML script" below, e.g.
<%@ Page Language="vb" %>
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
Joe,
if you're using VS.NET or VWD, that basic html is added for you.
If you're creating the file programmatically,
you'll have to add the html script in your code.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Joe Penora" <DF****@hotmail.comwrote in message news:eQ*************@TK2MSFTNGP06.phx.gbl...
Code like the below to be added into the ASPX page.
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message news:OZ*************@TK2MSFTNGP04.phx.gbl...
>"Joe Penora" <DF****@hotmail.comwrote in message news:eM*************@TK2MSFTNGP06.phx.gbl...
>>How to add the HTML script when creating new ASPX page. After it is done I may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET that WHEN creating a new aspx page, then it will generate that basic HTML scrip as well.
Er, what "HTML script" are you talking about...?
Hi Alexey,
I have code like the below.
<%@ Page Language="vb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
And got this message when entered the below html script.
1)
ASP.NET runtime error: Only Content controls are allowed directly in a content page that contains Content controls.
2)
Error 1 Validation (XHTML 1.1): Content is not supported outside 'script' or 'asp:content' regions.
and other messages as well.
Thanks,
Joe
"Alexey Smirnov" <al************@gmail.comwrote in message news:11**********************@v33g2000cwv.googlegr oups.com...
On Feb 26, 9:29 pm, "Joe Penora" <DF_...@hotmail.comwrote:
>Code like the below to be added into the ASPX page.
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
"Mark Rae" <m...@markNOSPAMrae.comwrote in message
news:OZ*************@TK2MSFTNGP04.phx.gbl...
"Joe Penora" <DF_...@hotmail.comwrote in message news:eM*************@TK2MSFTNGP06.phx.gbl...
>How to add the HTML script when creating new ASPX page. After it is done I may need to add some Meta tags etc... but the html script is not there.
>Is there an option in the ASP.NET that WHEN creating a new aspx page, then it will generate that basic HTML scrip as well.
Er, what "HTML script" are you talking about...?- Hide quoted text -
- Show quoted text -
I suppose your ASPX file has
<%@ Page Language="vb" %>
(or c#, etc)
Just add your "HTML script" below, e.g.
<%@ Page Language="vb" %>
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
"Joe Penora" <DF****@hotmail.comwrote in message
news:OV*************@TK2MSFTNGP06.phx.gbl...
I have code like the below.
<%@ Page Language="vb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
So this is a content page... the "HTML script" that you seem to think is
missing will be in the MasterPage, and will be rendered when the page is
streamed down to the client...
Hi Mark,
That's fine but If I need to add some meta tags for key words etc.. then I can only enter that in the master page?
Thanks,
Joe
"Joe Penora" <DF****@hotmail.comwrote in message
news:eP**************@TK2MSFTNGP04.phx.gbl...
That's fine but If I need to add some meta tags for key words etc..
then I can only enter that in the master page?
protected void Page_Load(object sender, EventArgs e)
{
HtmlMeta MyMetaData = new HtmlMeta();
MyMetaData.Name = "keywords";
MyMetaData.Content = "word1 word2 word3 word4 word5";
Header.Controls.Add(MyMetaData);
}
Thanks Mark, that's another way of handling this. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hawk |
last post by:
I have a custom menu control that I am creating using C#. I am rendering
HTML from a StringBuilder in my control to add the needed JavaScript to the
HTML output. I need to have the JavaScript...
|
by: Jon Booth |
last post by:
I am using ascx controls to build headers and footers for my wbe
application.
3 questions
1) How do I set it so that when I create a new web form created inherits
from my SecurePage class and...
|
by: Earl Teigrob |
last post by:
I am creating an application where I would like to give web designers the
ablity to create a static html page and dyanamically load it into my
application(exactly like loading a user control into a...
|
by: Paolo Pignatelli |
last post by:
I have an aspx code behind page that goes something like this in the HTML
view:
<asp:HyperLink id=HyperLink1 runat="server"
NavigateUrl='<%#"mailto:" &...
|
by: Al Wilkerson |
last post by:
Hey,
I have a Web Form with a drop down list, textbox, and search button.
When click the search button an SQL server database is queried fordata.
Once I have the data in a dataset I use the...
|
by: Nathan |
last post by:
I have an aspx page with a data grid, some textboxes, and an update button.
This page also has one html input element with type=file (not inside the data
grid and runat=server).
The update...
|
by: chaz |
last post by:
here is the html :
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="<%=LABEL_WIDTH%>" class="formtext"><%= HTEXT("Connection
type:")%></td>
<td...
|
by: Nathan Sokalski |
last post by:
I add several JavaScript events (onchange, onkeypress, etc.) to Controls
using the Add method of the Attributes collection. However, if the
JavaScript code contains certain characters, such as & or...
|
by: Joe Penora |
last post by:
Hi All,
How to add the HTML script when creating new ASPX page. After it is done I
may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |