Click here to Skip to main content
15,920,576 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHelp Pin
pitchu mani20-Nov-06 19:18
pitchu mani20-Nov-06 19:18 
QuestionHide Table Pin
ayeleteric20-Nov-06 19:09
ayeleteric20-Nov-06 19:09 
AnswerRe: Hide Table Pin
_AK_20-Nov-06 19:24
_AK_20-Nov-06 19:24 
GeneralRe: Hide Table Pin
ayeleteric20-Nov-06 19:27
ayeleteric20-Nov-06 19:27 
GeneralRe: Hide Table Pin
_AK_20-Nov-06 19:29
_AK_20-Nov-06 19:29 
GeneralRe: Hide Table Pin
ayeleteric20-Nov-06 19:31
ayeleteric20-Nov-06 19:31 
GeneralRe: Hide Table Pin
_AK_20-Nov-06 19:38
_AK_20-Nov-06 19:38 
AnswerRe: Hide Table [modified] Pin
ayeleteric20-Nov-06 19:56
ayeleteric20-Nov-06 19:56 
GeneralRe: Hide Table Pin
_AK_20-Nov-06 20:14
_AK_20-Nov-06 20:14 
QuestionDynamic dropdown list Pin
isaii20-Nov-06 18:47
isaii20-Nov-06 18:47 
AnswerRe: Dynamic dropdown list Pin
_AK_20-Nov-06 19:21
_AK_20-Nov-06 19:21 
GeneralRe: Dynamic dropdown list Pin
isaii20-Nov-06 19:27
isaii20-Nov-06 19:27 
GeneralRe: Dynamic dropdown list Pin
_AK_20-Nov-06 19:34
_AK_20-Nov-06 19:34 
GeneralRe: Dynamic dropdown list Pin
Kamran_ku20-Nov-06 20:36
Kamran_ku20-Nov-06 20:36 
GeneralRe: Dynamic dropdown list Pin
_AK_20-Nov-06 21:35
_AK_20-Nov-06 21:35 
GeneralRe: Dynamic dropdown list [modified] Pin
isaii21-Nov-06 15:20
isaii21-Nov-06 15:20 
GeneralRe: Dynamic dropdown list Pin
_AK_21-Nov-06 18:08
_AK_21-Nov-06 18:08 
QuestionPlease Help in Date Functions[modified] Pin
JVVS20-Nov-06 17:55
JVVS20-Nov-06 17:55 
Hi all,
In my Asp .net Application.. I need to store the date in a variable.. For that i wrote the following code
Dim thisDate, startDate, endDate As Date
Dim thisMonth, thisYear As Integer
thisDate = Now.Date
thisMonth = Month(thisDate)
thisYear = Year(thisDate)

If thisMonth = 1 Or 3 Or 5 Or 7 Or 8 Or 10 Or 12 Then
startDate = "1/thisMonth/thisYear"
endDate = "31/thisMonth/thisYear"
ElseIf thisMonth = 4 Or 6 Or 9 Or 11 Then
startDate = "1/thisMonth/thisYear"
endDate = "30/thisMonth/thisYear"
Else
startDate = "1/thisMonth/thisYear"
endDate = "28/thisMonth/thisYear"
End If

But it shows the error message as,

Cast from string "1/thisMonth/thisYear" to type 'Date' is not valid.

Please help me in this issue..



-- modified at 0:01 Tuesday 21st November, 2006
AnswerRe: Please Help in Date Functions[modified] Pin
Guffa20-Nov-06 18:41
Guffa20-Nov-06 18:41 
GeneralRe: Please Help in Date Functions[modified] Pin
JVVS20-Nov-06 18:55
JVVS20-Nov-06 18:55 
GeneralRe: Please Help in Date Functions[modified] Pin
Guffa20-Nov-06 21:40
Guffa20-Nov-06 21:40 
QuestionAccessing Html controls created in javascript Pin
Rajaraman Soundararajan20-Nov-06 17:32
Rajaraman Soundararajan20-Nov-06 17:32 
QuestionPlease Help! INCLUDE PAGE from Variable Pin
steeleimaging20-Nov-06 16:39
steeleimaging20-Nov-06 16:39 
QuestionHow to Create an Invoice-like Form in ASP NET 2.0 Pin
ezani20-Nov-06 16:24
ezani20-Nov-06 16:24 
QuestionDesigning an Email application Pin
hasanali0020-Nov-06 11:52
hasanali0020-Nov-06 11:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.