Click here to Skip to main content
15,896,606 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
AnswerRe: Designing an Email application Pin
Tal Kain20-Nov-06 15:01
Tal Kain20-Nov-06 15:01 
QuestionServer Side Localization Pin
Filipe Peixinho20-Nov-06 10:53
Filipe Peixinho20-Nov-06 10:53 
AnswerRe: Server Side Localization Pin
indianet20-Nov-06 15:03
indianet20-Nov-06 15:03 
QuestionEmail Error Pin
shapper20-Nov-06 10:37
shapper20-Nov-06 10:37 
AnswerRe: Email Error Pin
indianet20-Nov-06 14:50
indianet20-Nov-06 14:50 
QuestionAlter Tooltip property of TableRow in UserControl Pin
pahlsson20-Nov-06 8:33
pahlsson20-Nov-06 8:33 
AnswerRe: Alter Tooltip property of TableRow in UserControl Pin
indianet20-Nov-06 10:55
indianet20-Nov-06 10:55 
QuestionRegistering server control ID Pin
Krrish20-Nov-06 7:43
Krrish20-Nov-06 7:43 
AnswerRe: Registering server control ID Pin
iamrashida8320-Nov-06 8:20
iamrashida8320-Nov-06 8:20 
QuestionInvalid postback or callback argument Pin
Krrish20-Nov-06 7:33
Krrish20-Nov-06 7:33 

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.