asp.net

RhinoMocks Event Subscription

Being new to RhinoMocks and Unit Testing, I have come accross an issue that I cannot seem to find a resolution to (no matter how much documentation I read). The issue is this: I have created an Interface that exposes 5 Events (to be used for a view in ASP.NET and the MVP Supervisory Controller pattern..... I know, I should be using M...

How do I make an ASP.NET 2.0 Web App compile like a 1.1 App?

When compiling an ASP.NET 2.0 App names MySite for deployment I get a series of assemblies that resemble something like "bin/APP_xyz123.dll", "bin/APP_xyz456.dll" and so on. Everything works fine but if I make a small code change I have to update the entire site because the "_xyz123" and "_xyz456" part of the assembles names change wit...

Best Practices for 3 Tier Development

Does anyone know of any documentation by MS or someone else that lays out the best practices for developing a 3 tier architecture in ASP.NET. I am in the process of trying to convince my boss that the current architecture needs rethought and reworked to provide a flexible and reusable system. I have found a lot of generic documentation...

web service and nunit testing

I have created a console application that calls a method on a webservice. I have accessed the webservice and get the response back from the console application that I expect. When I create a separate test assembly and create some nunit tests which call the same method in the same way i get the following exception:- System.InvalidOperati...

How do you 'spec' a web server to support a given application?

I am having real trouble trying to get decent answers to my questions from VPS and dedicated hosting provider's sales people. I have a fairly simple set of requirements - how do I select a server spec / package and be confident that I have got it about right? Are there metrics to use - number of Http requests per minute for example? are ...

ASP.NET Dynamic Page Controls: Is it possible to bind events AFTER Page.Load?

I have a site that I am currently working on in ASP.NET 2.0 using the usual WebForm stuff and ASP.NET AJAX 1.0. Is it possible to bind an event to a dynamically created control after the Page.Load event? I have a table <td> element that I am dynamically creating similarly to this code: ' Create Link Button lnk.ID = String.Format("lnkD...

Debugging an ASP.NET page with QueryString values

I am trying to debug an asp.net web form that requires a value from the querystring. I just want to debug that page without having to go through the entire process to create the querystring value and sending the request. Any suggestions on how to attach a querystring value in VS2008 when I start the debugging process. NOTE: I do not ...

How do I make a DetailsView CheckBoxField visible in edit mode in IE6?

<%-- In IE6, in edit mode, the checkbox isn't visible --%> <asp:DetailsView ID="MyDetailsView" runat="server" Height="50px" Width="100%" AutoGenerateRows="False" SkinID="detailsViewSkin" DataKeyNames="SerialNumber" DataSourceID="DetailsObjectDataSource"> <asp:CheckBoxField DataField="Active" HeaderText="Active" SortExp...

Building a database driven menu with ASP.NET, JQuery and Suckerfish

Hello everyone, I'm attempting at creating a menu from a table using the Suckerfish css menu and Jquery. I'm using this as my reference: Suckerfish menu with ASP.NET and JQuery and I have it working with manually supplied links (much like in the article). Where I'm having issues is writing the recursive function to get the menu items f...

Working with the "onclick" of a server side dynamically created TableRow.

I am dynamically creating a table which I want to have clickable rows. When the user clicks on one of the rows I want to redirect to a page specific to the item of that row. My question is how on the server side can I wire the "onclick" event to a routine that will then allow me to build a url based on some of the data included in the ...

Getting edit value from ListView

I'm missing something here, but I've stared at it too long to see it. I've got a simple ListView, with the typical Edit/Update/Cancel buttons. I've got the following set up in my EditITemTemplate when the row goes into edit mode: <EditItemTemplate> <asp:Label ID="AccountIdLabel" runat="server" Text='<%#Eval("lan_id")%>' /> <asp:...

Order of fields in Dynamic Data ?

Hi, Does anybody know if it is possible to choose the order of the fields in Dynamic Data (of course, without customizing the templates of each table) ? Thanks ! ...

Control a service on a remote server from IIS

Please note: In each step I describe below I'm logged in as the same domain user account. I have a web application that controls a service on a remote machine (via ServiceController). When I connect to the website remotely and attempt to control the service, I get an InvalidOperationException: Access is denied. I know it CAN work, b...

ASP.NET 3.5 bind to xml string

With ASP.NET 3.5 I can easily bind to an xml file by using an XmlDataSource. How do I bind to an xml string instead of a file? ...

sending an email, but not now.

I'm writing an application where the user will create an appointment, and instantly get an email confirming their appointment. I'd also like to send an email the day of their appointment, to remind them to actually show up. I'm in ASP.NET (2.0) on MS SQL . The immediate email is no problem, but I'm not sure about the best way to addre...

asp.net, stateserver, NLB, session lost.

Hello everyone, 1st post on stackoverflow, hope to have great feedback :) I'm currently trying to load balance our web site. We have set up a 2 cluster NLB on windows server 2003 with IIS 6. While testing the setup, I found that sometimes, our session is lost. A day and a half later, here's the result: Yes, our machine.config both ha...

How do I refresh an ASP.NET ListView using jQuery and AJAX?

I have a page with a number of ListViews that I want users to be able to sort and page through. Rather than postback and rebind the entire page each time, I would like to do it via jQuery/AJAX selectively for the control in question. I am comfortable making the client-side call to a WebMethod in my page - my question is how do I get the ...

How to Test an AJAX Installation

Is there a simple and foolproof way we can test an AJAX installation? We have a problem in calling a webscript using AJAX form a JS file. The error is 'ServiceLib' is not defined. The error gets a few hits on Google. We've added some AJAX functionality to a customer's app. This works fine here in the office on dev machines and on our...

What's the best way to update my asp.net application / database after changing the schema?

Hi, One of the core fields present on several of my app's major database tables needs to be changed from varchar(5) to varchar(8). The list of stored procedures that depend on these tables is extremely long, not to mention the changes that would have to be made in my Data Access Layer (ASP.NET 2.0 DataSet with TableAdapters). Is there ...

Check if page is in partial rendering mode ASP.NET 2.0 + AJAX.NET

Hi, I need to determine in the page is loading in a partial rendering mode (when posting back from within an UpdatePanel). Any suggestions? ...