Colonel Klink
Sep 3rd, 2003, 11:34 AM
i was wondering, can you use user controls in switch statements... for example
switch (section)
{
case "news":
response.write("<usercontrol1:news></usercontrol1:news>");
break;
case "downloads":
response.write("<usercontrol1:downloads></usercontrol1:downloads>");
break;
}
... etc
im using the querystring to pass along the section page i want to include and change images accordingly (less updating later on down the track)
can you do that? or is there another way?
i hope i made sense
switch (section)
{
case "news":
response.write("<usercontrol1:news></usercontrol1:news>");
break;
case "downloads":
response.write("<usercontrol1:downloads></usercontrol1:downloads>");
break;
}
... etc
im using the querystring to pass along the section page i want to include and change images accordingly (less updating later on down the track)
can you do that? or is there another way?
i hope i made sense