I would appreciate any advice regarding tools and practices I could use to confirm my recently completed website is performing correctly.
Although I am confident the code is not producing errors and is functionally operating as it should, I have little understanding of how to identify IIS, SQL Server and Windows performance/concurrency ...
I just started tinkering with the WCF REST Starter Kit, I watched the screencasts and... I suspect I'm just being stupid. :) Out of the box (with the provided templates) I can create REST services for a singleton resource or a collection of a resource. But what about support for different kinds of resources in the same project? In exampl...
Hello,
My current project is an internal web application built using ASP.Net MVC which I am adding authentication to. I have a pre-built HTTPModule which creates a IPrincipal with the appropriate roles. If the user isn't authenticated I get a user object with the role "Public"
As this is an internal application most of the pages are pr...
What is the ASP.NET MVC equivalent to "override void Render" from ASP.NET WebForms?
Where are you opportunities to do some last-minute processing before the output is sent to the client?
For example, I wouldn't use this in production code, but illustrates cleaning up the <title> and <head> markup for an entire site when placed in the ...
Over the last few years, I can't count how many web front ends I've had to create over a relatively simple database schema to fasciliate data entry. I have to imagine that someone out there has written a framework I can use to simplify the creation of these kind of simple GUIs.
Doing a quick google, the following look like the key playe...
I have a drop down list that reads from the SQL database. depending on the option selected, I want to pull the actual 'value from the DataValueField. how do I do that?
Page_Load(object sender, EventArgs e)
{
...
ddlOption.DataTextField = "Option";
ddlOptions.DataValueField = "OptCode";
...
}
protected void ddlOptionSelectionChange(ob...
Can you recommend a good series of articles or preferably a book on how to get started with threading in general and in C# in particular?
I am primarily looking for the use of threads in console applications and in ASP.Net apps.
I understand only the very basics of threads and know that "here be dragons", so want to get a good grounding...
I am using a Drop Down List for selecting some options. Everything works fine, all I need is to change the name in the URL. Is there a way to change the URL ONLY based on the option?
Default Puma -
Default.aspx?Dept=Shoes&Type=Puma
if Nike is selected -
Default.aspx?Dept=Shoes&Type=Nike
...
I am looking for some examples of innovative uses of social networking for a purely commercial environment. I can see the uses that Twitter might have for micro blogging for anything (application event logs springs to mind amongst other ideas).
Does anyone have any further examples or ideas they may want to share for ways that we can e...
I am rendering data using Repeater control.
Let's say there are 2 fields in the data source: productName and ProductID
In the following code:
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li>
<%#Eval("productName")%> <br/>
<asp:HyperLink ID="lnkDetails...
I am fairly inexperienced with asp.net ajax and am having a problem where a javascript error is thrown (object not found).
The debugger then stops and points to a substring of my viewstate it looks something like the following (not exactly this since my viewstate is huge) with the section between the ellipses highlighted:
<input type="...
I'm working on a project that I have to implement a timetable tool.
I am using ASP.NET with C#. I tried to implement my timetable with the GridView control. I wanted to retrieve information from my database to each timeslot(box) of the gridview but instead I only managed to put the information in each line.
What control should I use to ...
I have a page designed with many HTML Tables which are hidden or displayed based on what needs to be shown at the time. There are various ASP.NET standard web controls within these tables, usually check boxes, radio button lists, text entry boxes, labels, etc. and all work just fine.
I am trying to put a DataGrid within one of the rows...
Hi,
I am pulling my ddl options from a database, which sets the order of the list. How do I keep the selected option to display when I Response.Redirect?
Page loads with Adidas -(ddl list order) Adidas, Nike, Puma
when Nike is selected -(ddl list order) Adidas, Nike, Puma
for Puma - -(ddl list order) Adidas, Nike, Puma
Right now, t...
This only occurs in Internet Explorer. I have a ListBox which is in an UpdatePanel. The ListBox has around 100 items in it and it shows 15 are visible at a time. They are sorted from 1 to 100. If I scroll to the bottom and select item number 50, item 50 stays selected, but the ListBox jumps back to the top of the List, so it is displ...
Suppose I have an ASP.NET application running across several web servers behind a load balancer:
Can I:
Force OutputCache (Page and/or Control level) to expire globally?
Force Data Cache (i.e. Cache.Insert) to expire?
Monitor ASP.NET caching usage (keys, RAM, etc) from a central location?
One possible solution would be to have every...
We are currently in the process of migrating from Server 2003 to Server 2008. We have a few different environment changes for our ASP.NET application. Our Test Environment is working perfectly at this time, but the production machine with same code is injecting Invalid Characters into the SQL.
The following is the SQL I see via SQL ...
I have a simple web form which has a couple list boxes and a search button. When the button is clicked, it returns a DataSet. If the dataset contains records, I set the asp:label which is initially set to false to true, but this is not happening. If the dataset has records and the visible property is set to true, the label still does ...
Would using linqs deferred loading be preferred when implementing pagination? or should i cache the results and make repeated calls to it as the page is selected? When the cache refreshes, I will reload the results, but the results may change and thus the pages with it.
...
I've searched and am now at a loss as to the cause of my problem.
Here's the short version of my issue.
I have a gridview, a checkbox to toggle paging of the gridview on/off and a sql datasource with select and delete queries. If paging is on, I can click delete for a row in the gridview and it runs and the page refreshes no problem. I...