Click here to Skip to main content
15,905,558 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: URI Format Not Supported. Pin
vishwjeet11-Sep-09 0:03
vishwjeet11-Sep-09 0:03 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary11-Sep-09 0:06
Meetu Choudhary11-Sep-09 0:06 
GeneralRe: URI Format Not Supported. Pin
vishwjeet11-Sep-09 1:52
vishwjeet11-Sep-09 1:52 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary11-Sep-09 1:56
Meetu Choudhary11-Sep-09 1:56 
GeneralRe: URI Format Not Supported. Pin
vishwjeet11-Sep-09 2:00
vishwjeet11-Sep-09 2:00 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary11-Sep-09 2:03
Meetu Choudhary11-Sep-09 2:03 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary11-Sep-09 2:46
Meetu Choudhary11-Sep-09 2:46 
Questiondropdownlist in datagrid Pin
m@dhu10-Sep-09 21:31
m@dhu10-Sep-09 21:31 
please help me out quickly
i had a dropdownlist in datagrid with list items from another datagrid while im clicking on the edit link the list items are dissappearing with empty dropdownlist i want list items to be updated when i click update along with other columns following is code for edit and dropdownlist...



 protected void DataGid1_EditCommand(object source, DataGridCommandEventArgs e)
    {
        DataGid1.EditItemIndex = e.Item.ItemIndex;
        BindData();

       

    }



protected void DataGid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
    {
        SqlConnection cnn = new SqlConnection("Data Source=NETZOOM\\MADHUK_2005;Integrated Security=SSPI;Initial Catalog=master");
        
        string sql = "select dept from dptmnt";
        DataSet ds = new DataSet();
        SqlCommand cmd = new SqlCommand(sql, cnn);
        cnn.Open();
        SqlDataReader dr = cmd.ExecuteReader();


        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
        {
            DropDownList DropDownList1 = (DropDownList)((DataGridItem)e.Item).FindControl("DropDownList1");
             ListItem li = new ListItem();
             DropDownList1.Items.Add(li);
             DropDownList1.DataSource = dr;
             DropDownList1.DataValueField = "dept";
             DropDownList1.DataTextField = "dept";
             DropDownList1.DataBind();
             
         }
     }


AnswerRe: dropdownlist in datagrid Pin
Christian Graus10-Sep-09 21:44
protectorChristian Graus10-Sep-09 21:44 
AnswerRe: dropdownlist in datagrid Pin
Christian Graus10-Sep-09 21:59
protectorChristian Graus10-Sep-09 21:59 
GeneralRe: dropdownlist in datagrid Pin
m@dhu10-Sep-09 22:07
m@dhu10-Sep-09 22:07 
GeneralRe: dropdownlist in datagrid Pin
Christian Graus10-Sep-09 22:22
protectorChristian Graus10-Sep-09 22:22 
GeneralRe: dropdownlist in datagrid Pin
m@dhu10-Sep-09 22:35
m@dhu10-Sep-09 22:35 
GeneralRe: dropdownlist in datagrid Pin
Christian Graus10-Sep-09 22:39
protectorChristian Graus10-Sep-09 22:39 
GeneralRe: dropdownlist in datagrid Pin
m@dhu10-Sep-09 22:44
m@dhu10-Sep-09 22:44 
GeneralRe: dropdownlist in datagrid Pin
Christian Graus10-Sep-09 22:48
protectorChristian Graus10-Sep-09 22:48 
GeneralRe: dropdownlist in datagrid Pin
m@dhu10-Sep-09 22:56
m@dhu10-Sep-09 22:56 
GeneralRe: dropdownlist in datagrid Pin
Christian Graus11-Sep-09 0:54
protectorChristian Graus11-Sep-09 0:54 
QuestionHow to get Mac Address. ?? Pin
Priyagdpl10-Sep-09 21:07
Priyagdpl10-Sep-09 21:07 
AnswerRe: How to get Mac Address. ?? Pin
Manas Bhardwaj10-Sep-09 21:40
professionalManas Bhardwaj10-Sep-09 21:40 
AnswerRe: How to get Mac Address. ?? Pin
Abhishek Sur10-Sep-09 22:24
professionalAbhishek Sur10-Sep-09 22:24 
QuestionFrench language support in aspx page Pin
GauravKP10-Sep-09 20:51
professionalGauravKP10-Sep-09 20:51 
AnswerRe: French language support in aspx page Pin
Christian Graus10-Sep-09 20:54
protectorChristian Graus10-Sep-09 20:54 
Questionbreak point not working Pin
myinstincts10-Sep-09 20:25
myinstincts10-Sep-09 20:25 
AnswerRe: break point not working Pin
N a v a n e e t h10-Sep-09 20:52
N a v a n e e t h10-Sep-09 20:52 

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.