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

ASP.NET

 
GeneralRe: hide toolbar and address bar of window Pin
Michael Sync7-Jan-08 4:07
Michael Sync7-Jan-08 4:07 
Questionhow can i read the pdf files hyperlink address Pin
koolprasad20037-Jan-08 0:03
professionalkoolprasad20037-Jan-08 0:03 
GeneralSelecting interested columns to print using FilePrint() API of MSProject. Pin
Nagraj Naik6-Jan-08 23:47
Nagraj Naik6-Jan-08 23:47 
GeneralEmail Tracking in c# Using Asp.net [modified] Pin
angel_oct116-Jan-08 23:42
angel_oct116-Jan-08 23:42 
GeneralRe: Email Tracking in c# Using Asp.net Pin
Declan Bright6-Jan-08 23:48
Declan Bright6-Jan-08 23:48 
GeneralRe: Email Tracking in c# Using Asp.net Pin
N a v a n e e t h7-Jan-08 0:26
N a v a n e e t h7-Jan-08 0:26 
GeneralRe: Email Tracking in c# Using Asp.net Pin
Declan Bright7-Jan-08 0:33
Declan Bright7-Jan-08 0:33 
GeneralAsp.net dialogbox problem Pin
monika_vasvani6-Jan-08 23:17
monika_vasvani6-Jan-08 23:17 
HI all

In my asp.net page I'm attempting to use the OpenfileDialog object to
offer a common dialog box for the user to select a particular file on their
hard drive that may subsequently be uploaded
to our website.
The reason I'm doing it this way is that I've read that by using the common
dialog box, the security issues are based on the logged in user.

Of course, I added a reference to System.Windows.Forms and added a using
clause.

Here's the problem, when I use the following code

OpenFileDialog ofd = new OpenFileDialog();
ofd.Title = "Choose File";
ofd.InitialDirectory = [at] "c:\" ;
ofd.Filter = "All files (*.*)|*.*|All files (*.*)|*.*" ;
ofd.FilterIndex = 1 ;
ofd.RestoreDirectory = true ;
ofd.ShowDialog();

ShowDialog() throws the following exception:

[InvalidOperationException: It is invalid to show a modal dialog or form
when the application is not running in
UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly
style to display a notification
from a service application.]
System.Windows.Forms.CommonDialog.ShowDialog()
TestPortal1.AttachFileForm.btnBrowse_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\testportal1\attachfileform.aspx.cs:73
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEven tHandler.RaisePostBackEvent(String
eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

Any advise you can give would be greatly appreciated.

Thanks,
monika
GeneralRe: Asp.net dialogbox problem Pin
Declan Bright6-Jan-08 23:23
Declan Bright6-Jan-08 23:23 
GeneralRe: Asp.net dialogbox problem Pin
Paddy Boyd7-Jan-08 0:27
Paddy Boyd7-Jan-08 0:27 
GeneralRe: Asp.net dialogbox problem Pin
Michael Sync7-Jan-08 4:13
Michael Sync7-Jan-08 4:13 
QuestionIs there a FTP command that gets the size of a folder, or another way of getting the full folder size on a different machine? Pin
thomasa6-Jan-08 23:12
thomasa6-Jan-08 23:12 
GeneralFlash applications Pin
eyeseetee6-Jan-08 22:46
eyeseetee6-Jan-08 22:46 
GeneralRe: Flash applications Pin
N a v a n e e t h6-Jan-08 22:51
N a v a n e e t h6-Jan-08 22:51 
GeneralRe: Flash applications Pin
Michael Sync7-Jan-08 4:15
Michael Sync7-Jan-08 4:15 
Generaltextbox validation through javascripting. Pin
ritu43216-Jan-08 22:18
ritu43216-Jan-08 22:18 
GeneralRe: textbox validation through javascripting. Pin
N a v a n e e t h6-Jan-08 22:22
N a v a n e e t h6-Jan-08 22:22 
GeneralRe: textbox validation through javascripting. Pin
Declan Bright6-Jan-08 23:00
Declan Bright6-Jan-08 23:00 
GeneralPop up window in ASP.Net Pin
Anuradha6126-Jan-08 21:19
Anuradha6126-Jan-08 21:19 
GeneralRe: Pop up window in ASP.Net Pin
N a v a n e e t h6-Jan-08 21:32
N a v a n e e t h6-Jan-08 21:32 
GeneralRe: Pop up window in ASP.Net Pin
Anuradha6126-Jan-08 21:37
Anuradha6126-Jan-08 21:37 
GeneralRe: Pop up window in ASP.Net Pin
N a v a n e e t h6-Jan-08 21:43
N a v a n e e t h6-Jan-08 21:43 
GeneralMove contents from one directory into another Pin
.NET- India 6-Jan-08 21:10
.NET- India 6-Jan-08 21:10 
GeneralRe: Move contents from one directory into another Pin
N a v a n e e t h6-Jan-08 21:30
N a v a n e e t h6-Jan-08 21:30 
Generalpassing parameters in report.rdlc Pin
Sanjay Kunjam6-Jan-08 20:59
Sanjay Kunjam6-Jan-08 20:59 

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.