asp.net

How do I troubleshoot "Unable to load DLL..."?

I deployed an update to my ASP.NET application and started seeing this error on my page that used foo.dll: Unable to load foo.dll. The specified module could not be found. (Exception from HRESULT: 0x8007007E) foo.dll is in my system32 and application bin directory (which are in the path environment variable). What gives? ...

Looking for a good source for learning ASP.NET MVC

I've been working with ASP.NET MVC for the last few weeks, learning as I go, from tutorials and mostly trial and error. I'm sorta groping in the dark, since I have no other experience with MVC frameworks and I'm just moving ahead blindly trying to figure things out as I move along. So, I'm looking for better, more organized source ...

Custom Control not displaying one of the properties when status changes for mouseover

A toolbar control has been created as a common user control, this control has 2 different states (checked and unchecked). When the state changes it is suppose to display a different tooltip based upon it's state. However, I can only get a single tooltip option to display even though the state changes to (checked or unchecked). Case ...

Caching with ASP.NET

I have form that displays several keywords (standard set of choice lists that changes rarely). There are about 4 such fields and each have about 20 choices or so. I'm thinking if caching the keywords will be helpful for performance / best practice? Is there a strategy for determining when to cache? ...

How to retrieve values after # in a URL using c#

I am trying to implement ajax back/forward button support and therefore writing variables after a # in my url. I would also like the user to be able to copy the url and then link back to it. Does anyone know how can I parse the url and grab my "querystrings" even though they are behind a #? ...

ASP.NET DropDownList AutoPostback Not Working - What Am I Missing?

I am attempting to get a DropDownList to AutoPostBack via an UpdatePanel when the selected item is changed. I'm going a little stir-crazy as to why this isn't working. Does anyone have any quick ideas? ASPX page: <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="true" > <ContentTemplate>...

datetime.parse and making it work with a specific format

I have a datetime coming back from an XML file in the format:- 20080916 11:02 as in yyyymm hh:ss How can i get the datetime.parse function to pick up on this? Ie parse it without erroring? (.net 2.0) Cheers ...

Help - I need a hidden field in an .NET Repeater control.

The catch is this is a .NET 1.0 project and there is no hidden field control... So this is out of the question: <asp HiddenField Ruant="server" ID="hdn" /> I vaguely remember some type of HtmlHiddenInput class that allowed similar functionality...does anybody know how to do this? Thanks. ...

asp.net - build linkedin style photo cropper

On linkedin.com, the photo that you can manage for your profile has the ability to select a "region" from the photo to crop and use as your profile picture. I assume that it uploads the original picture to a server, and then stores the x,y of the top left corner, and the width and height. Does anyone know of a web example of something ...

Handling Web User Control error on asp.net page

How do you handle the Web User Control event? I notice my custom web user control have a event call OnError but it never fire when i tweak the control to fail. The control is basically a custom gridview control. I search for web user control event handling over the net but i haven't find a article that address what i looking for. Can som...

ASP.Net Script Controls, Returning False from OnClick, and FireFox

Short Explanation: I have a script control that has the click event being handled in the script file. The Click handler pops up a confirm prompt and returns the prompt's value. Problem: IE sees the return False (Cancel is selected on the confirm box) and there is no postback. Firefox ignores this and fires the postback. Solution...

Variable/Ram viewer for .NET?

I'm using Office Automation in .NET. It is leaving behind the excel.exe program. I know the fix - it is all about explicitely defining the variables. Once defined, I can properly de-allocate the ram and the GC will clean them up. The problem is, I have literally thousands of lines of code to go through. So I'm wondering: Is there some s...

ASP.NET MVC Ajax.ActionLink with Image

Hi Everyone, is there anyway to have an image act as an ajax actionlink? I can only get it to work using text. Thanks for your help! ...

CheckBoxField in GridView won't bind to a string field in the database

How do I bind a CheckBoxField in my GridView to an underlying db field that is a string. The string is either "1" or "0" but all the same the GridView won't willingly bind to it. What do I do. What is the best way to have a checkbox in the GridView and have it get and set the string in the database (or the underlying datasource). ...

Google (Search Engine) Indexing advice for asp.net pages

I am working on a course leaflet system for the college I work at, leaflets are stored in a database with primary key course_code. I would like the leaflets ideally to get indexed by google how would I achieve this assuming i develop the system in asp.net 2.0. I understand part of getting it indexed is to pass the variables around in t...

HTML Sanitizer for .NET

I'm starting a project that will be public facing using asp.net mvc. I know there are about a billion php, python, and ruby html sanitizers out there, but does anyone have some pointers to anything good in .net? What are your experiences with what is out there? I know stackoverflow is a site done in asp.net that allows freeform HTML, wha...

How can I determine the element type of a matched element in jQuery?

I'm matching ASP.Net generated elements by ID name, but I have some elements which may render as text boxes or labels depending on the page context. I need to figure out whether the match is to a textbox or label in order to know whether to get the contents by val() or by html(). $("[id$=" + endOfIdToMatch + "]").each(function () { ...

Decent low-footprint web server? (.net)

I'm looking for a server which is: Lightweight, Non-buggy, Supports .NET, Runs on client for testing, Runs on Windows Cassinni is too buggy, IIS is too expensive, Apache is hard to setup, XSP is linux only Visual Web Developer's is cutting it. ...

Recognize URL in plain text

This should be easy, but I'm not sure how to best go about it. I have a WinForms app that lets the user type in long descriptions. Occaisionally, they would type in URLs, and the RichTextBox would recognize them and make them clickable when displayed. I'm moving the app to the web, and I'm not sure how to make those same URLs clickable....

Buttons in gridview control - VS2-2008

I have a gridview control which displays data returned from DB. The datakey property of the gridview is bound to the ID column of the DB Each record in the GV had 2 buttons and one Checkbox. When either of these controls is clicked I want to obtain the row that this was clicked on and perform action depending on which control was clicke...