| | |
Html header of a page changed programmatically?
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
Well I worked it out, here is how it's done.
The following is the html code.
Then the vb .net code:
Anyways, just thought I'd share my findings with you guys.
Slade
The following is the html code.
<TITLE ID=pageTitle RUNAT=server> </TITLE>Then the vb .net code:
Public Class MyPage Inherits System.Web.UI.Page Protected pageTitle As System.Web.UI.HtmlControls.HtmlGenericControl Private Sub Page_Load(ByVal sender As System.Object, _ByVal e As System.EventArgs) Handles MyBase.Load pageTitle.InnerText = "Dynamic page Title" End Sub End Class
Anyways, just thought I'd share my findings with you guys.
Slade
Last edited by slade; May 31st, 2004 at 11:02 pm. Reason: Editing errors
Formerly known as Slade.
I have been working with this code for a while now... after a few builds there is an error. What actually happens is in the aspx code, the "runat = server" disappears. This is more than likely because it isn't included in the <forms>tag</forms>
Anyways, just a little bit of extra info.
Slade
Anyways, just a little bit of extra info.
Slade
Formerly known as Slade.
No, actually it's related to Visual Studio .NET's web page designer. When you are on the WYSIWYG ("Design") view of the page, it reformats your code, and sometimes screws up on tags. There is a setting to control what view you get when you double click on a file in the project window; I have it going to HTML View, which there is no problem with (I rarely use the designer for Web Development).
-Ryan Hoffman
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Yup. It works for every tag
.
. -Ryan Hoffman
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
•
•
•
•
Originally Posted by Tekmaven™
No, actually it's related to Visual Studio .NET's web page designer. When you are on the WYSIWYG ("Design") view of the page, it reformats your code, and sometimes screws up on tags. There is a setting to control what view you get when you double click on a file in the project window; I have it going to HTML View, which there is no problem with (I rarely use the designer for Web Development).
. Formerly known as Slade.
![]() |
Similar Threads
- IE 6 start page getting changed to about:blank (Web Browsers)
Other Threads in the ASP.NET Forum
- Previous Thread: Posting values to a payment gateway without using a form
- Next Thread: Working with SQL's Text data type
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net beginner box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class compatible confirmationcodegeneration content contenttype countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iis javascript jquery list listbox menu microsoft mouse mssql nameisnotdeclared news novell numerical opera order panelmasterpagebuttoncontrols problem radio ratings redirect registration relationaldatabases reportemail schoolproject search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview validatedate validation vb.net videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming webservice xml xsl





thanks Paladine, glad I could help! 