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...
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...
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...
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'...
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...
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 ...
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...
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...
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 ?
...
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...
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 ...
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...
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...
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?
...
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 on the same asp.net web page during a postback without using session variables? Hidden fields could be an option, anything else?
...
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...
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...
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 =
...
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'...