Click here to Skip to main content
15,887,822 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Regarding machine Round question on Ado.net Pin
PIEBALDconsult29-Oct-14 4:19
mvePIEBALDconsult29-Oct-14 4:19 
AnswerRe: Regarding machine Round question on Ado.net Pin
Richard MacCutchan29-Oct-14 5:51
mveRichard MacCutchan29-Oct-14 5:51 
QuestionGridview in asp.net Pin
Member 1116162517-Oct-14 6:50
Member 1116162517-Oct-14 6:50 
AnswerRe: Gridview in asp.net Pin
Eddy Vluggen17-Oct-14 7:40
professionalEddy Vluggen17-Oct-14 7:40 
GeneralRe: Gridview in asp.net Pin
Member 1116162517-Oct-14 17:55
Member 1116162517-Oct-14 17:55 
GeneralRe: Gridview in asp.net Pin
Eddy Vluggen19-Oct-14 3:22
professionalEddy Vluggen19-Oct-14 3:22 
SuggestionRe: Gridview in asp.net Pin
Richard Deeming20-Oct-14 1:42
mveRichard Deeming20-Oct-14 1:42 
GeneralRe: Gridview in asp.net Pin
vishal gawai14-Nov-14 4:27
vishal gawai14-Nov-14 4:27 
Please try following:

1. Mention the Text field and Value field for drop down list

SqlConnection con = new SqlConnection(Class1.Con_String);
con.Open();
SqlCommand cmd = new SqlCommand("Select Department_ID,Department from Department_Master", con);
SqlDataReader dr = cmd.ExecuteReader();
ddldept.DataSource = dr;
ddldept.DataTextField = "Department"
ddldept.DataValueField = "Department_ID";

ddldept.DataBind();
con.Close();
bindGrid();

2. You are missing specifying the datasource for Designation Master DDL. Please try following:

SqlConnection con1 = new SqlConnection(Class1.Con_String);
con1.Open();
SqlCommand cmd1 = new SqlCommand("Select Designation_ID,Designation from Designation_Master", con1);
SqlDataReader dr1 = cmd1.ExecuteReader();
ddldesg.Datasource = dr1;
ddldesg.DataTextField = "Designation"
ddldesg.DataValueField = "Designation_ID";

ddldesg.DataBind();
con1.Close();
QuestionIP CAM WITH VB.NET Pin
ssc.noman13-Oct-14 21:30
ssc.noman13-Oct-14 21:30 
SuggestionRe: IP CAM WITH VB.NET Pin
Richard MacCutchan14-Oct-14 4:58
mveRichard MacCutchan14-Oct-14 4:58 
QuestionConverting Excel application into a Web Service Pin
Sujana Alluru13-Oct-14 2:56
professionalSujana Alluru13-Oct-14 2:56 
AnswerRe: Converting Excel application into a Web Service Pin
ZurdoDev13-Oct-14 3:28
professionalZurdoDev13-Oct-14 3:28 
GeneralRe: Converting Excel application into a Web Service Pin
Sujana Alluru13-Oct-14 4:08
professionalSujana Alluru13-Oct-14 4:08 
AnswerRe: Converting Excel application into a Web Service Pin
ZurdoDev13-Oct-14 4:09
professionalZurdoDev13-Oct-14 4:09 
GeneralRe: Converting Excel application into a Web Service Pin
Eddy Vluggen13-Oct-14 8:26
professionalEddy Vluggen13-Oct-14 8:26 
AnswerRe: Converting Excel application into a Web Service Pin
Gerry Schmitz13-Oct-14 11:14
mveGerry Schmitz13-Oct-14 11:14 
GeneralRe: Converting Excel application into a Web Service Pin
Sujana Alluru13-Oct-14 21:09
professionalSujana Alluru13-Oct-14 21:09 
GeneralRe: Converting Excel application into a Web Service Pin
Gerry Schmitz13-Oct-14 21:49
mveGerry Schmitz13-Oct-14 21:49 
GeneralRe: Converting Excel application into a Web Service Pin
Sujana Alluru14-Oct-14 0:10
professionalSujana Alluru14-Oct-14 0:10 
GeneralRe: Converting Excel application into a Web Service Pin
Gerry Schmitz14-Oct-14 11:29
mveGerry Schmitz14-Oct-14 11:29 
AnswerRe: Converting Excel application into a Web Service Pin
Pete O'Hanlon13-Oct-14 21:21
mvePete O'Hanlon13-Oct-14 21:21 
GeneralRe: Converting Excel application into a Web Service Pin
Sujana Alluru14-Oct-14 19:56
professionalSujana Alluru14-Oct-14 19:56 
GeneralRe: Converting Excel application into a Web Service Pin
Jose Segarra21-Oct-14 3:25
Jose Segarra21-Oct-14 3:25 
GeneralRe: Converting Excel application into a Web Service Pin
Sujana Alluru2-Dec-14 19:42
professionalSujana Alluru2-Dec-14 19:42 
QuestionMessage Closed Pin
11-Oct-14 4:15
Member 1098252111-Oct-14 4:15 

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.