asp.net

how to close connection/datareader when using SqlDataSource or ObjectDataSource

Hi, during beta testing we discovered connection pooling error messages . Therefore I have been going through the code and closing down the SqlDataReader objects wherever they have been left unclosed. What I need to know is how to close a datareader (or if there is a need at all to close) that is specified in the SelectStatement attribu...

ASP.NET Repeater ItemDataBound happening AFTER PreRender event?

I have a repeater control on an ASP.NET 2.0 web form. As I understanding it, all of the page's data-bound controls fire their binding events somewhere in between the Page_Load and the Page_PreRender events. However, my repeater's ItemDataBound event appears to be happening AFTER the PreRender event. How is this so and is there any ...

How do I create a Google Sitemap for my ASP.NET website?

I'm using DotNetNuke, so the whole site is basically dynamically driven and I'm clueless to how to go about creating a Google sitemap for it. Any help will be greatly appreciated. Thanks, John ...

convert Request.QueryString toDatetime and then fetch using datacontext in linq in c# asp.net

Hi, I wanna get the Timedate value from another page using request.querystring and then use it an query to compare and pull up the matching datas. The function for the query in linq is: protected void User_Querytime() { DataClasses2DataContext dc1 = new DataClasses2DataContext(); String Data = Request.QueryString["TimeO...

RequiredFieldValidator - how to get rid of the default red font color

I can't seems to change the default color of the required field validator. In the source it is: <span class="required">*</span> <asp:RequiredFieldValidator ID="valReq_txtTracks" runat="server" ControlToValidate="txtTracks" Display="Dynamic" /> Here's what I have in my .skin file: <asp:RequiredFieldValidator runat="server" ...

Best ASP.NET ConfigSection to DB Schema

Previously, settings for deployments of an ASP.NET application were stored in multiple configuration files under the Web.config config sections using a KEY/VALUE format. We are moving these 'site module options' to the database for a variety of reasons. Here are the two options we are mulling over at the moment: 1. A single table with...

Remote machines cannot connect to Visual Studio web server

Hi guys, I remember when MS was developing Cassini - I believe they rolled it into VS 05/08, so I think this is a Cassini web server question. I am using Windows XP with Visual Studio 2008, and find it quite inconvenient when I want to test a web page/styling with multiple browsers and multiple OSes. Right now I have to deploy the c...

Cannot bind to the property or column Name on the DataSource. Parameter name: dataMember

This is the exception that I'm getting when I'm trying to bind to a System.Type.Name. Here is what I'm doing: this.propertyTypeBindingSource.DataSource = typeof(System.Type); /* snip */ this.nameTextBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.propertyTypeBindingSource, "Name", true)); Is there some trick with...

How best to "turn off" a web page from another part of the application?

We have a web application that manages inventory for our computer support group. One of the things that we will be using this for is to drive a "Computers Currently In Use" map for our larger computer labs so that users can find an open computer more easily (the lab in our Main library has around 150 computers). The image used for the ...

Using ASP.Net, is there a programmatic way to take a screenshot of the browser content?

I have an ASP.Net application which as desired feature, users would like to be able to take a "snapshot". While I know this can be simulated, it would be really great to have a way to take a URL (or the current rendered page), and turn it into an image which can be stored on the server. Is this crazy? Is there a way to do it? If so, ...

What is the proper way to maintain state in a custom server control?

This works, but is it the proper way to do it??? I have a custom server control that has an [input] box on it. I want it to kinda mimic the ASP.NET TextBox, but not completely. When the textbox is rendered i have a javascript that allows users to select values that are then placed in that input box. I have a public text property on t...

Saved Search Options in ASP.net

I am having an ASP.net page with some 15 controls and each using as filter filter parameter query for search (Select * from Table 1 where (all control values). I need to saved these searches on clicking the button. (I need to hold this in a table what are the things that are searched by user. Please tell me which is the best way to impl...

ASP.NET and IIS6: trapping ALL application errors

Our groups legacy ASP 3.0 web apps were able to take advantage of a global error file by setting up a custom error file within IIS's Custom Error's tab. I'm unable to find a similar solution for ASP.NET apps. Does anyone know if there is a way to have a centralized "Error.aspx" page (for example) that will trap errors for an entire a...

Know of a good page load progressbar for my ASP.net application?

Just wondering if anyone has seen any usable progress bar for C# .net apps. My app takes about 20-60 secs to load and I would love to show users a progress bar while they wait. I saw this one but the sample site doesn't seem to work which doesn't inspire confidence. ...

How to store web page content in sql server

In general at a fairly high level, and without building an entire CMS, what do I need to know about storing web page content (e.g. say several hundred articles and text up to approx. 2500 words in length) and photos in sql server in a templated web page design? Do I store the actual content in the db or store in the files on the server ...

How to put underline for access key for <asp:button> ?

How to put underline for first letter for access key for ? ...

Linq to Entities with WCF

Hi there, I have all my entities in a seperate project in my edmx file and I expose them to my client application using a WCF service. That means I don't have to give my client app a direct link to the project that contains the edmx file. That would be bad because it contines the object to query the database with. But only the entitie...

ASP.NET MVC ready for business applications (integrating 3rd party controls/components)?

My company has developed (and still continues to develope) a large ASP.NET business application. Our platform is ASP.NET 2.0 using some ASP.NET Ajax. We're extensively using third-party components, like webgrids, comboboxes, treeviews, calendar and scheduling controls etc. Now, I don't know a lot of ASP.NET MVC and I'd like to know if t...

PDFCreator and ASP.NET

Has anyone managed to get PDFCreator running on an ASP.NET 2.0 website ? On my development machine with Visual Studio webserver, it works just fine after following this procedure : create a com interop dll with tlbimp reference this dll write some code to use it However, when I deploy it to our test server, it fails miserably with t...

Returning data from ASP.net to an ExtJS Grid

I've been given a prototype/mockup of a grid written in html and javascript (via ExtJS) that I now need to implement within an ASP.net web application. Does anyone have any pointers as to how to pass data to the grid (to a GroupingStore, specifically). I'd rather not have a proliferation of web services or helper pages returning XML/JS...