tag:blogger.com,1999:blog-6082652835152798567.post6379334554770135207..comments2024-03-28T21:41:58.974-07:00Comments on Sql server, .net and c# video tutorial: Data bind asp.net dropdownlist with data from the database - Part 17Unknownnoreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6082652835152798567.post-10602822822661745162019-06-11T06:07:36.921-07:002019-06-11T06:07:36.921-07:00please help me to bind a table in MS SQl with id a...please help me to bind a table in MS SQl with id and name to a KEDO dropdownlist in MVC kirthi kirthuhttps://www.blogger.com/profile/06952659776749367243noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-34126931853424549662018-08-13T08:10:15.119-07:002018-08-13T08:10:15.119-07:00 DropDownList1.DataSource =rdr ;
can you put this... DropDownList1.DataSource =rdr ; <br />can you put this line after SqlDataReader rdr = cmd.ExecuteReader();Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-79921291126969236882018-03-14T23:47:40.379-07:002018-03-14T23:47:40.379-07:00I am not getting same output sir pls tell me why?
...I am not getting same output sir pls tell me why?<br />using System;<br />using System.Collections.Generic;<br />using System.Linq;<br />using System.Web;<br />using System.Web.UI;<br />using System.Web.UI.WebControls;<br />using System.Data.SqlClient;<br />using System.Data;<br />using System.Configuration;<br /><br />namespace InventeryManagement<br />{<br /> public partial class WebForm1 : System.Web.UI.Page<br /> {<br /> protected void Page_Load(object sender, EventArgs e)<br /> {<br /> <br /> SqlConnection dp1 = new SqlConnection(ConfigurationManager.ConnectionStrings["invent"].ConnectionString);<br /> using (dp1)<br /> {<br /> dp1.Open();<br /> SqlCommand cmd = new SqlCommand("select id,StateName from IndStates", dp1);<br /> SqlDataReader rdr = cmd.ExecuteReader();<br /> DropDownList1.DataTextField = "StateName";<br /> DropDownList1.DataValueField = "id";<br /> DropDownList1.DataSource = rdr;<br /> DropDownList1.DataBind();<br /> <br /> }<br /> <br /> }<br /> }<br />}Anonymoushttps://www.blogger.com/profile/13120977913608859677noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-45828859012568830172017-12-15T05:33:56.340-08:002017-12-15T05:33:56.340-08:00Sir really i cant explain my happiness my c...Sir really i cant explain my happiness my crazyness on u ...really make more interesting video sir plzDinesh kchttps://www.blogger.com/profile/00124512567907078132noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-41993098382424128492017-11-02T03:47:11.299-07:002017-11-02T03:47:11.299-07:00Develope a asp. Net project
Develope a asp. Net project<br />Asmithttps://www.blogger.com/profile/10130140248474750009noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-31591048773128413052017-07-10T19:43:15.575-07:002017-07-10T19:43:15.575-07:00Because all code getting executed when the page is...Because all code getting executed when the page is first time load Rakesh Shindehttps://www.blogger.com/profile/09716056366547596649noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-61910761006015719722017-02-20T22:56:29.864-08:002017-02-20T22:56:29.864-08:00in the previous video we have seen that if we do n...in the previous video we have seen that if we do not use "(!IsPostBack)"<br />then its duplicating the value after clicking the button. but in this case why it is not happening ? Anonymoushttps://www.blogger.com/profile/11727630472503506606noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-15071115734502383702016-04-19T06:02:53.993-07:002016-04-19T06:02:53.993-07:00Fabbbb...........lous...for easy learning
Fabbbb...........lous...for easy learning<br />Anonymoushttps://www.blogger.com/profile/00229026358010998362noreply@blogger.comtag:blogger.com,1999:blog-6082652835152798567.post-20230849719450995452015-09-04T14:00:21.936-07:002015-09-04T14:00:21.936-07:00thanks a ton Venkat Sir!!
thanks a ton Venkat Sir!!<br />Anonymoushttps://www.blogger.com/profile/03095776138386515413noreply@blogger.com