|
thanks for ur advise.. I will try it out 1st.. Thanks..
|
|
|
|
|
When i am using the getfiles method and listing them into the list box i am unable to get all the file. I use .ppt as example i only manage to get one same file over and over again whenever i click on my read button. But the explanation given but the software is that the code suppose to be able to list down all the file. So i dun understand why i cant? any by the way anyones knows how to use the getfilesdatetime function?
|
|
|
|
|
with getfiles you get an array of files. if your listbox just shows the same file over and over again, i assume you are using for... next to add the files to your listbox, counting the number of items in your array but not changing the index at each step. either change the index or use for each... next for iterating through that array and adding its items to your listbox.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
I am using for each... next in my coding and it still just list only one file. Dun understand why..
|
|
|
|
|
I have read the help provided by the software but it dun provide detailed explanation and no example given. I not very sure on how it actually works. Example like string.remove(12, 4) wat does it mean?
|
|
|
|
|
|
I assume it means remove the characters from number 12, going for 4 chars. Did it occur to you to write some code and see what it returns ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Because i am taking over this codes and initially the code is connected to a web server and now it is not.. So there is no way where by i can know the result. So have no choice but to check out wat the codes means..
|
|
|
|
|
You think it works differently in a console app to how it does in a web app ? How can you test your code at all, if you can't run it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You think it works differently in a console app to how it does in a web app ?
My 5 .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
In this case i think i really need to connect to the network to test the code out first. Thanks a lot.
|
|
|
|
|
Well, the fundamental here is, although you can test string.replace anywhere, you sure shouldn't bother working on any code, if you can't test it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I'm stumped. Tried asking google and look around here in TCP, but I still haven't got any answer. I'm totally new in ASP.net programming, but have some experience in VB.net.
Here's my situation:
I have a project that is required to access a smart card and read data inside it, then pass the data into the server for further processing. I presume ASP.net does not have smartcard abilities right? Therefore, I created a dll (in VB.net) to handle smartcard processing and pass out the resulting values to the main program. When I tried it in localhost, the thing works; but when I tried to run the program from another PC, it turns out that the dll looks for the smartcard reader at the server, where the dll resides. Now I'm trying a different method since that one fails miserably. I'm writing a VB.net program that is going to pass the acquired data from the smartcard at client PC to an ASP.net/ASP page. But I cannot find any article on the net about passing data from VB.net to ASP.net. Since the dll available is only for local .net, therefore accessing it through ASP.net results in weird performance where the accessed SC reader is the one at the server. Any idea guys? Or is there a better solution?
|
|
|
|
|
Ricky, I think your application design is at fault. Why do you need the smart card data in an ASP.net page.
Your DLL will ALWAYS reside on the server unless it is DEPLOYED to the client (you know all those issues we have with installing activex/dll from the internet, this is the cause). Your DLL can only work with what it sees as the local machine (the server).
If you use a winforms client (so the DLL is now on the client) then why send the data to the ASP page?.
If you have to use ASP then you need to ask the user to download and install the DLL on the client machine.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Well, you see.. In my country (I don't know if it is implemented in your country), we got a smart card as National ID Card; we can access basic personal information in it; so I'm building an application that automatically inputs some of the public data inside the ID Card to the application (like Name and date of birth and so on).
The reason why I need to pass the data to the ASP page is that I'm not the original developer; I'm "the new guy" that continues development of an already existing web app where the data input is manual.. and try to make it into automatic input.
Is this not possible at all?
|
|
|
|
|
In that case you still need to get your DLL onto the client machine, probably via download. I'm assuming ASP cannot get at the reader as it dows not have access to the filesystem etc.
Are the readers common, when the reader is installed presumably there is a SW package to manage the reader, can you use their DLL/process?. Can you get to the reader manuf to get your SW delivered with new readers? This is one avenue to get at the reader!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I wonder whether ASP.net can use a dll that resides in the client side?
I will look into this then, thanks again.
|
|
|
|
|
I will assume that there would be tons of security issues with that away.
How about taking a different approach and building a browser plug-in that accepts the input form your smart card and can 'enter' the data into the manual areas of the screen for the user. Kind of like the add-ins that keep track of user names and passwords entered manually.
|
|
|
|
|
Have you tried services?
Comes with .Net 3.0. Allows for a .Net app to adimister a service, that an app can connect to and exchange information in the form of strings.
|
|
|
|
|
hi,
i'm working on windows application using vb.net visual studio 2008,
i've create my server client application, here i want to know how can i use my server to send data to selected IP Address for example how can i send data only to 127.0.0.1 while there also have more than one client that connected to me.. i'm using NetworkStream and AcceptTcpClient.
or there maybe any guide that i don't know..
please..
|
|
|
|
|
you may use an object of the underlying socket to send data to a specified ip address to which that socket is binded to...
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
My Visual Studio 2008 Express Edition just expired. I believe it was not a Beta version. I do not recall registering it - but its been a while. When I open VS, the software locks and prompts me with dialog box informing me of the 90-day tiral expiry. When I click on the upgrade button, it takes me to an MSN screen which says I can purchase a code on-line.
I am a little confused. What am I upgrading to? Am I forced to buy Standard/Pro? Or can I upgrade to an Express version which does not have a trial period.
Thanks
EM
|
|
|
|
|
Maybe try uninstall/reinstall and see whether it lets you register?
Kevin
|
|
|
|
|
Express Editions do not have an expiration period, and you should not be receiving that error unless it was a beta version or you are mistakenly using a standard/professional edition trial. Express Editions are free, non-expiring, extremely streamlined versions of Visual Studio languages.
FYI, if you are a member of an educational institution you may consider looking at DreamSpark: downloads.channel8.msdn.com. Their you can get free professional Visual Studio if you are a registered student.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
All I had to do was uninstall then reinstall and then register the Express version.
Thanks for you responses.
EM
|
|
|
|