asp.net

ASP.NET minify and concatenante App_Themes CSS files

Anyone know of a good technique that minify and combine CSS files from an ASP.NET App_Themes folder before including them in the page? ...

How to make Oracle Query recognizable to ASP.NET table adapter?

I have a query with a sub query in the select that needs to get a value from a certain table if it exists. I don't want to paste the query here for business reasons, but here's a simplified example of what I am trying to do: select a, b, (select x from z) as c from table where ... The query runs fine in TOAD, but when I go through t...

Can a non-embedded resource js file access resource file (.resx)?

I have used the embedded resource js file to reference the .resx file before. (by including something like [assembly: ScriptResource("Applications.Webs.Scripts.HelpModule.js", "Applications.Webs.Scripts.Resources.HelpResources", "Resource.HelpResources")] in the code behind of the page, where HelpModule.js is a embedded resource) ...

Custom file extensions IIS7

I need to create a custom file extension for asp.net, "home.file"... In IIS6, its pretty straight forward but I cannot find any documentation that will tell me how to do this in IIS7. I tried a Script Handler Mapping to map the ISPAPI.dll but it doesn't seem to redirect to the .net process because I cannot seem to attach to the process. ...

parameter injection into dynamically created UserControls without specialization

What I would like to know is if there is a technique to inject parameters into the rendering HttpContext such that it would be available to the UserControl when its page life-cycle events (Page_Init, Page_Load) are called during rendering (during HttpContext.Current.Server.Execute())? Such a technique would allow injecting data into an...

How can I get started with migrating my winforms application to ASP.NET?

I need to convert my winform VB.NET application to an ASP.NET application. My current application has 4 forms, it reads a remote XML file, and uses a datagrid to collect user input and to create a report. It is a very simple application, and I would like to know where to start to convert it to ASP.NET. ...

Custom sorting on UltraWebGrid - ASP .NET

How can I accomplish custom sorting on the Infragistics UltraWebGrid? I've tried to hadle the SortColumn event and it works, however, whenever I click the column header, the columns are sorted via JavaScript in the website before the event is fired in the server side? How do I stop the grid from sorting in the client? Thanks, Leandro F...

Using SharePoint as a data source

I would like to create a C# ASP.Net application and query (read-on) information from our companies SharePoint site. Is this possible and if so how? ...

WebResource.axd - Invalid ViewState

I keep seeing these errors in our error log. Any ideas how i can figure out where its coming from, or better yet how to fix the problem? System.Web.HttpException: Invalid viewstate. at System.Web.UI.Page.DecryptString(String s) at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context) at ...

VS2008 - Can aspx inline reference 'Cannot resolve symbol...' should stop the build?

Hi, I'm looking for a way mark a build as failed if an inline reference on an aspx page is invalid. For example: "> If SomeText doesn't exist on Model I get the following message: Cannot resolve symbol 'SomeText' However, the application builds just fine. Is there any way to halt the build or mark it as failed when references such...

How can I upload a file via ASP.NET MVC and show a progress bar?

I'm looking to allow a user to browse and upload a file to the server in my ASP.NET MVC application. If it is possible, I'm interested in adding a progress bar to show how much of the file has been uploaded. Does anyone have any examples of something like this? Should I use jQuery to do this? ...

How do I get HttpCompression (GZip) to work with URL Routing (Extensionless URLs) on IIS 6.

Okay, URL Routing is great. Extensionless URLS, SEO friendly etc. However, it seems that IIS 6 doesn't perform compression on sites that use Extensionless URLs. WildCard Mapping is on so Asp.Net can process the extensionless files, but is there any way to set these resources to be gzipped? ...

ASP.NET Website Losing Session Variables When Loging In With IE

Hi, I am trying to fix an ASP.NET application that is also written is VB and uses session variables to store the information from the logging page. In Firefox, the application runs just fine, but in IE (I am using IE 8), when I summit the logging credentials, the session variables become empty (takes me back to the logging page). The ...

Visual Studio (2008) intellisense and EditorBrowsable attribute...

I am working on a C# project that involves ASP.NET custom server controls. I have several properties, methods etc that I hide from intellisense using the... [EditorBrowsable(EditorBrowsableState.Never)] ...attribute. I also have a web project set up to test these controls. When I reference the web controls as a component in the form o...

Integrating ASP.NET applications into PHP CMS (Joomla)

We're currently working on a major overhaul for our public website, transitioning from a pretty nasty static site to a new CMS. For some reason or another, Joomla was selected as the CMS despite the company being a very heavy MS shop. This would be fine, however we have multiple ASP.NET web applications which are currently running on the...

Implementing an animated ValidationSummary with ASP.Net and jQuery

I'm just getting started with jQuery, and one of the things I want to do is build a slicker ValidationSummary for WebForms. I envision something like StackOverflow's notification system, where when you log in after awhile an area at the top of the screen animates down and maybe lets you know that you've got a new badge. If you click the...

Valid resource keys in ASP.NET .resx resource files

I am using a CMS tool to generate .resx resource files. Is there any danger in creating resource names with spaces or punctuation characters in them? If I use this syntax to get resources, it works fine: GetGlobalResourceObject("myresources", "audio,visual"); However, this causes an error with declarative resource syntax, e.g.: <as...

Http header injection test

Hi guys, How can you test Http header injection in your application. Actually I want to see what is the diff after adding enableheader=false in config and before in my application. Can somebody help me with that. Framework .NET 2.0 Language C# Platform: windows XP ...

How do you handle a thread that has a hung call?

I have a thread that goes out and attempts to make a connection. In the thread, I make a call to a third party library. Sometimes, this call hangs, and never returns. On the UI thread, I want to be able to cancel the connection attempt by aborting the thread, which should abort the hung call to the third party library. I've called ...

mixing html and C#

I have some html that is going to be in every page so i stuck it in a .cs file. This piece of html has a lot of quotes so i would prefer not to escape each of the (\"). It isnt hard to since i can use find/replace but i wanted to know. Is there a nice way to mix html and CS so i can easily generate the page? ...