Click here to Skip to main content
15,892,927 members

Comments by Amit Kumar143 (Top 12 by date)

Amit Kumar143 1-Dec-14 13:56pm View    
i think the problem is in using complex class.
because instead of returning List<TblAdmin> when i am returning a List<customeclass>
an binding in a query,it is working fine.
Do you Know How to resolve this problem,and any modification needed here to return List<TblAdmin>?
Amit Kumar143 21-Apr-14 3:13am View    
i have a Button Event,in which i have save the values.
in my database situation,when user select 1st option and click save then "A" is save in database
when user click 2nd option and click save then "B" is save in database
when user click 3rd option and click save then "C" is save in database
when user click 4th option and click save then "D" is save in database
when user click 5th option and click save then "E" is save in database

Do you have any idea how can i achieve it?
Help in this..!!
Amit Kumar143 21-Apr-14 2:46am View    
it's working fine
Thanks @Damith Weerasinghe...!!
Can u tell me how to retrieve the selected options because i have to save the selected options in database.
Amit Kumar143 21-Apr-14 2:08am View    
it is varchar
Amit Kumar143 7-Feb-14 4:33am View    
yes even i have tried it in another application and it is working well there,but don't know what is problem in my current application

in my application it reacquires to binding first listbox that is "lstboxSkill" from a dropdown selectedIndex change event
and fill second listbox from first listbox selected value

i am binding first list box using this methods
protected void ddlSkillType_SelectedIndexChanged(object sender, EventArgs e)
{
List<TblSkillType> lstSkillType = ServiceAccess.GetProxy().GetSkillType();
List<TblSkill> lstSkill = ServiceAccess.GetProxy().GetAllSkill();
List<TblSkillDetail> lstSkillDetails = ServiceAccess.GetProxy().GetAllSkillDtls();
var skill = (from a in lstSkillType
from b in lstSkill
from c in lstSkillDetails
where a.SkillTypeId == Convert.ToInt32(ddlSkillType.SelectedValue) && a.SkillTypeId == b.SkillTypeId && b.SkillId == c.SkillId
select new { b.SkillId, c.SkillName }).ToList();
lstboxSkill.DataSource = skill;
lstboxSkill.DataTextField = "SkillName";
lstboxSkill.DataValueField = "SkillId";
lstboxSkill.DataBind();
}

first list box is binding properly.
and i have written code for transfer selected item from one listbox to another in a button click event like
protected void imgbtnMoveRightListBox_Click(object sender, ImageClickEventArgs e)
{
for (int i = 0; i < lstboxSkill.Items.Count; i++)
{
if (lstboxSkill.Items[i].Selected)
{
lstBBoxSkill2.Items.Add(lstboxSkill.Items[i]);
}

}
}