asp.net

Getting IE6,7,8 to reliably download office documents over ssl from our site

I have an ASP.NET web application the entire site is browsed over HTTPS using a valid commercial certificate. In one part of the application it is possible to download an Excel spreadsheet. The download is initiated from a POST (PostBack from a LinkButton) The Response is cleared (Response.Clear(), Response.BinaryWrite(bytes[])) blah et...

How do I get the GridView to render it's Selected Row with and ID instead of a Class

I am using jQuery to cache a references to the selected row in a very large table (500+) records like this: $selectedItem = $('.GridSelectedItem', $table); This table is being generated by a GridView with it's SelectedRowStyle set, which gives my row the correct css class. I would like to instead use an ID in the mark up so I can loca...

Good design and good user interface ASP.NET Ajax applications?

I like to get inspiration from using web applications that make good use of new technologies. This time I would like to check out ASP.NET based web applications that make heavy use of Ajax & Ajax Toolkit for line of business apps (data bound controls like grids). I checked out some apps at CodePlex but didn't see anything cool enough. A...

Open/close a winform application from ASP.NET

Is there a way to open/close (i.e. start-up/shut-down) a winform application via ASP.NET? I'm sure this reeks of a security violation, but the application of this technique (if it's even possible) would be in a controlled environment. I assume extra permissions would need to be granted to the web server or the web application, but I'...

namespace or class could not be found (ASP.NET WebSite "project")

I am currently trying to cleanup a bit of a corporate website that I inherited here. I managed to clean up most of the errors in the website but something is still up here. I have one masterpage that have this code : using System; using System.Data; using System.Configuration; using System.Collections; using System.ComponentModel; usi...

Tracing a content page not working

both pages just have a simple label: setting Trace="true" on the Page directive of a Content page does nothing. setting Trace="true" on the Page directive of a regular page works. setting the app wide Trace to true in web.config also does nothing to the Content page. The Master directive doesn't have a Trace attribute either. Any way ...

ASP.net textbox scrolling when disabled

Greetings, I have a form where employees enter comments in a multiline textbox with a limit of 4000 characters. I have the rows set to 8 (obviously an arbitrary number). When a supervisor looks at the comments the textbox is disabled so the employee comments cannot be modified. The problem is when the data extends below row 8. Since th...

MvcTextTemplateHost not found

I'm trying to use the T4 templates in my MVC project. This screencast suggests just copying the existing T4 templates for MVC into your solution and going from there. However when I try to compile I get this error: Error 1 Compiling transformation: The type or namespace name 'MvcTextTemplateHost' could not be found (are you missing...

Thread safe caching mechanism (not .NET built in cache) ASPX C#

I need to create an web module, with this module i need to fetch the title of some web site, after i will find that title i need to store that in thread safe caching mechanism and i need to save there the 10 lat fetched titles. Any help please ? ...

How do you set handler mapping to a directory in IIS 6.0?

I have IIS 7.0 on my development machine and IIS 6.0 on my server. On my development machine I was able to set a handler map on a directory within my site called /ViewHtml/ and I mapped it to asp.net. In my global.asax I check the request sent to asp.net for /ViewHtml/ and I serve the appropriate html file(html version of a Doc, Power P...

Why does Visual Studio 2008 ask about enabling debugging when debugging is already enabled?

I have a generated (via MSBuild) Web.config that runs prior to the Build target whose content includes, among other things, <compilation debug="true">. The generated Web.config is copied to the root and put in the Content item group. But when I run the Debug build in Visual Studio 2008 (via F5) I get the following dialog: If I select ...

How to remove AspxAutoDetectCookieSupport

Many of my url's on my site www.mysite.com/Display.aspx?ID=128 gets displayed to users as www.mysite.com/Display.aspx?ID=128&AspxAutoDetectCookieSupport=1 How can I remove AspxAutoDetectCookieSupport. I understand it has to do something with cookie in web.config, but where? And what would be the implications if I remove that. How to...

Structs Vs Classes in .NET Business Layer

I'm stuck in an "advanced" ASP.NET class right now and my instructor just put forth an opinion that I'm not sure about. (I say "advanced" because he's still using HTML tables for page layout and we just talked about the incredibly advanced topic of Master Pages. I need eye bleach!) He states that instead of, say, creating a Person class...

What is the best way to include links and code in a textbox for asp.net?

Is there a way to include links and formatted code without a 3rd party control? Is there a good third party control to use if not? ...

Asp.net Assembly Dependency Report

I am working on an asp.net web application project that has around 7 – 10 custom and commercial assemblies. When I publish to production I am looking for a tool that will generate a report that gives me list of assembly name, version, and maybe location (GAC or c:\app\library) for that project. This report can then be distributed to te...

How to send variables from one user control to another without using session?

How to send variables from one user control to another on the same asp.net web page during a postback without using session variables? Hidden fields could be an option, anything else? ...

.NET Session not working

This is a weird one, but hopefully someone can give me an idea here. I'm putting a few values into session in the Session_Start of the Global.asax in my app. Immediately after the Session_Start my base page's OnInit gets called and tries to use one of those Session variables. The weird part is sometimes it works, and then after NO chang...

Sometimes ASP.NET page does not run.

I have some silverlight code that opens a new web browser with a url to an asp.net page that does some calculations and redirects to another page that shows a pdf report. Maybe 1 out of 20 it hangs. The browser opens with the url in the addressbar and I can see the url in the logfile of the iis server so I know it got that far, but I pu...

ASP .NET - Setting the value of a DetailsView TextBox

I am attempting to use the code-behind (Page_Load or PreRender) to set a date-time textbox in a DetailsView so that it defaults to a current date-time. What I have attempted is (one of many variations): protected void DetailsView2_PreRender(object sender, EventArgs e) { ((TextBox)DetailsView2.FindControl("date_time")).Text = ...

How to use jqGrid with C#/ASP.NET and JSON.NET (and no AJAX.NET stuff)?

OK, I've been looking into this a few days and am not particularly sure what I am doing wrong. If anyone has working examples of using jqGrid with C#/ASP.NET and open source tools, please, please let me know where to find them. Any tips on finding decent documentation or tools I could use to debug this would be most appreciated too (I'...