| | | Forum Newbie
       
Group: Forum Members Last Login: 7/21/2009 5:46:29 AM Posts: 1, Visits: 2 |
| Hello guys
I am vb.net beginner developer majorly on ASP.NET.
Can anyone help me on how to I include header information before the main body/content of an xml file, where the header will be read from the same file. For example, I want to have company's name, address, phone, document print date in the head section before displaying the list of the customers (both the header and the content is contained in single a text file).
Secondly, I want a user to select the text file (which must conform with the format to be used to display the xml file) from his/her system directory and display the path on a textbox before converting it to xml file. How do I go about it?
Your prompt response shall be highly appreciated.
Thanks.
Aweda Akeem
The Aspired .NET Developer
tunde |
| | | | Junior Member
       
Group: Forum Members Last Login: 6/8/2011 8:59:02 AM Posts: 19, Visits: 20 |
| Hi
Try this code
Dim header As Web.UI.HtmlControls.HtmlHead
header = TryCast(Me.Page.Header, Web.UI.HtmlControls.HtmlHead)
If header IsNot Nothing Then
Dim link As New HtmlLink
link.Attributes.Add("href", "~/whatever.css")
link.Attributes.Add("media", "screen")
link.Attributes.Add("rel", "stylesheet")
link.Attributes.Add("type", "text/css")
header.Controls.Add(link)
End If
.NET Application Development | C# Development |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 9/15/2010 5:49:55 AM Posts: 3, Visits: 4 |
| | | | | Forum Newbie
       
Group: Forum Members Last Login: 12/13/2011 10:42:27 PM Posts: 4, Visits: 7 |
| Hello there
please let me help you
to EXCU. any new coad and want to try it, wright click on the project title and add a new item, this will allow you to choose items that you wanna add, add a new xml and past that code and try it.
|
| |
|
|