Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


xml programming and vb.net


xml programming and vb.net

Author
Message
tunsten
tunsten
Forum God
Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)Forum God (367 reputation)

Group: Forum Members
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
paul daniel
paul daniel
Forum God
Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)Forum God (5K reputation)

Group: Forum Members
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
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search