|
HI
make use of System.IO.DriveInfo in your application and play with it definatly you will get what you want
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Hi,
Thank you very much.I got the size of disk.i want to know the size of our application in runtime...if you know pls help me..it's very urgent..
thanks alex.
|
|
|
|
|
Hi
What you mean by runing application ? i am confused
Is it mean that your application dll/exe then you can find that
System.IO.FileInfo fi = new System.IO.FileInfo("Path of your dll/exe");
long size = fi.Length;
it is only for server side .......
i think if you want for client side then you need to do in javascript again there might be some securities issues ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Application means...
suppose a website host in the server..root directory is say x ,x contains all the files and folder related to that project. so i want to know the size of the folder x
i think u understand what i ment..
thanks for your help..alex.
|
|
|
|
|
Do you mean on the server, or the client ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
i want to know in the case of server in both the cases.
i got the value of the disk size.But i didn't get the size of my application in server ion runtime...
|
|
|
|
|
Hi frieds.
I am working in asp.net(c#).
I am going to make one application in which there will be a fingerprint hardware at some locations . When a registered individual puts his/her fingerprint on the fingerprint scanner , the persons fingerprint will be scanned into the system and there will be match with the one in the data base. Once this happens, the person’s details will be displayed on the computer.
Plz give me suggetion or some link how to make it?
how to enroll finger by scanner n how to check it
thanks in advance
Pathan
|
|
|
|
|
to this
u need a fingerprint scanner..(hope u have ) then u have to read its apis from where u will extract the data... and save it into database.. normally these days these hardware companies gives this facilities...
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Hi,
I am using the below code in my page, to call the Javascript function to open a popup calendar and the Selected Date will be assigned to the TextBox1. It works fine in my page.
<a id="idViewCalendar" href="JavaScript:GetDate('<%= TextBox1.ClientID%>')"><img id="idimg" src="../Images/DateImage.gif" onmouseover="" alt="Popup Calendar" border="0" /></a>
But Now, I wish to use this Anchor tag within the EditItemTemplate of the GridView. In that Template, I am having a TextBox and this Anchor Tag.
How can I pass the Client ID of the TextBox to the Popup Calendar Page? If this way is wrong, how can I proceed further? Pls guide me.
Note: If I am using the same code in my GridView, it gives the error like, TextBox1 is not Declared.
-- modified at 4:29 Thursday 8th February, 2007
Regards,
Jay
|
|
|
|
|
use the following line inside the javascript method GetDate to get the clientid of TextBox1
var txt1 = document.getElementById("TextBox1")
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi,
Actually I am passing the 'Client Id' from the below code, when it is in Page.
<a id="idViewCalendar" href="JavaScript:GetDate('<%= TextBox1.ClientID%>')"></a>
When it is inside a GridView, then How can I pass the clientID of the TextBox1 (which is also inside the GridView) using the above format?
Otherwise how can I pass the "TextBox" id to the GetDate() method. Because When I tried as per your suggestion, It passes the 'null' to my Calendar.
How can I resolve it. Pls help me.
Regards,
Jay
|
|
|
|
|
I am using an update panel in my ASP.NET 2.0 AJAX enabled website for file management.
inside the update panel I am using a Grid to show the file details .while updating the file info in edit mode , the file upload control is used .On clicking update the posted file is nothing . How can we solve this problem ?
-- modified at 4:11 Thursday 8th February, 2007
|
|
|
|
|
I moved this before you got flamed to pieces. Please don't post programming questions in the lounge.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi friends i am using file upload control to upload image and same file i
am storing in database.I am giving image name same as user name means if user upload another image it will overwrite previous.
but while retriveing if image is of same type(*.jpg on *.jpg) it retrive previous image.
if i am saving image of other typr(*.jpg on *.bmp) Or If i refresh the page it will give proper image . what should i do.
even in folder which i store it appers updated image.
thanks in advance
|
|
|
|
|
Check the image in the database is replaced with newone with same type. Might be image is not saved in database. Or you are not retriving the current image from the database ? When are you retrving the image from DB ? What you think ?
<l>Thanks and Regards
Sandeep
|
|
|
|
|
The image is being cached by the browser. When you change the image to one of the same type the name doesn't change, so the browser assumes the image is the same and shows the cached version. Changing the image type causes the name to change so the browser reloads it. Either don't allow caching (probably a bad option) or add a timestamp to the filename.
|
|
|
|
|
hi i tried to delete cache but it is not working please can u help me i can't use timestap as i am using picname same as username if i used time stamp each time name of pic get change.
my code to delete cache is follow
I wrote this thing in page load
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
please its urgent
thanks in advance
|
|
|
|
|
Hi,
I am debugging a difficult application, that I didnt code, I have a problem - there is a bug somewhere in the application, that occurs before the page loads for the user.
What are the event handlers that can be used before page_Load, eg pre pageload event handler?
|
|
|
|
|
I don`t know this will work or not because i assume that the page is first rendered and then loaded.Try this
1.From the dropdown in properties window select WebForm1 System.Web.UI.Page.
2.Go to Events and double click on PreRender.
Now u can do the work to be done inside this event.
|
|
|
|
|
I think PreRender comes before UnLoad.
Init comes before Load.
|
|
|
|
|
Why you need event handlers ? i think are you confirm that all environment is set properly and check the base class if it is calling from your start up page
<l>Thanks and Regards
Sandeep
|
|
|
|
|
you can do with it using preload... but i think u should first look at ur web.cofig.. global.asax
some time they create problem... and it will vbe very helpfull for u if u put that error on the forum...
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
hai,
I want to know how to bind & display datas using Dropdownlist in a Datagrid... I am using VS2003....
with Regards,
Imthiyas Ahamed.A
|
|
|
|
|
Here[^] you will get so many examples on datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Let i have datagrid dg
take itemtemplete
and in itemtemplete take a dropdownlist
put
************* aspx
page***************
<asp:datagrid id="Dg">
<columns>
<asp:templatecolumn>
<itemtemplate>
<asp:dropdownlist
id="drpLanguage"
datasource="<%#Bindtitle()%>"
datatextfield="title"
datatextvalue="title"
runat="server">
***********************In aspx.cs page******************
public MySqlDataReader BindLanguage()
{
myconnection.open() /******** connection with pubs database*******
MySqlCommand myCommand = new MySqlCommand("select * from authors", myConnection);
return myCommand.ExecuteReader(CommandBehavior.CloseConnection);
}
|
|
|
|