asp.net-2.0

BINDing an ASP.NET 2.0 FormView - CheckBox or RadioButton to Oracle CHAR(1) Y/N

Oracle 9i has not BOOLEAN data type. CheckBoxes in ASP.NET are BOOLEAN controls are they not? So using a CHAR(1) column with Y or N values in the Oracle table, how do I bind to a CheckBox or CheckBoxList or RadioButton or RadioButtonList control on an ASP.NET 2.0 web form? I'm using VB, 'specially since I'm a noobie. ...

How to implement conditional formatting in a GridView

I have a GridView on my aspx page which displays a collection of objects defined by the following class public class Item { public string ItemName{get; set;} public object ItemValue{get; set;} } Then in my aspx markup I have something like this <asp:GridView ID="MyTable" runat="server"> <Columns> <asp:BoundField D...

how to use css control adapters only on specific pages

I found a control adapter for asp.net wizard control. I would like to use it on my website. But I already have a few pages that use wizard controls. I don't want those pages to use the new adapter. Is it possible? ...

which is better? asp.net 2.0 stick with isapi rewrite or upgrade to 3.5 and use mvc?

Hi all, i have a asp.net 2.0 web app that runs with ajax 1.0 extensions and isapi rewrite. I have some bugs and i am considering whether to upgrade to 3.5 and use asp.net mvc instead. Please advise. ...

How to choose an Oracle provider for .Net application?

I am trying to figure out what is the best way to connect an (existing) ASP.Net application to an Oracle database to read its dictionary information. There are simply too many possibilities: MS Data Provider for Oracle (requires 8.1.7, namespace System.Data.OracleClient) Oracle Data Provider for .NET (requires 9.2, namespace Oracle.Da...

Is there a way to programmatically set the current node of a SiteMapPath control?

My site has a few pages that point to the same child page. I'm using a xml site map that will not allow me to duplicate a SiteMapNode with the same Url. My idea was then to give my SiteMapPath control a parent node to populate itself from, and then add on a SiteMapNode of the current page. Has anyone else had to do something similar? ...

GridView scroll position/Thickbox

I'm following a example by Matt Berseth on Master Detail using Thickbox where the thickbox will refresh the UpdatePanel of the calling page to reflect changes done of the thickbox. My GridView in the calling page is a fixed header gridview and to maintain the scroll position of the gridview, I use the following code. The problem now is...

Disabling ASP.Net 2.0 Web Events

Some exceptions (web service calls) of a Web Application are not handled, because I want to show them on a Custom Error Page, passing from the Application_Exception method. Porting my Web Application to ASP.Net 2.0, these events started to appear in the Event Viewer (Web Events, new feature of ASP.Net 2.0). Is there a way to disable AS...

Is Absolute positioning a best practice or should I avoid it?

I am watching the ASP.NET learn video on http://www.asp.net/learn/3.5-videos/video-13.aspx and it is showing you can place controls on a page using Absolute positioning. I am just wondering if this is a best practice or should I avoid Absolute positioning? It seems like a nice, easy feature, but there must be some reason why it is not ...

opening a default index.html file inside a folder (asp.net)

I'm a real noob when it comes to asp.net/html. I'm developing a very basic web site using VS 2008. At this point it's mostly just html pages - no real ASP.NET I have a root index.html and then a set of folders like css/ images/ features/ etc. and index.html files inside them, so one can access it as http://www.blahblah.com/features a...

Facebook Toolkit 2.0 - Error when running it on a server with asp.net 2.0 installed

I'm getting the following error when trying to run the Facebook Connect toolkit on a server with ASP.Net 2.0 installed - I manually moved over System.Core and System.xml.Linq to the server from the 3.5 DLLs. Most other things seem to run, until I try to access the "users" object - more specifically, the getinfo() method. This is the er...

Local testing for sub-domains using Url rewriter, Asp.Net 2

I am using UrlRewriting.Net for url rewriting in Asp.Net 2 and IIS 5.1 (offline) and IIS 6 (online) The application performs the following: A url of the following nature: http://username.site.com is re-written as http://site.com/Default.aspx?user=username This works perfectly online. However, I would like to know how we could test th...

HP Quality Center API + ASP.NET

Has anyone ever used ASP or ASP.NET to connect to HPQC via the API? Where can I find some examples of this interaction? Any direction on the matter would be greatly appreciated. ...

How to avoid a database race condition when manually incrementing PK of new row.

Hi! I have a legacy data table in SQL Server 2005 that has a PK with no identity/autoincrement and no power to implement one. As a result, I am forced to create new records in ASP.NET manually via the ole "SELECT MAX(id) + 1 FROM table"-before-insert technique. Obviously this creates a race condition on the ID in the event of simulta...

Export to Excel

I would like to export a GridView to excel, which is easy enough. But above the grid, in Excel, I would like some other information for identification. Can I somehow export things other than gridviews while then putting in the gridview below? Edit: For some reason when the GridView1 is visible and I try to export, the entire page export...

[Architecture] Roles for white-label service access.

Okay, I know I'm doing something wrong - but can't figure out a better way. I am developing a website which is going to allow users to setup their own mini-websites. Something like Ning. Also, I have only 1 basic login and access to each mini website is provided (right now) via roles. So the way I am doing this right now is: Everytim...

MS .Net 2.0 Framework Oracle Data Provider OR Oracle 9i/10g/11g Data Provider?

For those that are knowledgeable in this subject (and hopefully faced a similar situation), could you please give your opinion on which provider would be best suited for a ASP.net 2.0 framework application? The main points I am looking for are: Performance Functionality From what I have gathered online, it seems the Oracle provided...

Hold COM-reference in .net web service

I have tried to make a webservice interface to a state-holding COM component. The webservice basically contains operations Start, Shutdown and GetCurrentState. Start creates a COM component, Stop releases. And GetCurrentState retrieves information from the COM component. It seemed an easy thing, but after a day it still refuses to wo...

sending javascript date to vb.net date variable

I need to pass javascript date value to vb.net function. Method iam using now: convert javascript date to string store it in hiddenfield retrieve string from hidden field in server code and parse it using date.parse the trouble is that the Javascript dateformats toString() - Sat Apr 4 22:19:00 UTC+0530 2009 toDateString() - Sat Ap...

ASP.NET 2.0 Security Membership Provider Pattern

Hi, I am creating a website in ASP MVC. Can anyone give me some advice on using the built-in membership provider in the following way. I want my users to create an Administrative account for themselves and then create accounts for the people in their organization, or the people that they want to give access to. I guess in a Database i...