
Liqdfire
Avatar/Signature-
Posts
27 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Liqdfire
-
sounds interesting would you be willing to post the code ?
-
n/p also over the next couple of weeks I am going to be writing a USB Wrapper class. It will be native .Net but will allow access to USB
-
You are correct you cannot accomplish this through FTP you would need access to the machine. You do not physically need to be able to touch the machine but you will need to be able to map a network drive. Is the machine local or in a data center somewhere, do you have an admin login into the machine ?
-
When you map a drive you auctuall assign it a local drive letter for access. instead of looking in Network Neighborhoos try looking in My Computer. If infact the drive is mapped then there will be a drive letter there for that drive. Then you would use the file system watcher just like it was a local drive. You just watch the local drive letter. If your still don't see it catch me on pm and if your using windows XP we can setup a remote help request and I will auctually show you what I am talking about. :)
-
I think you would be better off using a .png file instead of a .ico file and doing the drawing of the control manually let me see if I can find a example that will help you out
-
Communicating with USB in .Net is no easy chore. Basically you would take the same code for VB6 and port it over because you have to use un managed api calls. I had a very hard time getting it all to work in .Net nativaly so I ended up making a Vb6 Activex Control with the vb6 code and added a reference to it in my .Net project. I know not the mose efficient way to do it but it works. http://www.intel.com/intelpress/usb/documentation.htm http://www.intel.com/intelpress/usb/examples/vboverview.htm
-
if your looking to make a packet monitor then you might want to check here http://www.mentalis.org/soft/projects.qpx they have some source you can look @
-
Well you basically need to set it to a value for the maximum image size you wish to allow someone to try and use. You need to take in consideration who is going to be using the service and what kind of connections they will have as well as expected traffic. You don't want to overload you connection but you also don't want the client to wait 30 minutes for the image to upload. Other than that its pretty much a judgement call on your part. I wouldn't recommend anything voer 10 megs personally.
-
It will work only if the file system is on a windows 200 or XP machine. You should map the drive then use your local mapping for the watcher or tru using the UNC \\<servername>\<sharename>
-
what you need is the original .png file from Foood but you have to license the icon from him to use it.
-
Even though the aspnet account has write rights you still need the IUSR_<machinename> to have write rights to the directory. You might even try impersonation that allows the app to run inthe same user context as the account its impersonating instead of the asp app domain. Also did you change your machine.config to reflect the system process type to system instead of machine ?? C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\CONFIG\machine.config ie <processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="0:00:05" requestLimit="Infinite" requestQueueLimit="5000" restartQueueLimit="10" memoryLimit="60" webGarden="false" cpuMask="0xffffffff" [color=Red]userName="machine"[/color] password="AutoGenerate" logLevel="Errors" clientConnectedCheck="0:00:05" comAuthenticationLevel="Connect" comImpersonationLevel="Impersonate" responseRestartDeadlockInterval="00:09:00" responseDeadlockInterval="00:03:00" maxWorkerThreads="25" maxIoThreads="25" />
-
Create Directory every new month
Liqdfire replied to Mischamel's topic in Directory / File IO / Registry
Public Class DirMaker Public Function GenerateSaveDirString(ByVal Month As String, ByVal Day As String, ByVal Year As String) As String Dim Ret As String Dim Mon As String = ConvertMonth(Month) Ret = "C:\Imported\" & Mon & "-" & Year & "\" & Day & "\" If Not System.IO.Directory.Exists(Ret) Then System.IO.Directory.CreateDirectory(Ret) End If Return Ret End Function Public Function ConvertMonth(ByVal Month As String) As String Select Case Month Case 1 : Return "Jan" Case 2 : Return "Feb" Case 3 : Return "Mar" Case 4 : Return "Apr" Case 5 : Return "May" Case 6 : Return "Jun" Case 7 : Return "Jul" Case 8 : Return "Aug" Case 9 : Return "Sept" Case 10 : Return "Oct" Case 11 : Return "Nov" Case 12 : Return "Dec" End Select End Function End Class -
Create Directory every new month
Liqdfire replied to Mischamel's topic in Directory / File IO / Registry
one really nice thing about the .Net system.io namespace it that there are all the functions needed to do this. Imports system.IO It NOT directory.exist("<directory name>") then directory.create("<directory name>") end if the <directory name> can also include subdirectories. IE say you need C:\Test1\Vb\Samples\Monday\11AM and you do not even have a C:\Test1 directory by passing in all of the sub directories it will create them as well -
Thx I already have a working class for dealing with DB9 Serial
-
no your not missing anything
-
try using response and request.Cookies 'Use this to set cookie Response.Cookies("members").Value = <value> Response.Cookies("members").Path = "/" Response.Cookies("members").Expires = DateTime.Now.AddMinutes(1) it also looks like your putting a custom class in your cookie ?? Where did the .lastname come from ?? If you doing something like this Dim <variable> as Custom_Class_Person <valiable>.lastname = "yad yad" Cookie.Value = <variable> Then you would need to assign the calue of the cookie to a new instance of that custom class. Post your code where you make the cookie so I can look at it please.
-
<asp:DataGrid id="Datagrid1" runat="server" AutoGenerateColumns="True" OnItemDataBound="Datagrid1_OnItemDataBound"/> Sub Datagrid1_ItemDataBound(source As Object, e As DataGridItemEventArgs) If (e.Item.ItemType = ListItemType.Item Or _ e.Item.ItemType = ListItemType.AlternatingItem) Then If Convert.ToDateTime(e.Item.Cells(1).Text) < DateTime.Today Then _ e.Item.Cells(1).BackColor = System.Drawing.Color.FromName("#ffccff") If e.Item.DataItem("UserID") = 590 Then _ e.Item.Cells(2).BackColor = System.Drawing.Color.DeepPink End If End Sub this sample code sets the back color based on the value its about to bind to the grid I am sure you can put a pace holder in the column you want the link or non link to be and generate the control and add it to the controls collection. Thats how I would do it any ways. If you need help email me Chris@qtmedical.com
-
I would bind a procedure to the Databind event of the datagrid and check the value of the column your wanting to check and determin there wether you need a link or not. ler me see if I can find you some good example code
-
not really if I am not mistaken the autopostback is false if a user refreshes.
-
Building a web service is pretty easy if your confortable wiht making and using classes. You make it just like any other class except you have to inherit System.Web.Services.WebService and import system.web.services. http://www.asp.net is a good start though
-
Your best bet is to do a master / detail data grid http://aspnet.4guysfromrolla.com/articles/040203-1.aspx
-
how are they getting to the files are you allowing them to click on a link to stream them with a media player of some sorts if so they it depends on their conenction and there isn't much you can do. If not maybe you could try streaming them. There is a free program called shoutcast that you can place youe media files in a dire then use ASP .Net or ptovide a link to the file and it will stream it to them using winamp or windows media player
-
I don't know if you ever got this fixed but you need to enable impersonation. add a line similar to this in your web.config <identity impersonate="true" userName="<userid>" password="<password>"/>
-
with the winfax sdk :)wfxsdk.zip