74
votes
26answers
34k views

Generating an Excel file in ASP.NET

I am about to add a section to an ASP.NET app (VB.NET codebehind) that will allow a user to get data returned to them as an Excel file, which I will generate based on database data. While there are ...
210
votes
22answers
77k views

Best Free Controls for .NET [closed]

What Free Controls are there for .NET (both Winforms and Webforms)?
7
votes
10answers
8k views

Should I store my images in the database or folders? [duplicate]

Possible Duplicate: Storing Images in DB - Yea or Nay? Hi At the moment each Company on my website have 1 picture they can add to their profile. I save that image into the database....its ...
7
votes
4answers
18k views

How can I encode an Array in VB.NET to JSON?

I need to pass back a JSON result for a routine I am working with. How can I encode an Array I created to JSON? I am writing this in VB.net
117
votes
12answers
52k views

.NET Configuration (app.config/web.config/settings.settings)

I have a .NET application which has different configuration files for Debug and Release builds. E.g. the debug app.config file points to a development SQL Server which has debugging enabled and the ...
18
votes
5answers
3k views

Is there a way to programatically determine if a font file has a specific Unicode Glyph?

I'm working on a project that generates PDFs that can contain fairly complex math and science formulas. The text is rendered in Times New Roman, which has pretty good Unicode coverage, but not ...
38
votes
8answers
21k views

Best way in asp.net to force https for an entire site?

About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the ...
8
votes
5answers
4k views

Making a short URL similar to TinyURL.com

I'm building a new web app that has a requirement to generate an internal short URL to be used in the future for users to easily get back to a specific page which has a very long URL. My initial ...
18
votes
5answers
33k views

ASP.NET How to get List of Groups in Active Directory

How can I get a full list of Groups in my Active Directory?
16
votes
8answers
10k views

Best Server-side .NET PDF editing library [closed]

What's the best .NET PDF editing library available, and why? It needs to be used on an IIS web-server. Specifically, I need to edit a PDF which was generated by reporting services. Factors I'm ...
21
votes
6answers
26k views

Howto? Parameters and LIKE statement SQL

I am writing a searching function, and have thought up of this query using parameters to prevent, or at least limit, SQL injection attacks. However, when I run it through my program it does not ...
7
votes
4answers
21k views

Lost Focus method for asp.net textbox?

How to write Lost focus method for asp.net text method? Please anybody have any idea to write this, share with me?
5
votes
2answers
5k views

Accessing elements of JSON object without knowing the key names

Here's my json: {"d":{"key1":"value1", "key2":"value2"}} Is there any way of accessing the keys and values (in javascript) in this array without knowing what the keys are? The reason my json ...
5
votes
8answers
6k views

Editing Web.config programatically

What is a good way to edit a Web.config file programatically? I looked into System.Xml but couldn't find any obvious answers. Incidentally, ctrl-k seems to insert a code sample tag in the input box ...
5
votes
8answers
4k views

Preventing SQL Injection in ASP.Net VB.Net

I have this code UPDATE OPENQUERY (db,'SELECT * FROM table WHERE ref = ''"+ Ref +"'' AND bookno = ''"+ Session("number") +"'' ') How would I prevent SQL Injections on this? Thanks Jamie UPDATE ...

1 2 3 4 5 40
15 30 50 per page