User Profile

Collapse

Profile Sidebar

Collapse
yumbelie
yumbelie
Last Activity: Nov 11 '08, 11:35 AM
Joined: Dec 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • DataGrid - How to set multiple datafields to a single bound column?

    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...
    See more | Go to post
    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'
    ...
    See more | Go to post

    Leave a comment:


  • yumbelie
    started a topic How to use WHERE IN syntax conditionally

    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
    Now, I have a query that executes, and one of the filter criteria in the query filters on the contents of this table - ala:

    Code:
    SELECT {...} FROM {...} WHERE mytable.row_id IN (SELECT
    ...
    See more | Go to post

  • Aaaah. Yep, clear now. Many Thanks...
    See more | Go to post

    Leave a comment:


  • 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?...
    See more | Go to post

    Leave a comment:


  • yumbelie
    replied to Closing One WebForm from another Webform
    in .NET
    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...
    See more | Go to post

    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
    However, when I try to cast the result of the function into an instance of MyTest - it throws an 'Unable to cast' exception. I frankly can't understand why - the only...
    See more | Go to post

  • yumbelie
    replied to Raised event not using correct handler
    Ah okay, that makes sense, what would be the correct approach to scope the event handlers?
    See more | Go to post

    Leave a comment:


  • yumbelie
    started a topic Raised event not using correct handler

    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...
    See more | Go to post
No activity results to display
Show More
Working...