.net

Applying css on asp.net FileUpload Control's Browse Button only

I have a FileUpload Control like this <asp:FileUpload ID="fileuploader" runat="server" /> Now I want to apply css only on the Browse button part How can I do this? ...

Why do I get this error : "Domain operations cannot be started at design time?"

Hi, I have created a silver light user control and I want to test it in a new View (MyTest.xaml). I can see my user control in the toolbox. But when I drag and drop it to the design area in I get this error: Cannot create an instance of ctlMyControl. Domain operations cannot be started at design time. Basically, it is a control with ...

How to read text file from mainframe through .net application?

Some plain text file is stored in mainframe server, i have to read the file and populate the data to SQL database. Any ideas please suggest. ...

How to find a common suffix in two strings?

I'm trying to implement something that finds the common suffix between a number of strings, for the sake of illustrations, consider the following: "The quick brown fox" "The not so quick brown fox" "The smelly brown fox" "The vicious brown fox" To a human, it's hopefully obvious that the common suffix here is " brown fox", and my nai...

Can I prevent an uncaught exception in another AppDomain from shutting down the application ?

Hello, I'm having trouble with a misbehaved library that throws an exception in a finalizer, which of course crashes the application. To avoid this, I tried loading the library in its own AppDomain, but the exception still bubbles to the surface and crashes the application. As documented on MSDN, registering to AppDomain.UnhandledExce...

MSMQ - can a queue survive a queue process restart/server restart

Can an MSMQ queued messages survive a service/server restart? What I mean is that if a queue has messages and the server were to experience a hard restart, would the messages be still available in the queue after the restart? ...

PowerPoint 2010 events not fired in C#

I'm writing an application that uses the PowerPoint interop library for Office 2010. It's supposed to open PowerPoint, load a presentation, and wait for the user to save the presentation after making changes. I want the application to upload the presentation to a server once updated. The problem I'm having is that the PresentationSave o...

Windows Application Icon Files

when creating an .exe on Windows (XP - 7, assuming it's the same process), what is the format for the application icon? what is the file extension? what size is the maximum? with applications on Mac OS X, it is possible to right-click on the application and select "Show Package Contents". from here, an .icns file can be found in a fo...

APIs for implementing Document Editing and viewing features for a web app?

I'm looking for APIs to bring online document editing features for a web app - Any suggestions? The criteria of selection depends on the following factors Support for editing for common document formats (doc, docx) Support for viewing common document and presentation formats (doc, docx, pdf, ppt, pptx) The API should be easily accessib...

How to create and read pdf files using C#?

Hi everyone, How do I create and read the pdf file using C# programmatically? ...

Customising Sharp-Architecture Code Generation WizardImplementation

Hi, I have a solution where I have two web projects instead of one. One for front-end and one for the back-end. Now, I am running into problems when I try to generate code as it looks for the default Web project WhatEverTheSolutionName.Web But I don't have it as I renamed it to WhatEverTheSolutionName.FrontEnd.Web and also created anoth...

Accessing Remoting Methods

I am currently working on a project which uses remoting for exposing the business logics. It is consumed by a Windows UI application. In Webservices, it is possible to look into the webmethods which are exposed by typing the webservice url in the IE (For example: http://localhost/webservices/webservicesample.asmx). But this is not possib...

How do I invoke a Delegate faster than by using DynamicInvoke?

Currently I useDynamicInvokewhich is very slow. Still using theDelegatetype how can I directly invoke the Delegate without late-binding/theDynamicInvoke? Delegate _method; _method.DynamicInvoke(_args); Thanks. ...

what is the max limit of data into list<string> in c#?

Hello Experts, I want to know how many values i can assign to List? For example List<string> Item= runtime data Data is not fixed.it may be 10000 or more than 1000000.I have Googled but not getting an exact answer.Please help me to solve the issue. Thanks ...

Editable Combobox with ExtAspNet?

Does anyone know how to achieve an editable combobox with ExtAspNet? The input element has its readonly attribute set, so I think I can just remove that attribute, but I'm wondering if there is an easier way. ...

what's assembly for Microsoft.Web.Service3 of .NET 2.0 in .NET 4.0?

Microsoft has Web Services Enhancements (WSE) 3.0 for .NET. The assembly is Micresoft.Web.Service3.dll. What's the replacement for this in .NET 4.0? ...

Handling Gridview Postback

I have a page that has a Gridview and a text input field on the page. The problem I am running into is that when the Gridview needs to page or the user selects to display more results the page does a postback and submits the input field for the form, which cause the validation (Using VAM) to return an error and block the Gridview from pa...

What's the problem in this statement?

I am writing a sample application to convert a DOC file into a PDF. While doing this I'm getting an error. // Creating the instance of WordApplication MSDOC = new Microsoft.Office.Interop.Word.ApplicationClass(); try { MSDOC.Visible = false; MSDOC.Documents.Open(ref Source, ref Unknown, ref Unknown, ref Unknown, ref Unknown...

Do Linq to Entities queries *always* hit the database?

My understanding of the Entity Framework is that if it can answer a query from its cache, it will. My simple testing, however, shows repeated queries hit the database even though they were previously answered positively: var u1 = context.Users.SingleOrDefault(u => u.Id == 1); var u2 = context.Users.SingleOrDefault(u => u.Id == 1); Th...

Dotnet - flatten a tree (list of lists) with one statement?

Hi, Thanks to nHibernate, some of the data structures I work with are lists within lists within lists. So for example I have a data object called "category" which has a .Children property that resolves to a list of categories ... each one of which can have children ... and so on and so on. I need to find a way of starting at a top-leve...