TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ekrem Tapan
NA
967
82k
Search with Dropdownlist
Nov 9 2015 4:59 AM
hi everyone, im maintaince a one webportal,
but i dont know this part how to fix
im posted code below, now on system just use a one date search, but i wantto use 2 dropdownlist lstYear and FirstYear ddlist, i wantto search between FirstYear and LastYear, how can i do it ?
protected void btnSearch_Click(object sender, EventArgs e)
{
DocHelper.SearchConds conds = new DocHelper.SearchConds();
conds.Year = ConvertLib.ToInt(this.lstYear.SelectedValue, DefVal.Int);
conds.Keyword = this.txtKeyword.Text.Trim();
List<ISystemId> countrySIds = new List<ISystemId>();
foreach (var block in this._countryAreaBlocks)
{
countrySIds.AddRange(block.GetSeledCountrySIds());
}
conds.CountrySIds = countrySIds.ToArray();
List<ISystemId> territorySIds = new List<ISystemId>();
foreach (var block in this._territoryBlocks)
{
if (block.Checked)
{
territorySIds.Add(block.SId);
}
}
conds.TerritorySIds = territorySIds.ToArray();
Session[SessionDefine.SearchConds] = conds;
Response.Redirect(string.Format("{0}doc/index.aspx", SystemDefine.WebSiteRoot));
}
Reply
Answers (
1
)
Adding view in MVC giving error
Master Detail Layout in Asp.net Mvc