تبلیغات :
ماهان سرور
آکوستیک ، فوم شانه تخم مرغی ، پنل صداگیر ، یونولیت
فروش آنلاین لباس کودک
خرید فالوور ایرانی
خرید فالوور اینستاگرام
خرید ممبر تلگرام

[ + افزودن آگهی متنی جدید ]




نمايش نتايج 1 به 3 از 3

نام تاپيک: help

  1. #1
    در آغاز فعالیت
    تاريخ عضويت
    Sep 2013
    پست ها
    2

    14 help

    salam daram search minevisam moshkel daram kojae codam moshkel dare



    MyDataList.DataSource = null;
    string filter = string.Empty;
    filter += "AddressedType=" + ComboAddressType.SelectedValue + " and ";
    filter += "FormatType=" + ComboFormatType.SelectedValue + " or ";
    filter += String.Format("{0} like '% N {1} %' or ", "Name", txt_title.Text);

    filter += "Text=" + "N'"+ txt_Text.Text +"'"+ " and ";
    filter += "fullname" + DropDownList4.SelectedValue +"and";
    filter += "StatusType" + RadioButtonList2.SelectedValue + "and";
    // filter += "Status" + RadioButtonList.SelectedValue + "and";
    // DateTime date = Convert.ToDateTime(labelDate.Text);
    // labelDate.Text = string.Format("{0}{1}{2}{3}", " در تاریخ", MyDate.PersianStringFromDateTime(date), "ساعت", MyDate.TimeStringFromDateTime(date));

    if (filter.Length > 0)
    {
    filter = filter.Substring(0, filter.LastIndexOf(" and "));
    }

    DataSet dset = f.FishSelectAll(filter);
    int count = dset.Tables[0].Rows.Count;
    if (count > 0)
    {
    MyDataList.DataSource = dset;
    MyDataList.DataBind();
    lblMsg.Visible = false;
    txt_title.Text = txt_Text.Text = "";
    ComboFormatType.SelectedIndex = ComboAddressType.SelectedIndex = -1;
    }
    else
    {

    MyDataList.DataSource = null;
    MyDataList.DataBind();
    lblMsg.Visible = true;
    lblMsg.Text = TSEn.Mssage.Search;
    txt_title.Text = txt_Text.Text = "";
    ComboFormatType.SelectedIndex = ComboAddressType.SelectedIndex = -1;
    }
    }

  2. #2
    اگه نباشه جاش خالی می مونه hamedvahedi's Avatar
    تاريخ عضويت
    Feb 2006
    محل سكونت
    Tehran
    پست ها
    252

    پيش فرض

    هر چند شيوه جالبي نيست

    MyDataList.DataSource = null;
    string filter = string.Empty;
    filter += "AddressedType=" + ComboAddressType.SelectedValue + " and ";
    filter += "FormatType=" + ComboFormatType.SelectedValue + " or ";
    filter += String.Format("Name like N'%{0}%' or ", txt_title.Text);

    filter += "Text=" + "N'"+ txt_Text.Text +"'"+ " and ";
    filter += "fullname=" + DropDownList4.SelectedValue +" and ";
    filter += "StatusType=" + RadioButtonList2.SelectedValue + " and ";

    if (filter.Length > 0)
    {
    filter = filter.Substring(0, filter.LastIndexOf(" and "));
    }

    DataSet dset = f.FishSelectAll(filter);
    int count = dset.Tables[0].Rows.Count;
    if (count > 0)
    {
    MyDataList.DataSource = dset;
    MyDataList.DataBind();
    lblMsg.Visible = false;
    txt_title.Text = txt_Text.Text = "";
    ComboFormatType.SelectedIndex = ComboAddressType.SelectedIndex = -1;
    }
    else
    {

    MyDataList.DataSource = null;
    MyDataList.DataBind();
    lblMsg.Visible = true;
    lblMsg.Text = TSEn.Mssage.Search;
    txt_title.Text = txt_Text.Text = "";
    ComboFormatType.SelectedIndex = ComboAddressType.SelectedIndex = -1;
    }
    }

  3. #3
    اگه نباشه جاش خالی می مونه hamedvahedi's Avatar
    تاريخ عضويت
    Feb 2006
    محل سكونت
    Tehran
    پست ها
    252

    پيش فرض

    هر چند شيوه جالبي نيست

    MyDataList.DataSource = null;
    string filter = string.Empty;
    filter += "AddressedType=" + ComboAddressType.SelectedValue + " and ";
    filter += "FormatType=" + ComboFormatType.SelectedValue + " or ";
    filter += String.Format("Name like N'%{0}%' or ", txt_title.Text);

    filter += "Text=" + "N'"+ txt_Text.Text +"'"+ " and ";
    filter += "fullname=" + DropDownList4.SelectedValue +" and ";
    filter += "StatusType=" + RadioButtonList2.SelectedValue + " and ";

    if (filter.Length > 0)
    {
    filter = filter.Substring(0, filter.LastIndexOf(" and "));
    }

    DataSet dset = f.FishSelectAll(filter);
    int count = dset.Tables[0].Rows.Count;
    if (count > 0)
    {
    MyDataList.DataSource = dset;
    MyDataList.DataBind();
    lblMsg.Visible = false;
    txt_title.Text = txt_Text.Text = "";
    ComboFormatType.SelectedIndex = ComboAddressType.SelectedIndex = -1;
    }
    else
    {

    MyDataList.DataSource = null;
    MyDataList.DataBind();
    lblMsg.Visible = true;
    lblMsg.Text = TSEn.Mssage.Search;
    txt_title.Text = txt_Text.Text = "";
    ComboFormatType.SelectedIndex = ComboAddressType.SelectedIndex = -1;
    }
    }

Thread Information

Users Browsing this Thread

هم اکنون 1 کاربر در حال مشاهده این تاپیک میباشد. (0 کاربر عضو شده و 1 مهمان)

User Tag List

قوانين ايجاد تاپيک در انجمن

  • شما نمی توانید تاپیک ایحاد کنید
  • شما نمی توانید پاسخی ارسال کنید
  • شما نمی توانید فایل پیوست کنید
  • شما نمی توانید پاسخ خود را ویرایش کنید
  •