Click here to Skip to main content
15,909,332 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help meeeee!!!! Pin
Abhijit Jana6-Dec-07 18:02
professionalAbhijit Jana6-Dec-07 18:02 
QuestionNew to C# .Problem while accessing sql server Pin
mohanallam6-Dec-07 17:28
mohanallam6-Dec-07 17:28 
GeneralRe: New to C# .Problem while accessing sql server Pin
I.explore.code6-Dec-07 17:43
I.explore.code6-Dec-07 17:43 
GeneralRe: New to C# .Problem while accessing sql server Pin
mohanallam7-Dec-07 16:54
mohanallam7-Dec-07 16:54 
GeneralSetting value in installer and reading at runtime Pin
atuldeore6-Dec-07 17:26
atuldeore6-Dec-07 17:26 
GeneralRe: Setting value in installer and reading at runtime Pin
Jacky Yiu6-Dec-07 17:48
Jacky Yiu6-Dec-07 17:48 
GeneralRe: Setting value in installer and reading at runtime Pin
I.explore.code6-Dec-07 17:52
I.explore.code6-Dec-07 17:52 
Generalquestion on database query Pin
angels7776-Dec-07 16:57
angels7776-Dec-07 16:57 
hi.. the bottom code work very well.. but i have a few questions here..
for that code below..
1) i did not declare any connectionstring
2) i did not call any sqlcommand query e.g. "select name from ..."

is the way i do below good or bad? will it make things slow? because i did not specify the query "select name from.." .. , so the system will take time to take out all the data ?? instead of specify to my query?

there are so many ways to do that .. e.g databinding to textbox.. so compared to this below?


     void call_textbox()<br />
        {<br />
            DataTable store = new DataTable();<br />
            father.Fill(son.table);<br />
            store = son.table;<br />
<br />
            if (listBox1.SelectedIndex != -1)<br />
            {<br />
                //MessageBox.Show(store.Rows[listBox1.SelectedIndex].ItemArray[0].ToString());<br />
                foreach (DataRow row in store.Rows)<br />
                {                    <br />
                    if (row[0].ToString() == store.Rows[listBox1.SelectedIndex].ItemArray[0].ToString())<br />
                    {<br />
                        name.Text = row[1].ToString();<br />
                        address.Text = row[2].ToString();<br />
                        phone.Text = row[3].ToString();<br />
                    }<br />
                  <br />
<br />
                }<br />
            }<br />
<br />
        }

GeneralRe: question on database query Pin
Jacky Yiu6-Dec-07 17:44
Jacky Yiu6-Dec-07 17:44 
GeneralRe: question on database query Pin
angels7776-Dec-07 18:06
angels7776-Dec-07 18:06 
GeneralRe: question on database query Pin
Jacky Yiu6-Dec-07 22:15
Jacky Yiu6-Dec-07 22:15 
GeneralRe: question on database query Pin
angels7776-Dec-07 23:09
angels7776-Dec-07 23:09 
GeneralRe: question on database query Pin
angels7777-Dec-07 19:50
angels7777-Dec-07 19:50 
GeneralRe: question on database query Pin
angels7779-Dec-07 0:43
angels7779-Dec-07 0:43 
GeneralRe: question on database query Pin
Jacky Yiu9-Dec-07 15:11
Jacky Yiu9-Dec-07 15:11 
Generalwhy update data is wrong.. Pin
angels7776-Dec-07 16:33
angels7776-Dec-07 16:33 
GeneralRe: why update data is wrong.. Pin
Jacky Yiu6-Dec-07 17:36
Jacky Yiu6-Dec-07 17:36 
GeneralRe: why update data is wrong.. Pin
angels7776-Dec-07 18:18
angels7776-Dec-07 18:18 
GeneralRe: why update data is wrong.. Pin
angels7776-Dec-07 18:55
angels7776-Dec-07 18:55 
GeneralRe: why update data is wrong.. Pin
Jacky Yiu6-Dec-07 22:07
Jacky Yiu6-Dec-07 22:07 
General[Message Deleted] Pin
rameshdontagani6-Dec-07 16:27
rameshdontagani6-Dec-07 16:27 
GeneralRe: simple selec tquery Pin
Michael Sync6-Dec-07 16:38
Michael Sync6-Dec-07 16:38 
GeneralC# Image Processing library Pin
peterchen6-Dec-07 15:38
peterchen6-Dec-07 15:38 
GeneralRe: C# Image Processing library Pin
Michael Sync6-Dec-07 16:33
Michael Sync6-Dec-07 16:33 
GeneralClose 'X' Pin
RussBus6-Dec-07 12:22
RussBus6-Dec-07 12:22 

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.