Hi,
I want to set multiple datafields from a dataset to a single boundcolumn in my gridview, but I can't see any easy way to do this since the DataField property of the boundcolumn takes a single string that maps 1-to-1 to the relevant column in the dataset. I want to map three columns from my dataset to a single column in my DataGrid - is there any easy way I can do this, or am I going to have to get complicated?
*Please...
User Profile
Collapse
-
DataGrid - How to set multiple datafields to a single bound column?
Last edited by DrBunchman; Jun 25 '08, 12:13 PM. Reason: Moved to .NET Forum - ASP Forum for Classic ASP only -
Look up on Google the IF and CASE statements. In your case you would need to do something like:
Code:IF (SELECT COUNT(*) FROM [tablename]) <= 2 INSERT INTO [tablename] ([column]) VALUES 'aaa'
-
How to use WHERE IN syntax conditionally
Hi,
I've got a dynamic table called @v_filter_table that is populated with some rows, ala:
Code:row_id location_id 1 102 2 102 3 104
Code:SELECT {...} FROM {...} WHERE mytable.row_id IN (SELECT
-
-
I'm not sure I quite understand - I mean, I see what you're saying - I just can't see how a class that seems logically identical to System.Web.UI.C ontrol (bar the name), cannot cast objects that are of type System.Web.UI.C ontrol?...Leave a comment:
-
You can't really do it server-side, since the client is responsible for managing which windows are open and which are closed - and to ackle client-side operations (like closing one browser window and opening another one) you'd need to use JavaScript.
Because web browsing is event based (E.g. the server sends the client browser a page, the client browser does something with it - e.g. fill out a few input boxes, and then submits it...Leave a comment:
-
Can't cast from System.Web.UI.Control to derived type - Why?
Hi,
I've got a function that returns an object of type: system.web.ui.c ontrol - Now I've created a very simple class, derived from system.web.ui.c ontrol:
Code:Public Class MyTest Inherits System.Web.UI.Control End Class
-
Ah okay, that makes sense, what would be the correct approach to scope the event handlers?Leave a comment:
-
Raised event not using correct handler
Hi,
I've got an issue where I've created a prototype that contains 2 methods, and a few private variables. The first method simply registers the second method to be an event handler for the mousedown event.
This prototype is instanced for each instance of a server control. Basically it's an asp panel and for each one on the aspx webpage, an instance of my JavaScript prototype is created. Okay, so, when the prototype is instanced...
No activity results to display
Show More
Leave a comment: