converting asp inludes to asp.net include

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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")
 
Back
Top