Click here to Skip to main content
15,896,269 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL Escape Sequences Pin
Werdna15-Jun-04 8:36
Werdna15-Jun-04 8:36 
GeneralRe: SQL Escape Sequences Pin
Alvaro Mendez15-Jun-04 8:50
Alvaro Mendez15-Jun-04 8:50 
GeneralRe: SQL Escape Sequences Pin
Heath Stewart15-Jun-04 8:59
protectorHeath Stewart15-Jun-04 8:59 
GeneralRe: SQL Escape Sequences Pin
Kannan Kalyanaraman15-Jun-04 9:17
Kannan Kalyanaraman15-Jun-04 9:17 
GeneralRe: SQL Escape Sequences Pin
Heath Stewart15-Jun-04 9:19
protectorHeath Stewart15-Jun-04 9:19 
GeneralRe: SQL Escape Sequences Pin
vplus24-Oct-09 2:13
vplus24-Oct-09 2:13 
GeneralappDomain and dynamic loading in .net CF Pin
ppp00115-Jun-04 8:18
ppp00115-Jun-04 8:18 
GeneralDropDownList Manipulation. Pin
stan2815-Jun-04 7:24
stan2815-Jun-04 7:24 
I'm not sure if this fits in the right category under C# Forum. It's a Web-FORM, but Code-Behind is C#.

Gurus, I've been having a bit of a problem.
I want to manipulate the strings that's return
from the database.

Here's the Scenario:-

Front-End ASPX page:-
<asp:dropdownlist id="DropDownList1" Runat="server" AutoPostBack="True">

Code-Behind in c#:- (Assume i populate it on PageLoad)
I'm using DataReader.Execute to read the info retrieve from DB. And let's say the query return 1 column. "FirstName".

DropDownList1.DataSource = dbCmd.ExecuteReader();
DropDownList1.DataTextField = "FirstName";
DropDownList1.DataTextField = "FirstName";
DropDownList1.DataBind();

Now, this works right off the box. It populates the dropdownlist. But, this is not exactly what I want. There are some results from "FirstName" column that I want to manipulate. How do I do that ? In other words, how do i manually tap into the reading loop ?

Any sample code would definately help.
Please advice. Thanks


Stanley
GeneralRe: DropDownList Manipulation. Pin
Alvaro Mendez15-Jun-04 8:41
Alvaro Mendez15-Jun-04 8:41 
GeneralDLL and Copy Local Pin
goldoche15-Jun-04 7:08
goldoche15-Jun-04 7:08 
GeneralRe: DLL and Copy Local Pin
Alvaro Mendez15-Jun-04 7:52
Alvaro Mendez15-Jun-04 7:52 
GeneralRe: DLL and Copy Local Pin
Heath Stewart15-Jun-04 9:09
protectorHeath Stewart15-Jun-04 9:09 
GeneralRe: DLL and Copy Local Pin
goldoche15-Jun-04 10:50
goldoche15-Jun-04 10:50 
GeneralRe: DLL and Copy Local Pin
Heath Stewart15-Jun-04 11:13
protectorHeath Stewart15-Jun-04 11:13 
GeneralYU Pin
Anonymous15-Jun-04 6:55
Anonymous15-Jun-04 6:55 
GeneralWhen to create your own DLL Pin
SantoG15-Jun-04 6:19
SantoG15-Jun-04 6:19 
GeneralRe: When to create your own DLL Pin
Alvaro Mendez15-Jun-04 7:59
Alvaro Mendez15-Jun-04 7:59 
GeneralRe: When to create your own DLL Pin
Heath Stewart15-Jun-04 9:07
protectorHeath Stewart15-Jun-04 9:07 
GeneralRe: When to create your own DLL Pin
Alvaro Mendez15-Jun-04 10:47
Alvaro Mendez15-Jun-04 10:47 
GeneralRe: When to create your own DLL Pin
Heath Stewart15-Jun-04 11:11
protectorHeath Stewart15-Jun-04 11:11 
GeneralRe: When to create your own DLL Pin
Alvaro Mendez15-Jun-04 11:33
Alvaro Mendez15-Jun-04 11:33 
GeneralRe: When to create your own DLL Pin
Heath Stewart15-Jun-04 11:40
protectorHeath Stewart15-Jun-04 11:40 
GeneralRe: When to create your own DLL Pin
Alvaro Mendez15-Jun-04 12:44
Alvaro Mendez15-Jun-04 12:44 
GeneralHelp on Socket Programming Pin
Zaffar Kamran15-Jun-04 6:03
Zaffar Kamran15-Jun-04 6:03 
GeneralRe: Help on Socket Programming Pin
Heath Stewart15-Jun-04 6:10
protectorHeath Stewart15-Jun-04 6:10 

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.