Click here to Skip to main content
15,892,697 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to disable back Button in IE using asp.net Pin
deepthy.p.m26-Jan-09 23:15
deepthy.p.m26-Jan-09 23:15 
RantRe: how to disable back Button in IE using asp.net Pin
Paddy Boyd26-Jan-09 23:22
Paddy Boyd26-Jan-09 23:22 
AnswerRe: how to disable back Button in IE using asp.net Pin
josh41728-Jan-09 0:01
josh41728-Jan-09 0:01 
QuestionDocument Manager Pin
Santosini Sahoo26-Jan-09 23:05
Santosini Sahoo26-Jan-09 23:05 
QuestionDisplaying thumbnails in ASP.NET Pin
Radhakrishnan G.26-Jan-09 22:50
Radhakrishnan G.26-Jan-09 22:50 
AnswerRe: Displaying thumbnails in ASP.NET Pin
Paddy Boyd26-Jan-09 23:23
Paddy Boyd26-Jan-09 23:23 
Questioncreate that aspx page at runtime Pin
nithydurai26-Jan-09 22:12
nithydurai26-Jan-09 22:12 
QuestionUsing WMI win32_share in asp.net page not working on IIS6? Pin
leeoze26-Jan-09 22:11
leeoze26-Jan-09 22:11 
hi,
I'm trying to create a folder sharing using WMI win32_share on an ASP.NET c# page.

while running it using the visual studio 2008 it works great.
But after I publish it to the IIS and run the WebPage nothing happends?!
it's seems like the page was loaded fine but checking the folder I see no share was created.

Any ideas?

I'm using .NET 3.5, visual studio 2008, c# webapplication.
IIS 6 server.

here is the code

string shareName = "Test";
            string CUDir = @"D:\Test";
            ManagementClass managementClass = new ManagementClass("Win32_Share");
            
            // Create ManagementBaseObjects for in and out parameters
            ManagementBaseObject inParams = managementClass.GetMethodParameters("Create");
            ManagementBaseObject outParams;
            
            // Set the input parameters
            inParams["Description"] = "";
            inParams["Name"] = shareName;
            inParams["Path"] = CUDir;
            inParams["Type"] = 0x0; // Disk Drive
            // Invoke the method on the ManagementClass object
            outParams = managementClass.InvokeMethod("Create", inParams, null);


tnx

modified on Tuesday, January 27, 2009 4:33 AM

AnswerRe: Problem solved... Pin
leeoze26-Jan-09 23:16
leeoze26-Jan-09 23:16 
Questioni want to add more than 1 columns with ColumnName=" " in the C#asp.net datagrid after data is bind to it. Pin
s_aslam9826-Jan-09 22:08
s_aslam9826-Jan-09 22:08 
AnswerRe: i want to add more than 1 columns with ColumnName=" " in the C#asp.net datagrid after data is bind to it. Pin
mr_muskurahat26-Jan-09 22:58
mr_muskurahat26-Jan-09 22:58 
GeneralRe: i want to add more than 1 columns with ColumnName=" " in the C#asp.net datagrid after data is bind to it. Pin
Santhosh N28-Jan-09 0:00
Santhosh N28-Jan-09 0:00 
QuestionTreeNode with cssClass? Pin
Deresen26-Jan-09 21:55
Deresen26-Jan-09 21:55 
QuestionCombo box Pin
Girish48126-Jan-09 20:37
Girish48126-Jan-09 20:37 
AnswerRe: Combo box Pin
Ashutosh Phoujdar27-Jan-09 1:20
Ashutosh Phoujdar27-Jan-09 1:20 
GeneralRe: Combo box Pin
Girish48127-Jan-09 18:02
Girish48127-Jan-09 18:02 
QuestionRequiredFieldValidator is not firing? Pin
meeram39526-Jan-09 20:05
meeram39526-Jan-09 20:05 
AnswerRe: RequiredFieldValidator is not firing? Pin
Sundar_R26-Jan-09 20:40
Sundar_R26-Jan-09 20:40 
GeneralRe: RequiredFieldValidator is not firing? Pin
meeram39526-Jan-09 21:55
meeram39526-Jan-09 21:55 
GeneralRe: RequiredFieldValidator is not firing? Pin
Spunky Coder26-Jan-09 22:29
Spunky Coder26-Jan-09 22:29 
AnswerRe: RequiredFieldValidator is not firing? Pin
josh41728-Jan-09 1:28
josh41728-Jan-09 1:28 
Questionhow to know when mouse is clicked on gridview's column header. Pin
s_aslam9826-Jan-09 18:16
s_aslam9826-Jan-09 18:16 
AnswerRe: how to know when mouse is clicked on gridview's column header. Pin
Sundar_R26-Jan-09 18:37
Sundar_R26-Jan-09 18:37 
Generali cant understand how to do it Pin
s_aslam9826-Jan-09 22:34
s_aslam9826-Jan-09 22:34 
GeneralRe: i cant understand how to do it Pin
mr_muskurahat26-Jan-09 22:47
mr_muskurahat26-Jan-09 22:47 

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.