converting asp inludes to asp.net include

G

Guest

1)i have a page that has includes like :
<!--#INCLUDE FILE=FuncInc.asp-->
<!--#INCLUDE FILE=VBEncodeInc.asp-->
i know how to translate the code it self to vb.net, but how should i build
the included files? should i build aspx page with code behind and inherit
each other with it fnction? or any other way?
2)how do i extract the date and time seperetly from the Date object?

thnaks i nadvance
peleg
 
M

Mark Rae [MVP]

1)i have a page that has includes like :
<!--#INCLUDE FILE=FuncInc.asp-->
<!--#INCLUDE FILE=VBEncodeInc.asp-->
i know how to translate the code it self to vb.net, but how should i build
the included files? should i build aspx page with code behind and inherit
each other with it fnction? or any other way?

1) Make the include files UserControls

or

2) User MasterPages
2)how do i extract the date and time seperetly from the Date object?

Depends what you mean by "extract"...

If you just want to display the date part or the time part, then just use
string formatting:

Dim strDate As String = DateTime.Now.ToString("dd MMM yyyy")
Dim strTime As String = DateTime.Now.ToString("HH:mm")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top