Click here to Skip to main content
15,923,576 members
Home / Discussions / C#
   

C#

 
QuestionASCII LpSTR? Pin
Russell Jones29-May-07 23:41
Russell Jones29-May-07 23:41 
AnswerRe: ASCII LpSTR? Pin
Dave Herren30-May-07 1:21
Dave Herren30-May-07 1:21 
QuestionSub-classing Pin
Shivaprasad D Atthigode29-May-07 23:27
Shivaprasad D Atthigode29-May-07 23:27 
AnswerRe: Sub-classing Pin
MarkB77729-May-07 23:56
MarkB77729-May-07 23:56 
Questionrich textbox Pin
treah29-May-07 23:18
treah29-May-07 23:18 
AnswerRe: rich textbox Pin
JoeSharp29-May-07 23:26
JoeSharp29-May-07 23:26 
AnswerRe: rich textbox Pin
NassosReyzidis29-May-07 23:27
NassosReyzidis29-May-07 23:27 
QuestionPopulate combobox Pin
matjame29-May-07 23:00
matjame29-May-07 23:00 
Hi all.

Im trying to load data into a combo box during form load.The items Im trying to load are from a database.

Now here is my little code that gives me errors.

protected void Page_Load(object sender, EventArgs e)
{
con.ConnectionString = str;
String str1 = "Select * from Filter";
con.Open();
cm.Connection = con;
dtr = cm.ExecuteReader();
if (dtr.Read())
{
// Load FilterByKeys onto the combo box
cboExtension.Text = (dtr["FilterKey"]).ToString();<<*****Problem****
lblMessage.Text = "Good. All the values are loaded";

Thanx.


kagiso

AnswerRe: Populate combobox Pin
Christian Graus29-May-07 23:06
protectorChristian Graus29-May-07 23:06 
GeneralRe: Populate combobox Pin
matjame29-May-07 23:21
matjame29-May-07 23:21 
AnswerRe: Populate combobox Pin
sujithkumarsl29-May-07 23:15
sujithkumarsl29-May-07 23:15 
GeneralRe: Populate combobox Pin
J4amieC29-May-07 23:42
J4amieC29-May-07 23:42 
GeneralRe: Populate combobox Pin
sujithkumarsl29-May-07 23:58
sujithkumarsl29-May-07 23:58 
GeneralRe: Populate combobox Pin
J4amieC30-May-07 0:58
J4amieC30-May-07 0:58 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:48
matjame30-May-07 0:48 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode29-May-07 23:38
Shivaprasad D Atthigode29-May-07 23:38 
GeneralRe: Populate combobox Pin
matjame29-May-07 23:50
matjame29-May-07 23:50 
GeneralRe: Populate combobox Pin
sujithkumarsl30-May-07 0:00
sujithkumarsl30-May-07 0:00 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:23
matjame30-May-07 0:23 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode30-May-07 0:15
Shivaprasad D Atthigode30-May-07 0:15 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:27
matjame30-May-07 0:27 
GeneralRe: Populate combobox Pin
matjame30-May-07 0:51
matjame30-May-07 0:51 
AnswerRe: Populate combobox Pin
Shivaprasad D Atthigode30-May-07 1:24
Shivaprasad D Atthigode30-May-07 1:24 
GeneralRe: Populate combobox Pin
matjame30-May-07 1:37
matjame30-May-07 1:37 
QuestionPictureBox's and the Graphics Class Pin
MarkB77729-May-07 22:58
MarkB77729-May-07 22:58 

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.