|
hi,
Dim timein = "9/28/2006 8:00:00 AM"
Dim timeout = "9/28/2006 4:00:00 PM"
Dim totaltime = DateDiff(DateInterval.Hour, timein, timeout)
hope this helps u
cheers
|
|
|
|
|
Hi
I want to add total time means
Like
-----------------------------------------
totaltile = timein + timeout
totaltime = 9:00:00 + 1:00:00
totaltime= 4:00:00
------------------------------------------
Thx
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Why exactly you want to add two dates?
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi
I am creating a time sheet for employee timning
The Details are
----------------------------------
When he enter the time will = Timein
When he go for break = Breaktime
When he comeback = BreakoutTime
When He leave = Tout
Now I will add
Time1 = Timein + Breaktime
AND
Time2 = BreakoutTime + Tout
Totaltime = Time1 + Time2
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Here everytime you get the difference of his timein and timeout in hours and then add those hours to get the total tiem, isn't it?
Best Regards,
Apurva Kaushal
|
|
|
|
|
HI
For a EMP Only 1 Timein Per Day
He enter only 1 time in a day
Is there any other idea to calculate the EMP hours time
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
I like to add 10 rows on Page_Load to datagrid where in every column I need different controls (Textbox, Combo Box and Image Control).
Help appreciated.
Thanks.
The Phantom.
|
|
|
|
|
Use tables.insert ten rows and add the table into the datagrid.
|
|
|
|
|
I'm trying to set up iis to work with active directory, but i can't get it working. I have three different virtual machines working as webserver, client and ad domain in vm-ware but i do something wrong which i can not address. I guess there is something wrong with the integration of ad and iis but i can not solve it myself. Any ideas? Login with local accounts on the webserver works but not with ad accounts.
Cheers Navionic
|
|
|
|
|
How to create a custom Calendar control in asp.net web application??
please send me codes, methods or articles, creating calendar components creating calendar asemblies that can solve this problem... please..
nobz
|
|
|
|
|
You can use javascript calender controls. You will good stuff on net if you try it in Google.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I hope this wll help U!
Listing 1: HTML supporting the calendar control.
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="CalendarControl.ascx.vb"
Inherits="Calendar.CalendarControl"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%asp:TextBox id="TextBox1" runat="server"><%/asp:TextBox>
<%INPUT type="button" value="..." onclick="OnClick()"><%br>
<%div id="divCalendar" style="DISPLAY: none; POSITION: absolute">
<%asp:Calendar id="Calendar1" runat="server" BorderWidth="2px"
BackColor="White" Width="200px"
ForeColor="Black" Height="180px" Font-Size="8pt"
Font-Names="Verdana" BorderColor="#999999"
BorderStyle="Outset" DayNameFormat="FirstLetter" CellPadding="4">
<%TodayDayStyle ForeColor="Black" BackColor="#CCCCCC">
<%/TodayDayStyle>
<%SelectorStyle BackColor="#CCCCCC"><%/SelectorStyle>
<%NextPrevStyle VerticalAlign="Bottom"><%/NextPrevStyle>
<%DayHeaderStyle Font-Size="7pt" Font-Bold="True"
BackColor="#CCCCCC"><%/DayHeaderStyle>
<%SelectedDayStyle Font-Bold="True" ForeColor="White"
BackColor="#666666"><%/SelectedDayStyle>
<%TitleStyle Font-Bold="True" BorderColor="Black"
BackColor="#999999"><%/TitleStyle>
<%WeekendDayStyle BackColor="#FFFFCC"><%/WeekendDayStyle>
<%OtherMonthDayStyle ForeColor="#808080"><%/OtherMonthDayStyle>
<%/asp:Calendar>
<%/div>
<%script>
function OnClick()
{
if( divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
}
<%/script>
Listing 2: The code-behind implementing the SelectionChanged event.
Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString()
Dim div As System.Web.UI.Control = Page.FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
CType(div, HtmlGenericControl).Style.Add("display", "none")
End If
End Sub
|
|
|
|
|
|
postbackurl = "javascript://"
|
|
|
|
|
How we can use different DataGrid Events .for example ItemCommand,ItemDataBount etc.
Please provide me guide & code to work with all the columns (i.e. Button Column,Template Column,Bound Column etc.)
I need all code in ASP.NET (C#)
Regards,
Fasih
fasih_is_my_signature
|
|
|
|
|
|
|
You can use datalist to display the comments like that.
BTW the link you given does not redirect to the correct page.
Best Regards,
Apurva Kaushal
|
|
|
|
|
ya, i just managed to do it using datalist.
thanks for the reply
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
another question.
i added a button to datalist and gave an id "tbn1".
how can i write the click event for this button in code behind?
|
|
|
|
|
You can't access that ID directly in codebehind. What you need to do is to find the control in the Onitemdatabound event and then assign the javascript to that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thanks. i have to do some googling then
|
|
|
|
|
|
thanks for the link. will have a look
|
|
|
|