|
This forum is for ASP.NET questions.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello Genious...
I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path.
This user class like Win32SDK and inports dlls like shell32 and shared function
<dllimport("shell32.dll", preservesig:="True," charset:="CharSet.Auto)"> _
Public Shared Function SHBrowseForFolder(ByVal bi As BROWSEINFO) As IntPtr
End Function
and opens the browsing window with
idListPtr = Win32SDK.SHBrowseForFolder(bi).
Now one interesting thing is that this works in my application perfectly.. but when i publish this on local .. its not even open browser window and page opening gets hang...
i think it is may be because security of windows's dll problem..
Any solutions..? please...
|
|
|
|
|
rain raj wrote: I have developed folder browser which only displays the folders and not files in browser window..and let users selects folder path.
Why do you want to display a folder browser dialog from a web application? What purpose does it serve?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi Paul..
First of all ,Thanks for replying...
Ok.. now i will tell you why it is needs...
I have requirement like User can be able to select folder path from folder browser.. and then after selecting that, some files will copy from to server to user's selected path(Selected folder)
Eg if user selects desktop then user's selected path is like
C:\Documents and Settings\Administrator\Desktop
and next, some files from my server will copies to users desktop.
Is there any other way to get selected folder path from user's local drive then i will always welcome your any sugestions...
Thanks..
|
|
|
|
|
You can't do this. The browser can't access local resources on the client machine for obvious security reasons. Otherwise, websites could do malicious things with your user's file system. You have to adopt a different mindset when working with web applications. Some of the things you take for granted in Windows applications simply are not possible.
The best thing you can do is to provide the facility to download a file or files. You could consider packaging a set of files up into a ZIP archive and then providing the user with the facility to download it.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
ok.. I got it..
Thanks for this sugestion.
i will definately apply your sugestions as it is best.
Tarak
|
|
|
|
|
Is your application in asp.net? if yes then why you are not using classes in system.io namespace to browse folders.
|
|
|
|
|
I am working on a website in asp.net with c#. I need to delete a file which should get completely deleted not even be there in recycle bin .
Can anyone help me out in this.
THanks
|
|
|
|
|
From where you want to delete file ???
|
|
|
|
|
any folder on c or d drive. anywhere.
|
|
|
|
|
ritu4321 wrote: I need to delete a file which should get completely deleted not even be there in recycle bin .
By default, when a file is deleted using the System.IO methods it won't be moved to the Recycle Bin. You have to write specific code to do that.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
By default it goes to recycle bin . I need to know how to delete it completely without going into recycle bin.
|
|
|
|
|
I think u want something like Permanent delete?
Once u delete a file then it goes to recycle bin and then it also deleted from recycle bin also?
Believe Yourself™ :->™
|
|
|
|
|
|
1st Can u manage to delete it to the disk level? Means it the deleted file goes to R.Bin?
If that is achieved then you have to make some registry level code, Cause it becomes the O.S related Operation. Try to search in Operating System Forum for this 2nd level delete problem.
But 1st u have to delete file from 1st level, i.e from drives.
Just try the below links for 2nd level deletion
http://www.thescripts.com/forum/thread255921.html[^]
http://www.developerfusion.co.uk/show/162/[^]
i hope this will work.
Believe Yourself™ :->™
|
|
|
|
|
Select the file ..
shift+delete
try this
siri
|
|
|
|
|
Hiya,
It is quiet simple
My.Computer.FileSystem.DeleteFile("MyFile.txt", FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently)
I write this line of code in VB but I'm sure that you will know where to put the funny little bracket things
Hope it was helpful!
Lloyd J. Atkinson
"Logic will get you from A to B, but imagination will take you everywhere" -ALbert Einstein
|
|
|
|
|
Hello....
There is a can grow field in cross tab crystal reports (asp.net c#), which remains disabled for all the data fields , but it is available as enabled in standard reports.
Now my question is , can i somehow enable the can grow field in cross tab ?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
hi, is there any free image gallery tools available to download. please refer me such sites.
|
|
|
|
|
mukesh.mr03 wrote: free image gallery tools available to download.
Is it ur project requirement or do u want to embbed such a tool to webform.
Can u please tell something more?
Is it related to asp.net?
Believe Yourself™ :->™
|
|
|
|
|
Hey everyone,
I setup my website on IIS on this computer but I have no idea how to link people to my pages on this computer.. I'm in a LAN, but so give people this link but it's not working:
http://My.External.Ip.Address/My_Virtual_Directory/Default.aspx
I think I'm doing it the wrong way, please help
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hello,
If you are in LAN then you need to provide machine name (or IP Address) of the machine hosting the application.
http://machinename/Virtual Directory/defualt.aspx
Are you still getting any error message?
If yes, then please provide us the error details.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Thanks sam. Yes I'm in a LAN and I can access my website normally within the LAN, but the problem is when I try to access it externally using my external IP Address i get from www.whatsmyip.org, it provides me with some customized error from my ISP and i think i think the reason is that the external ip address im getting from www.whatsmyip.org is nor my machines ip, it's one external ip for the whole LAN if I'm not mistaken cuz I keep getting the same ip address from every pc on my LAN when I access www.whatsmyip.org
Thanks again Sam
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
You are absolutely right.
If you are looking to make your website accessible to outside LAN, then you need to configure your LAN router in such a way.
Routers can be configured for e.g. like to forward request to any LAN Ip. Right now, there is no such option on there so this is the reason you get this error message.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
on page load iam getting one file upload control by default.when user clicks on add button then another file upload control is to be added how could be possible.
|
|
|
|