I have a table with some ids, and i want in default.aspx to open a certain page.aspx with a form, depending on the id.
What i have now is:
if(id_table ==1) {
response.redirect("PageBla.aspx");
}
if(id_table==2) {
response.redirect("Page21231.aspx");
}
if(id_table==6) {
....
}
etc etc....
this is simple if i have small number of ids to check. But i will have dozens of ids to check. Is there any programming pattern or any other method of doing this without dozens of ifs or switchs/cases?
Thanks in advance
EDIT: "=" was substituted with "==".