رفع مشکل postBack در Master Page و دریافت خطای Operation is not valid due to the current state of the object
نویسنده: حسین صفدری
تاریخ: ۱۳۹۲/۰۵/۰۸ ۱۸:۳۵
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
protected void imgBtnSearch_Click(object sender, ImageClickEventArgs e)
{
if (TxtbSearch.Text != string.Empty)
{
Response.Redirect("/Exhibition/ShowSearch.aspx?title=" +
Sanitizer.GetSafeHtmlFragment(TxtbSearch.Text) + "&b=true", false);
}
}at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) at System.Web.HttpRequest.FillInFormCollection()
<appSettings>
<add key="aspnet:MaxHttpCollectionKeys" value="2001" />
</appSettings>