I have a RadMenu that is loaded via a Linq to SQL class in div "RadMenu1". In div2 I want a Title field (a label) and a AspImage to be loaded when a user selects a link from the RadMenu.
My Table currently looks like this:
idProject
projLink
projTitle
projImage
Example:
<div id="RadMenu1">
Link1 (id=idProject, Text=projLink)
Link2 (id=idProject, Text=projLink)
Link3 (id=idProject, Text=projLink)
</div>
<div id="div2">
Title (id=idProject, Text=ProjTitle)
Image (id=idProject, ImageUrl=projImage)
</div>
I am currently loading my RadMenu like this:
ClassesDataContext db = new ClassesDataContext();
var prod = from p in db.ProjectImages
select p;
RadMenu1.DataSource = prod;
RadMenu1.DataFieldID = "idProjects";
RadMenu1.DataTextField = "projLink";
RadMenu1.DataValueField = "idProjects";
RadMenu1.DataBind();
This is where I am stuck. How do I load the corresponding Label and ASPImage on click of one of the RadMenu Items?
My Table currently looks like this:
idProject
projLink
projTitle
projImage
Example:
<div id="RadMenu1">
Link1 (id=idProject, Text=projLink)
Link2 (id=idProject, Text=projLink)
Link3 (id=idProject, Text=projLink)
</div>
<div id="div2">
Title (id=idProject, Text=ProjTitle)
Image (id=idProject, ImageUrl=projImage)
</div>
I am currently loading my RadMenu like this:
ClassesDataContext db = new ClassesDataContext();
var prod = from p in db.ProjectImages
select p;
RadMenu1.DataSource = prod;
RadMenu1.DataFieldID = "idProjects";
RadMenu1.DataTextField = "projLink";
RadMenu1.DataValueField = "idProjects";
RadMenu1.DataBind();
This is where I am stuck. How do I load the corresponding Label and ASPImage on click of one of the RadMenu Items?