Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » .NET Programming (VB 2010 or earlier) » ASP.NET » xml programming and vb.net


xml programming and vb.netExpand / Collapse
Author
Message
Posted 7/21/2009 5:56:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #27923
Posted 1/12/2010 6:32:02 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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
Post #28672
Posted 9/15/2010 5:53:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/15/2010 5:49:55 AM
Posts: 3, Visits: 4
As i am also a begineer ,i am also trying to execute this code.

Medical Spa Software
Post #29631
Posted 12/13/2011 10:50:25 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.


Post #31043
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:52pm