Click here to Skip to main content
15,912,977 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: There is not row at position 0 Pin
Abhishek Sur14-Aug-09 0:14
professionalAbhishek Sur14-Aug-09 0:14 
QuestionJS not working in Mozila Pin
janani1313-Aug-09 23:21
janani1313-Aug-09 23:21 
AnswerRe: JS not working in Mozila Pin
padmanabhan N13-Aug-09 23:24
padmanabhan N13-Aug-09 23:24 
AnswerRe: JS not working in Mozila Pin
Parwej Ahamad13-Aug-09 23:27
professionalParwej Ahamad13-Aug-09 23:27 
AnswerRe: JS not working in Mozila Pin
Abhishek Sur13-Aug-09 23:29
professionalAbhishek Sur13-Aug-09 23:29 
QuestionThe Problem of DataList and ModalPopup extender Pin
123chaminda13-Aug-09 23:10
123chaminda13-Aug-09 23:10 
AnswerRe: The Problem of DataList and ModalPopup extender Pin
padmanabhan N13-Aug-09 23:22
padmanabhan N13-Aug-09 23:22 
QuestionDropdownlist Pin
mylogics13-Aug-09 23:09
professionalmylogics13-Aug-09 23:09 
hii all...
i hav populated a dropdownlist at pageload.
now i have textbnox i want to display the name in textbox according to the id selected in the dropdown list.Initially when pageloads it
displays the name in textbox according to the value in the dropdown but when i change the item in the dropdown it not works.The textbox value does not change.plz guide me.also i hav made the autopostback property of dropdown true.the code is:


protected void Page_Load(object sender, EventArgs e)
{


if (!IsPostBack)
{
PopulateDDL1();
string str = "Select * From Vendor Where(VendorID='" + DropDownList1.SelectedValue + "')";
SqlCommand cmd = new SqlCommand(str, conn);
SqlDataReader dr = null;
conn.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
TextBox1.Text = dr["VendorName"].ToString();

}
conn.Close();
}
}
public void PopulateDDL1()
{
SqlCommand cmd = new SqlCommand("Select * From [Vendor]", new SqlConnection(ConfigurationManager.ConnectionStrings["BillingSystem"].ConnectionString));
cmd.Connection.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
DropDownList1.DataSource = dr;
DropDownList1.DataValueField = "VendorID";
DropDownList1.DataTextField = "VendorID";
DropDownList1.DataBind();
cmd.Connection.Close();
}
AnswerRe: Dropdownlist Pin
padmanabhan N13-Aug-09 23:19
padmanabhan N13-Aug-09 23:19 
GeneralRe: Dropdownlist Pin
mylogics13-Aug-09 23:24
professionalmylogics13-Aug-09 23:24 
AnswerRe: Dropdownlist Pin
KhandelwalA13-Aug-09 23:20
KhandelwalA13-Aug-09 23:20 
AnswerRe: Dropdownlist Pin
Abhishek Sur13-Aug-09 23:22
professionalAbhishek Sur13-Aug-09 23:22 
Questionfocus Pin
AndyInUK13-Aug-09 23:01
AndyInUK13-Aug-09 23:01 
AnswerRe: focus Pin
Vimalsoft(Pty) Ltd13-Aug-09 23:04
professionalVimalsoft(Pty) Ltd13-Aug-09 23:04 
AnswerRe: focus Pin
padmanabhan N13-Aug-09 23:07
padmanabhan N13-Aug-09 23:07 
AnswerRe: focus Pin
Coding C#14-Aug-09 2:23
Coding C#14-Aug-09 2:23 
Questionvideo gallery problem... Pin
RajpootRohan13-Aug-09 22:46
professionalRajpootRohan13-Aug-09 22:46 
AnswerRe: video gallery problem... Pin
padmanabhan N13-Aug-09 23:01
padmanabhan N13-Aug-09 23:01 
GeneralRe: video gallery problem... Pin
RajpootRohan13-Aug-09 23:55
professionalRajpootRohan13-Aug-09 23:55 
GeneralRe: video gallery problem... Pin
padmanabhan N13-Aug-09 23:57
padmanabhan N13-Aug-09 23:57 
GeneralRe: video gallery problem... Pin
Coding C#14-Aug-09 2:26
Coding C#14-Aug-09 2:26 
Questioninput string was not in a correct format Pin
haleemasher13-Aug-09 22:33
haleemasher13-Aug-09 22:33 
AnswerRe: input string was not in a correct format [modified] Pin
Vimalsoft(Pty) Ltd13-Aug-09 22:55
professionalVimalsoft(Pty) Ltd13-Aug-09 22:55 
GeneralRe: input string was not in a correct format Pin
haleemasher13-Aug-09 23:14
haleemasher13-Aug-09 23:14 
GeneralRe: input string was not in a correct format Pin
Vimalsoft(Pty) Ltd13-Aug-09 23:39
professionalVimalsoft(Pty) Ltd13-Aug-09 23:39 

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.