For connecting network folder, how can i input user name and password?
-
I need to get a file list from network folder in IIS server. I use ASP.NET code for this job. string[] Files; Files = Directory.GetFiles("G:\\" + cmbFILE.Text + "\\"); This is the coding. When I tried to test, It showed a error with logon failure: unknown user name or bad password. How can I input userid and password with that coding? IIS and file server within workgroup but not in domain. Please anyone can help me?
-
I need to get a file list from network folder in IIS server. I use ASP.NET code for this job. string[] Files; Files = Directory.GetFiles("G:\\" + cmbFILE.Text + "\\"); This is the coding. When I tried to test, It showed a error with logon failure: unknown user name or bad password. How can I input userid and password with that coding? IIS and file server within workgroup but not in domain. Please anyone can help me?
Have you solved this? Look around on MSDN?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer