How to take whole Html /xhtml file in single string to write ?
I am new in c# , i just want to know is it possible to take whole html document in a single string. i even want to write it in another file. Thanx in advance. ...
I am new in c# , i just want to know is it possible to take whole html document in a single string. i even want to write it in another file. Thanx in advance. ...
I have an application that relies heavily on authorization of users. Within it, I am using IPrincipal.IsInRole() to check whether users are in the correct groups: IPrincipal principal = Thread.CurrentPrincipal; bool inRole = principal.IsInRole("mydomainname\some role with a long name"); This works fine for the most part, but fails (re...
What are the numbers in a .NET stack trace on an ASPX error page (see picture)? They don't seem to be line numbers as they are too large? How can those numbers help me in determining the line of code that threw the exception? ...
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154. i don't have ms-office in my system. I added the reference 'Microsoft.Office.Interop.Excel.dll' in my .net project(C# code behind). i get the above error FROM the BELOW line Application excel ...
I'm currently evaluating the Windows Azure platform. The situation is this: We have a couple of .NET-DLLs with functions which we would like to expose as webservices for our clients. Since all our webservice experience is in PHP though, we would love to just call the .NET-functions from PHP and handle the webstuff in PHP. I know this is...
Hi, Is there a way to specify a file extension for ASP.NET upload control? E.g. I want to upload images with jpg and png extensions only. I can implement this easily for a windows application, but struggling with ASP.Net Thank you ...
My Problem is for particular case occuring in my project. in my Html document, i want to replace <td> with <td class=”right”> for all tds except first one in a <tr> tag. (if there is <tr> inside a <tr> tag then that also needs to be handled). if input is like <tr> <td>1</td> <td>2</td> <td>3</td> <tr> output should be like ...
Hi, i successfully integrated my .NET Dll into MATLAB. Everything is good. But, i pass a System.Double with value like 6000.46, and return it in a MATLAB function as [valueFromDotNet] the ans of MATLAB is ans = 6000, but i expected at least ans = 6000.4600 has anybody an idea where i have to look? EDIT 1: I ensured that the format is s...
I want to bind list of business objects to Winforms control (DataGridview, ComboBox, e.t.c.). There are several approaches to do that: I can create wrapper classes for business objects and override their ToString method implementation. That will work nice for ComboBox, ListBox Items.(Add|AddRange) methods. But this will not work fo...
I have an ordinary Label and want to make it half-transparent. How to do this? Code is just: <Label FlowDirection="RightToLeft" FontSize="40" Padding="0" FontFamily="Arial" FontWeight="Bold""> X </Label> ...
Hi, In my program I need to access the schema of an Oracle 11g database. I have been trying to get a list of tables using a query like this: SELECT t.TABLE_NAME, t.OWNER FROM ALL_TABLES t WHERE t.DROPPED = 'NO' ORDER BY t.TABLE_NAME The query works and I get back a list of tables. Unfortunately when querying some of the tables using ...
I have a Label and want to add Shadow to it. It seems like I can't apply the DropShadowBitmapEffect to it. What else can I do? ...
Hello. I have a form that has a panel in it. I've set the panel anchor and it works great, when I resize the form the panels height is increased. The problem is: I've got several group boxes in the panel, and when the panel's height is increased, the group box vertical spacing should be increased equally. How can I do that? ...
Which is the best third party library for Image manipulation in .Net? I have tried ImageMagick.Net (http://imagemagick.codeplex.com/releases/view/30302). But it does not have all the wrappers available like transformations and Overlaying with blending. ...
Discriminated unions and other primitive types in F# uses structural equality by default, and provides a generated override for the .Equals method. The F# equality operator apparently differs from the C# one in that it uses the .Equals method even for reference types, but when F# discriminated unions are used from C#, the default operato...
Some time ago I came across an online .NET(C#) IDE. I remember it was .NET based because the site required that i have .NET framework installed so i can run it, compiling and viewing the application took place inside the browser window, i could actually view my newly created application inside the browser window. Can't seem to find it...
How to check the .net framework version on start of WinForms application that wrote on .NET 3.5? If .net 3.5 is not installed, the application should show the message about it (may be with link on .net installer or some else). Now it show some error that is not clear for user. ...
Hi, I need to read out posts and maybe write back comments to a WordPress blog. I found some documentation on their API's XML-RPC and AtomPub. But what would be the recommended way to go. XML-RPC seems more documented, as far as I can see. Any experiences/recommendations? ...
I need to create a directory tree similar to the one shown in the Windows Explorer. Using SpecialFolders doesn't help since these folders are physical folders. So, is there any representation of these virtual folders like "Desktop", "Computer" or "Network" in .NET? By the way, there's a solution to this problem in Java using ShellFolder...
Hi I have to send a weekly email to subscribers. The content of this email comes from a database. I understand I have to set up a scheduled task on the server (I have to ask for this as I work remotely and don't have admin rights to do it). I did this in the past, where the email is sent by a .net page that gets called by the scheduled ...