Click here to Skip to main content
15,887,436 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get motherboard serial number Pin
Dave Kreskowiak30-Sep-05 8:21
mveDave Kreskowiak30-Sep-05 8:21 
GeneralRe: Get motherboard serial number Pin
Willem Le Roux2-Oct-05 23:17
Willem Le Roux2-Oct-05 23:17 
GeneralRe: Get motherboard serial number Pin
Dave Kreskowiak6-Oct-05 11:52
mveDave Kreskowiak6-Oct-05 11:52 
GeneralRe: Get motherboard serial number Pin
Willem Le Roux6-Oct-05 22:55
Willem Le Roux6-Oct-05 22:55 
GeneralRe: Get motherboard serial number Pin
Dave Kreskowiak7-Oct-05 16:07
mveDave Kreskowiak7-Oct-05 16:07 
QuestionHow To make Toolbar Pin
A.Grover29-Sep-05 23:18
A.Grover29-Sep-05 23:18 
AnswerRe: How To make Toolbar Pin
| Muhammad Waqas Butt |29-Sep-05 23:45
professional| Muhammad Waqas Butt |29-Sep-05 23:45 
QuestionCrystal Report selection Problem Pin
| Muhammad Waqas Butt |29-Sep-05 22:52
professional| Muhammad Waqas Butt |29-Sep-05 22:52 
//Below is my code, I want to show employee detail on the bases of employee id.

//I use pubs database of SQL Server [Winform C#.Net]
=========================================================
<b>//Crystal Report Object
CrystalReport1 cp = new CrystalReport1();
//
private void Form2_Load(object sender, System.EventArgs e)
{
try
{
SqlConnection con = new SqlConnection("server=SK- WAQAS;uid=****;pwd=***;database=pubs");
SqlDataAdapter dsemp = new SqlDataAdapter("Select * From employee where emp_id=" + textBox1.Text.Trim(), con);
DataSet ds = new DataSet();
dsemp.Fill(ds,"employee");
cp.SetDataSource(ds);
//cp.SetParameterValue("emp_id",”AMD15433FDBT39435M”);
con.Close();
}
catch(Exception ce)
{
MessageBox.Show(ce.Message);
}
}</b>
=====================================================
Please tell where i do wrong.


|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
QuestionWin32 api Pin
rakesh_nits29-Sep-05 22:07
rakesh_nits29-Sep-05 22:07 
AnswerRe: Win32 api Pin
Anonymous30-Sep-05 8:18
Anonymous30-Sep-05 8:18 
QuestionStandard Deviation Graph through GDI+ in .NET? Pin
parvinder sehrawat29-Sep-05 22:04
parvinder sehrawat29-Sep-05 22:04 
AnswerRe: Standard Deviation Graph through GDI+ in .NET? Pin
Stefan Troschuetz29-Sep-05 23:22
Stefan Troschuetz29-Sep-05 23:22 
GeneralRe: Standard Deviation Graph through GDI+ in .NET? Pin
parvinder sehrawat29-Sep-05 23:46
parvinder sehrawat29-Sep-05 23:46 
GeneralRe: Standard Deviation Graph through GDI+ in .NET? Pin
Stefan Troschuetz30-Sep-05 1:13
Stefan Troschuetz30-Sep-05 1:13 
GeneralRe: Standard Deviation Graph through GDI+ in .NET? Pin
Jon Rista1-Oct-05 8:23
Jon Rista1-Oct-05 8:23 
QuestionLimiting to 2 decimal places Pin
binglin29-Sep-05 21:40
binglin29-Sep-05 21:40 
AnswerRe: Limiting to 2 decimal places Pin
S. Senthil Kumar29-Sep-05 23:14
S. Senthil Kumar29-Sep-05 23:14 
AnswerRe: Limiting to 2 decimal places Pin
Stefan Troschuetz29-Sep-05 23:20
Stefan Troschuetz29-Sep-05 23:20 
AnswerRe: Limiting to 2 decimal places Pin
esjq30-Sep-05 9:28
esjq30-Sep-05 9:28 
QuestionHigh Memory Usage Pin
Heinz_29-Sep-05 19:52
Heinz_29-Sep-05 19:52 
AnswerRe: High Memory Usage Pin
S. Senthil Kumar29-Sep-05 23:26
S. Senthil Kumar29-Sep-05 23:26 
GeneralRe: High Memory Usage Pin
Heinz_30-Sep-05 8:40
Heinz_30-Sep-05 8:40 
AnswerRe: High Memory Usage Pin
Daniel Grunwald30-Sep-05 3:59
Daniel Grunwald30-Sep-05 3:59 
GeneralRe: High Memory Usage Pin
Heinz_30-Sep-05 8:48
Heinz_30-Sep-05 8:48 
GeneralRe: High Memory Usage Pin
Dan Neely30-Sep-05 10:06
Dan Neely30-Sep-05 10:06 

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.