|
Hi i am new in this concept...,
So pls tell me clearly........,
if sample codes will be there send it to me.....,
Regards,
Magi
|
|
|
|
|
Get the Date as input with the time and then find the difference.
Say,
Dim TimeIn, TimeOut As String
Dim Hours As Double
TimeIn = "03/19/2007 19:20:12"
TimeOut = "03/19/2007 19:41:12"
Hours = DateDiff(DateInterval.Minute, CDate(TimeIn), CDate(TimeOut))/60
I hope this will help you...
|
|
|
|
|
Hi i am if i have the second date then i will use query.....,
But i dont have second date...........,
Just my input is intime and outtime only...........
with that i want to calculate for night shift work hours..........
see my ques is i have intime(19:45) and outtime(8:53)
so if i use time span then i am getting value (10:59)
but exact answer is (13:08)
i need difference between two times.............
Magi
|
|
|
|
|
We have developed a website recently.Now i want to develop it with multilangual support.I want to know step by step procedure to do this.Iam very new to unicodes.Can anyone try to answer this as soon as possible.
|
|
|
|
|
How can keep session active for a long time ?
|
|
|
|
|
may be i did'nt understand your problem.......but what is the problem in setting the "session timeout" variable in the web.config file?..you can set it as per your requirement.....
Live life to the fullest
|
|
|
|
|
DooDooo wrote: How can keep session active for a long time ?
Here[ ^] is the sample to prevent session time out.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Hi
i need to read an xl file into table .
how can i ? plz send with code
Suresh.R
|
|
|
|
|
try the code below...this is just a snippet....you have to properly declare the variables or path of the file and you have to check for proper file name and extension also where needed....
Dim conStr As String = "provider=Microsoft.Jet.OLEDB.4.0;data source=" + filepath + "; Extended Properties=Excel 8.0;"<br />
''"filepath" is the path of the .xls file <br />
Dim sql As String = "select * from [Sheet1$]" ''"Sheet1" is the name of the excel sheet<br />
MyConnection = New System.Data.OleDb.OleDbConnection(conStr)<br />
MyConnection.Open()<br />
MyAdapter = New System.Data.OleDb.OleDbDataAdapter(sql, MyConnection)<br />
dim myDs As DataSet = New System.Data.DataSet<br />
MyAdapter.Fill(myDs)
let me know if you face any problem
Tirthadip
Live life to the fullest
|
|
|
|
|
Here is a C# code
//-------------------------------------------
private DataSet PerformQueryIntoDataSet(string strFileName,string sheetName)
{
string strConn;
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + strFileName + ";" + "Extended Properties=" + Convert.ToChar(34).ToString() + "Excel 8.0;HDR=YES; IMEX=1;" + Convert.ToChar(34).ToString();
//You must use the $ after the object you reference in the spreadsheet
OleDbDataAdapter myCommand = new OleDbDataAdapter("SELECT * FROM ["+ sheetName + "$]", strConn);
DataSet myData = new DataSet();
myCommand.Fill(myData, sheetName);
return myData;
}
//-------------------------------------------
|
|
|
|
|
u can do this.
Dim ds As New DataSet
ds.ReadXml("test.xml")
now this dataset can be bind to any control.
Thanks,
Sun Rays
|
|
|
|
|
Hi
We are developing an ASp.net application where we can upload video files . When user upload a video we need to convert file to FLV. Conversion should be automated and the result needs to displayed to user.
How to do this?
|
|
|
|
|
Hi tiger have you found solution? we also need same feature
Pramit
Lets develop
|
|
|
|
|
I want to make a radio on my site. My site is writen in asp.net and ajax. On the main page I've got a tag <embed src="MusicFile.mp3" /> witch plays me a single music file. I want to create a page in witch music will be played, and when the music file ends - another file will be loaded and played. How do I do that? Is the the embed tag good for that or do I need a different tag?
|
|
|
|
|
Hi, I need you execute a windows service from webform, work in visual studio .net 2003 vb.net. I try with servicecontroller component but not work
Try
Dim servicio As New ServiceProcess.ServiceController
servicio.MachineName = "SINNIUNO"
servicio.ServiceName = "DEMONIO"
Me.Button4.Text = GetServiceStatus(servicio)
If servicio.CanStop Then
servicio.Stop()
Else
End If
Catch ex As ServiceProcess.TimeoutException
End Try
appear this error message
Detalles de la excepción: System.ComponentModel.Win32Exception: Acceso denegado
[Win32Exception (0x80004005): Acceso denegado]
[InvalidOperationException: No se puede abrir el servicio DEMONIO en el equipo 'SINNIUNO'.]
System.ServiceProcess.ServiceController.GetServiceHandle(Int32 desiredAccess)
System.ServiceProcess.ServiceController.Stop()
MataServicios.WebForm1.Button4_Click(Object sender, EventArgs e)
Any idea
Thank's
|
|
|
|
|
Hi,
I'm using Windows Authetication For my datagrid. And I got this example But it's not giving me the name. Where I'm I getting it wrong?
<authentication mode="Windows">
...
<authorization>
<deny users="?">
Thanks
|
|
|
|
|
There was no pasted snippet.
|
|
|
|
|
It is a common mistake.
Make sure IIS is not set to allow anonymous users. This will force a principle to be created with security information.
File Not Found
|
|
|
|
|
Hi Thanks,
I got a web site that explains to me how to change to Anonymous But I got stack some how on the way. after Enabling Anonymous access Check box and click ok. I do not understand what next would you explain to me please? Here is the example.
http://technet2.microsoft.com/WindowsServer/en/library/764d5c12-261e-4bb4-
bd6d-a394f61054041033.mspx?mfr=true
Thank you.
|
|
|
|
|
I need help from someone in asp.net. I want to select some particular string while i am entering the letter of the string in list box or by using some other control like combo box, list box. for ex: i have so many items like pen,pencil,pepper,pendulam etc., if i enter the letter according to that the cursor should move to the corresponding string.
thanks.
v.rajagopalan
v.rajagopalan
|
|
|
|
|
I think u need something like google suggest functionality. You can download the code from codeproject itself there are many google suggest like article
Nobody is perfect i'm Nobody
|
|
|
|
|
Capture the keydown event of the list/combo box in javascript and find the string what you pressed. You have to concatinate the keys you pressed and flush it after some interval of time.
|
|
|
|
|
Hi all,
I am showing employee information in a datagrid. I wan`t to give various options 2 operate on the data and to do this i want 2 provide a dropdown at the end of each row containing various options such as change,remove etc and on selection change the corresponding row of the datagrid must be updated.How do i generate the dropdown for each row and associate it with that row???
|
|
|
|
|
Use a template column like this:
<asp:DataGrid ....>
<Columns>
// put your other columns here ....
<asp:TemplateColumn HeaderText="Action">
<asp:DropDownList ID="ddAction" runat="server">
<asp:ListItem Text="(select an option)" />
<asp:ListItem Text="change" />
<asp:ListItem Text="remove" />
</asp:DropDownList>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
|
|
|
|
|
How do i fire it`s selection change event and the change must be reflected in the corresponding row.i.e how do i know which dropdown was selected and which row to modify???
Thanks in advance!!!
|
|
|
|