.net

Print HTML page in WinForms without using IE

Is there any way to print HTML page in WinForms without using IE? Some our customers have problems with IE8 at Windows XP and I want to implement printing without dependence on IE. ...

ASP.NET with MS Chart disable the vertical line

Hi, I have a graph created with MS Chart like the following picture. As you can see the vertical lines are messed up with value of the top of each bar. Here's the mark-up for the graph: <asp:Chart ID="chtNBAChampionships" runat="server"> <Series> <asp:Series Name="Championships" YValueType="Int32" ChartType="Column...

How to suppress DISPPARAMS warnings in msbuild?

I have bunch of COM dependencies and my build script emits tons of following warnings: c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning : The type library importer could not convert the signature for the member 'DISPPARAMS.rgvarg'. c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets :...

Hosting .NET Web Service on Web Logic

Is there any way we can host .NET (.asmx) web service on web logic? Thanks Paresh ...

ASP.NET Forms Authentication and a "No Authentication" subfolder

Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this? ...

making a synchronous calls for other applications

Hello all I need to call from my code for some other program . And I need to wait till it finishes (synchronous call). How I can do so ? Thanks, a lot. ...

Populate StackPanel with checkbox's from Database

I am quite new to WPF. I have a page that displays data from a SQL database using L2S. The L2S returns a DataTable that contains all the available options to choose from for a specific area. Every row it returns from the DataBase needs to be a checkbox and I want to put those checkboxes in a stackpanel. Am I looking at databinding to...

Current line and column numbers in a RichTextBox in a Winforms application.

How do I get the current line and column numbers in a RichTextBox in a Winforms application? NOTE Folks, I just want a simple solution, if it's available by someone and he's willing to share it with us, and not links to do research! Just give me some code please! Otherwise, I'll have to buy a control... ...

what is character for end of file of filestream?

i am searching in a while loop for a particular character to check whether it reached the end of file. Which character which i can search for ?? Eg: Indexof('/n') end of line Indexof(' ') end of word ???? ---------- end of file?? ...

Alternative to Page_Load in ASP.NET (and a good WTF story)

Woo, I have a doozy of a problem (might even be one for the Daily WTF) and I'm hoping there's a solution. (My apologies for the long post...) I have been working on a website that I inherited about a month ago. One of the parts I have been working on is fixing one of the controls (essentially a dynamic header bar) so that it displays ...

Adding a "fake drive" to Windows Explorer

An application I use, Mozy Backup, adds its own "drive" to Windows Explorer that I can browse and view all the files I've backed up. Windows knows it's not a physical drive - it's shows up under "Other" if my drive list is divided by type. How is a "drive" like this registered with explorer? I'd like to do this with a current .NET appli...

WPF Toolkit Calendar takes two clicks to get focus

I am using the WPF Calendar that is part of the WPF Toolkit. I have two different calendars on a control. When I attempt to choose a date from one calendar and then from the second calendar, I have to click on the second calendar twice to get it to choose a date. Has anyone else had this issue and know of a solution? ...

Open Source Alternatives to Reflector?

Hi, Just to ask if anyone knows of an open source alternative to RedGate's Reflector? I'm interested in checking out how a tool similar to Reflector actually works. Thanks, MagicAndi. ...

How to read the html contents of the web browser control?

How to (i) read the html contents of the web browser control (ii) modify it and (iii) redisplay it on the screen? (simular to firebug, http://getfirebug.com/ where you can load a webpage, change the html tag value and it would display the change on the screen) ...

ASP.NET MVC, Spring.NET, NHibernate initial setup/example/tutorial.

Hello! Have you been doing some ASP.NET MVC developement involving Spring.NET and NHibernate both? I would like to see an informative example of such setup, so I could build my own project off that. I tried googling, found some pretty things like S#arp Architecture, an article about regular ASP.NET (WebForms) integrated with the framew...

What are the differences between a Just-in-Time-Compiler and an Interpreter?

What are the differences between a Just-in-Time-Compiler and an Interpreter, and are there differences between the .NET and the JAVA JIT compiler? ...

How to validate smtp credentials before sending mail in C# ?

I need to validate the username and password set in SmtpClient object before sending mail. Here is the code sample: SmtpClient client=new SmtpClient(host); client.Credentials=new NetworkdCredentials(username,password); client.UseDefaultCredentials=false; //Here I need to verify the credentials(i.e. username and password) client.Send(m...

Is there any sort of File system transaction mechanism available to .net application?

Hi, I'm implementing a simple update mechanism for an application I'm writing the last part of the update process consist in renaming the current application executable file from something like myApp.exe to myApp.old.exe and then renaming the freshly downloaded and updated file from myApp.new.exe to myApp.exe. I'd like to find a way fo...

Implementing .NET Gridview with SqlDataSource - on edit exception

I'm trying to subclass the .NET 2.0 Gridview control and implement a custom Update to perform when "edit" is clicked; however I get the following cryptic error message: "An unexpected error has occurred." I'm trying to access our db logs to see if its failing there, but until i get access, i cannot debug the issue. Here are snippets of...

Webservice returning 403 error

I'm wondering whether I'm receiving the 403 errors because there are too many attempted connections being made to the webservice. If this is the case how do I get around it? I've tried creating a new instance of InternalWebService each time and disposing of the old one but I get the same problem. I've disabled the firewall and the webser...