etbani
دوشنبه 22 شهریور 1389, 09:04 صبح
سلام. من مي خوام يه node xmlرو تو dropdownlistنشون بدم به شرطي اسم اون كاربري كه login كرده رو نياره ولي اين كد همه اسامي رو مياره بايد چي كار كنم؟
اينم كد:
private void bindxml()
{
string filePath = Server.MapPath("~/xml/XMLFile.xml");
using (DataSet s = new DataSet())
{
s.ReadXml(filePath);
resiver.DataSource = s;
resiver.DataTextField = "family
";
;" resiver.DataValueField = "code
;()resiver.DataBind
}
}
اينم كد:
private void bindxml()
{
string filePath = Server.MapPath("~/xml/XMLFile.xml");
using (DataSet s = new DataSet())
{
s.ReadXml(filePath);
resiver.DataSource = s;
resiver.DataTextField = "family
";
;" resiver.DataValueField = "code
;()resiver.DataBind
}
}