Click here to Skip to main content
16,013,605 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Server Side Includes Pin
Gavin_Mannion12-Jun-02 1:44
Gavin_Mannion12-Jun-02 1:44 
GeneralRe: Server Side Includes Pin
SAWilde12-Jun-02 10:26
SAWilde12-Jun-02 10:26 
GeneralLimitations Pin
8-Jun-02 23:12
suss8-Jun-02 23:12 
GeneralLimitations Pin
8-Jun-02 23:12
suss8-Jun-02 23:12 
GeneralHelp Deploying ASP.Net app Pin
7-Jun-02 19:06
suss7-Jun-02 19:06 
GeneralRe: Help Deploying ASP.Net app Pin
SimonS11-Jun-02 5:46
SimonS11-Jun-02 5:46 
GeneralRe: Help Deploying ASP.Net app Pin
11-Jun-02 7:15
suss11-Jun-02 7:15 
QuestionEnumerate bound columns in a datagrid? Pin
Todd Smith7-Jun-02 12:38
Todd Smith7-Jun-02 12:38 
I have a datagrid with a lot of columns that I need to creat a sql update statement from. Most of the examples do something like the following:

TextBox hours = (TextBox)objArgs.Item.FindControl("hours");
TextBox days = (TextBox)objArgs.Item.FindControl("days");
TextBox userid = (TextBox)objArgs.Item.FindControl("userid");
.... repeat for all controls in the grid

string sql = "update userinfo set hours = " + hours.Text + ", days = " + days.Text + " where userid = " + userid.Text;


As you can imagine this take a lot of code for a table with a lot of columns.

Is there a way to enumerate the bound columns of a datagrid? Something like:

string sql = "update userinfo set ";

foreach (BoundColumn column in myDataGrid)
{
    sql += column.Name + " = " + column.Text ", ";
}


would be really nice.

Todd Smith
AnswerRe: Enumerate bound columns in a datagrid? Pin
Not Active8-Jun-02 13:55
mentorNot Active8-Jun-02 13:55 
Generaliframe and codebind Pin
Peter Marino7-Jun-02 9:31
Peter Marino7-Jun-02 9:31 
Questionis there an equivalent to C++'s #define with ASP? Pin
LukeV7-Jun-02 4:34
LukeV7-Jun-02 4:34 
GeneralPrinting from a webpage Pin
Gavin_Mannion7-Jun-02 0:47
Gavin_Mannion7-Jun-02 0:47 
GeneralRe: Printing from a webpage Pin
Remco V7-Jun-02 2:07
Remco V7-Jun-02 2:07 
GeneralRe: Printing from a webpage Pin
Gavin_Mannion7-Jun-02 3:52
Gavin_Mannion7-Jun-02 3:52 
GeneralConnection Pooling Pin
Mr. Bill6-Jun-02 13:30
Mr. Bill6-Jun-02 13:30 
QuestionBest ASP.NET sites? Pin
Todd Smith6-Jun-02 10:56
Todd Smith6-Jun-02 10:56 
AnswerRe: Best ASP.NET sites? Pin
Rama Krishna Vavilala8-Jun-02 17:04
Rama Krishna Vavilala8-Jun-02 17:04 
QuestionThirty For Free Web Hosting ??? Pin
Romeo6-Jun-02 6:20
Romeo6-Jun-02 6:20 
AnswerRe: Thirty For Free Web Hosting ??? Pin
KoalaCowboy6-Jun-02 7:02
KoalaCowboy6-Jun-02 7:02 
AnswerRe: Thirty For Free Web Hosting ??? Pin
Not Active7-Jun-02 9:38
mentorNot Active7-Jun-02 9:38 
GeneralSQL Server API problem... Pin
6-Jun-02 4:24
suss6-Jun-02 4:24 
GeneralRe: SQL Server API problem... Pin
Remco V6-Jun-02 5:53
Remco V6-Jun-02 5:53 
GeneralRe: SQL Server API problem... Pin
Orkun GEDiK6-Jun-02 8:55
Orkun GEDiK6-Jun-02 8:55 
GeneralHiding user controls vs dynamic creation Pin
Senkwe Chanda6-Jun-02 4:04
Senkwe Chanda6-Jun-02 4:04 
GeneralStupid WebForm Designer Behavior Pin
Jamie Nordmeyer5-Jun-02 12:16
Jamie Nordmeyer5-Jun-02 12:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.