Add New
I'm going crazy. I want to have a drop-down show all the names in a table, plus the first item should be "Add New". If the user selects the first item, the code-behind file redirects the user to a page that allows them to add the new entry. I was sure I saw how to do this in asp.net 4, but now I can't find it anywhere. What I remember was using a union something like this:
SELECT 0 AS ID, 'Add New' AS Name UNION it.ID, it.Name
I can't get this to work any way, and I can't find it on the web.
Can you help?
|