Edit: if someone could also suggest a more sensible way to make what I'm trying below to happen, that would also be very appreciated
I'm building an multiPage form that takes a quantity (of product) from a POST method, and displays a form sequence relying on that number. when the user goes to the next page, the form is supposed to colle...
I'm building a collapsible grouping grid using Matt Berseth's example from
mattberseth.com/blog/2008/01/building_a_grouping_grid_with.html
It has an inner listview "lvInner" nested in an outer listview "lvOuter".
I'm trying to access a textbox in lv_Inner using
Protected Sub lvInner_ItemDataBound(ByVal sender As Object, ByVal e As ...
Under ASP.NET MVC are you supposed to pick up QueryString params the same way you do in ASP.NET WebForms? or does the [AcceptVerbs(HttpVerbs.Get)] declaration get used somehow?
...
I am interested in using the ASP.NET Cache to decrease load times. How do I go about this? Where do I start? And how exactly does caching work?
...
I'm pretty new to the ASP.NET world so I'm having a little trouble coming up with the best way to configure a connection string at runtime and have the entire application use that connection string. Here is a little more info on the application that I plan to build:
Application uses Forms authentication, not Windows authentication
The...
I have a ASP.net gridview that I am trying bind to. My DataSource has a collection and 2 of the columns I am binding to are part of a subclass. My DataSource has a subclass called Staff the contains the staff information. The boundfields SurveyID and NumberOfExceptions bind fine, but the Staff.Name and Staff.Office cannot be bound.
a...
I'm gonna start building a small helper library for my web projects, but not sure what typical features that they should contain (only building web application with C# and ASP.NET). I was thinking of logging features, caching, mail etc. Any other typical features that I should put in it?
...
I have some link buttons in which I am dynamically adding a style to it. I am doing the following in a method:
LinkButton lb = new LinkButton();
lb.Style["font-weight"] = "bold";
When the another link is clicked, it should unbold the link button that is bold and bold the currently clicked one, so in the method that is doing this, I h...
When accessing an application I've written FireBug shows that each call to a web service or HTTP handler is attempted three times, and the first two times show as '401 Unauthorized' even though they return the correct result. This consistent. Every call does this same thing.
Any ideas why this happens?
...
I was wondering if anyone had a more elegant way to check for unique key exceptions from SQL in .NET other than parsing the error message? Right now I am calling the sproc in SQL, then using a try catch block in .NET. In the try catch block I parse the error message and it is a Unique key error I throw an instance of a custom error to ...
I'm trying to figure out the best way to deal with database updates with Linq. I'd like a clean way to checking database changes. I'd like to use a ruby style migration scripts, but I'd also like to keep everything in sync with the DBML file. What is the best way to do this? Do I need to write a custom solution to do this?
...
I have managed to install Team Foundation Server 2008 and I created a separate build server (which works because my builds are currently failing).
I have created a simple "Hello World" Web application (all is the standard Default.aspx page) and have it in TFS's source control system.
Previously, prior to TFS, I'd simply precompile my ...
I have a input checkbox that is checked and disabled when some JS runs on page load.
<input name="selectUnionDues" id="selectUnionDues" type="checkbox" checked="checked" runat="server" />
When I get the value of the checkbox by using (on the server side)
this.selectUnionDues.checked //returns false
I always get a false
EDIT: I am...
I have a program that displays messages posted to a forum. Right now, I am using the Response.Write method in the code behind to insert the HTML I want. But I would much rather avoid putting HTML in the code behind (because it is not in the spirit of the whole code behind/design separation feature of .NET). I would like to use a content ...
I have a scenario where I'm using a newly added ValidationSummary control. The form that I am working on has multiple buttons (customer search, submit, etc). Is it possible to fire the ValidationSummary only when the user clicks the submit button, as opposed to the customer search button?
...
Background
Given that 'most' developers are Business application developers, the features of our favorite programming languages are used in the context of what we're doing with them.
As a C# / ASP.NET Application developer, I tend to only use delegates when dealing with UI events. In fact (and this is part of my inexperience showing),...
I was wondering if the type of javascript errors can be grouped into different categories and if there was an easy way of debugging them. While working on a ASP.NET application, I generally see 2 different types of JS errors:
Ones that say "Error occurred in xx. Do you want to debug"?
Ones that show errors with a icon on the bottom lef...
Does anyone know any good solutions for automated deployment to a remote server using SFTP? I am specifically trying to deploy an asp.net mvc website to mosso. I can do it manually every time using an SFTP client, but would much rather have an automated (and consistent) way to do this.
...
We're looking to use resource files (.resx) in an ASP.NET app for storing localized values. There may be thousands of strings in total across the site which we'll want to store.
Is there a best practice for organizing values in to one or more resource files? Do you keep all values in one file? Do you separate in to multiple resource ...
Okay, this is a weird issue that I've been having with a recent project I'm undertaking.
Occasionally, my website will stop functioning and anytime an ASP page is accessed, the browser will hang for many minutes before bringing up a correctly formatted HTML page with nothing in the tag. It seems to happen whenever more than one person ...