Click here to Skip to main content
15,919,178 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCrystal Report Discrete Value Pin
kmanisha27-Feb-07 17:02
kmanisha27-Feb-07 17:02 
AnswerRe: Crystal Report Discrete Value Pin
Harini N K27-Feb-07 19:07
Harini N K27-Feb-07 19:07 
QuestionArea codes in a map Pin
prameelapydi27-Feb-07 16:25
prameelapydi27-Feb-07 16:25 
QuestionCreate Share Folder Pin
alexfromto27-Feb-07 14:26
alexfromto27-Feb-07 14:26 
AnswerRe: Create Share Folder Pin
Michael Sync27-Feb-07 18:12
Michael Sync27-Feb-07 18:12 
GeneralRe: Create Share Folder Pin
alexfromto1-Mar-07 9:39
alexfromto1-Mar-07 9:39 
GeneralRe: Create Share Folder Pin
Michael Sync1-Mar-07 15:14
Michael Sync1-Mar-07 15:14 
GeneralRe: Create Share Folder Pin
alexfromto2-Mar-07 3:20
alexfromto2-Mar-07 3:20 
Thanks man. That's exactly what I did Smile | :) .
Here we go, just in case you'll need it.

Import System.Management library into your project first then,

Try<br />
' Create a ManagementClass object<br />
Dim managementClass As System.Management.ManagementClass = New System.Management.ManagementClass("Win32_Share")<br />
' Create ManagementBaseObjects for in and out parameters<br />
Dim inParams As System.Management.ManagementBaseObject = managementClass.GetMethodParameters("Create")<br />
Dim outParams As System.Management.ManagementBaseObject<br />
' Set the input parameters<br />
inParams("Description") = "My Shared Files"<br />
inParams("Name") = partner_name<br />
inParams("Path") = Session("Path").ToString() ' This is a path to existing directory<br />
inParams("Type") = 0<br />
' Disk Drive<br />
' Invoke the method on the ManagementClass object<br />
outParams = managementClass.InvokeMethod("Create", inParams, Nothing)<br />
' Check to see if the method invocation was successful<br />
If (CType(outParams.Properties("ReturnValue").Value, Integer) <> 0) Then<br />
Throw New Exception("Unable to share directory.")<br />
End If<br />
Catch ex As Exception<br />
'Return e.Message<br />
End Try

Questionexpanding dropdownlist onmouseover Pin
clydes27-Feb-07 13:24
clydes27-Feb-07 13:24 
QuestionAssigning a html to a string Pin
tonymathewt27-Feb-07 7:58
professionaltonymathewt27-Feb-07 7:58 
AnswerRe: Assigning a html to a string [modified] Pin
Marcus J. Smith27-Feb-07 8:14
professionalMarcus J. Smith27-Feb-07 8:14 
GeneralRe: Assigning a html to a string Pin
tonymathewt1-Mar-07 17:28
professionaltonymathewt1-Mar-07 17:28 
AnswerRe: Assigning a html to a string Pin
Harini N K27-Feb-07 18:08
Harini N K27-Feb-07 18:08 
GeneralRe: Assigning a html to a string Pin
tonymathewt1-Mar-07 0:49
professionaltonymathewt1-Mar-07 0:49 
GeneralRe: Assigning a html to a string Pin
Harini N K1-Mar-07 14:29
Harini N K1-Mar-07 14:29 
QuestionProblem displaying pdf file in Page_Load Pin
maxJared27-Feb-07 7:57
maxJared27-Feb-07 7:57 
AnswerRe: Problem displaying pdf file in Page_Load Pin
Marcus J. Smith27-Feb-07 8:16
professionalMarcus J. Smith27-Feb-07 8:16 
GeneralRe: Problem displaying pdf file in Page_Load Pin
maxJared27-Feb-07 8:23
maxJared27-Feb-07 8:23 
GeneralRe: Problem displaying pdf file in Page_Load Pin
Marcus J. Smith27-Feb-07 8:26
professionalMarcus J. Smith27-Feb-07 8:26 
Questionjavascript in server control??? Pin
Tkml23627-Feb-07 7:52
Tkml23627-Feb-07 7:52 
AnswerRe: javascript in server control??? Pin
Marcus J. Smith27-Feb-07 8:24
professionalMarcus J. Smith27-Feb-07 8:24 
GeneralRe: javascript in server control??? urgent Pin
Tkml23627-Feb-07 8:46
Tkml23627-Feb-07 8:46 
GeneralRe: javascript in server control??? urgent Pin
Marcus J. Smith27-Feb-07 8:59
professionalMarcus J. Smith27-Feb-07 8:59 
GeneralRe: javascript in server control??? urgent Pin
kubben27-Feb-07 9:00
kubben27-Feb-07 9:00 
GeneralRe: javascript in server control??? urgent Pin
Tkml23627-Feb-07 9:14
Tkml23627-Feb-07 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.