Last post Sep 09, 2011 04:37 PM by rwhammond
Sep 09, 2011 02:09 PM|rwhammond|LINK
I am currently working on a job posting section for a website. I have created two tables, one for job types (ie Administrative, Mechanic etc) and another table to list the job information (duties, posted date etc), and three pages. One for the job type,
a second page for the jobs listed of that type, and finally the third page, a full job description.
Here's where I am running into trouble. I've created a DataList, which displays my data in 3 columns so the candidate can select the job type. I have added code so they become active links, but the links are not filtering. They are loading the second page
will all the results in the table.
I am obviously missing a query somewhere. Any help would be appreciated.
Sep 09, 2011 02:35 PM|naresh1990|LINK
add CommandName and CommandArgument attributes to the links under DataList and
write code under DataList ItemCommand Event..to filter the result w.r.t the selected link under DataList
<asp:ImagButton ID="img1" runat="server"
CommandName="m1" CommandArgument='<%# Eval("ImgView")%>'
then under the ItemCommand event of DataList...you can write your own logic using CommandArgument like this
void DataList1_ItemCommand(Object sender, EventArgs args)
if(e.CommandName == "m1")
Sep 09, 2011 04:37 PM|rwhammond|LINK
By following these 2 tutorials:
I was able to figure out what i was missing.