|
| Hi All, | | 1 | | 1.Anybody help regarding my requirements i wanted codebehind page(aspx.cs) i need to count no. of days between From date and to date which i am passing in my frontend application txtfromdate,txttodate i need to count number of days between those dates which was comming from Frontend (txtfromdate,txt | | 0 | | 2.After getting count of no. of days b/w From date,todate i need substract from getting days(b/w fromdate,td) to no. of leaves(employyess)after this ineed to bind to gridview control after substract value will pass to gridview control. | | 0 | | Regards | | 1 | | ANAND. | | 0 | | | | | | | | Forum Newbie
       
Group: Forum Members Last Login: 7/23/2009 10:45:20 AM Posts: 1, Visits: 1 |
| | Hi All, 1.Anybody help regarding my requirements i wanted codebehind page(aspx.cs) i need to count no. of days between From date and to date which i am passing in my frontend application txtfromdate,txttodate i need to count number of days between those dates which was comming from Frontend (txtfromdate,txttodate)any code regarding this. 2.After getting count of no. of days b/w From date,todate i need substract from getting days(b/w fromdate,td) to no. of leaves(employyess)after this ineed to bind to gridview control after substract value will pass to gridview control. Regards ANAND.
anand |
| | | | 
Forum God
       
Group: Forum Members Last Login: 9/7/2010 12:29:54 PM Posts: 633, Visits: 1,019 |
| Welcome to A1vbcode, ANAND!
I will say this: if you want to compare dates like this, there are several methods for comparing dates. For instance, the "compareTo" method.
The rest of your inquiry wasn't very clear, so you might have to restate.
Also, I voted for the word "Regards". I like that word. 
-Mobius |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 9/21/2010 12:38:09 AM Posts: 1, Visits: 2 |
| Hi,It appears you are referencing an empty viewstate(object = nothing).
Try this....
If ViewState("VarName") ISNOT Nothing THen
'Do your stuff
TextBox1.Text = ViewState("VarName").ToString()
Else
'ViewState = Nothing
'Reset your viewstate...
SCOPE: it is only good for the life of the PAGE....redirect to same page sets it to nothing
End IF
If this doesn't solve it, strip your code down and paste it in the forum and I'll see if I can help out.
mcts | a+ certification | mcp | cissp |
| |
|
|