pelegk1
08-24-2003, 04:16 AM
is it possible maybe using an if sentence
to deice if to indclude a file or not?
to deice if to indclude a file or not?
|
Click to See Complete Forum and Search --> : indclude and if's pelegk1 08-24-2003, 04:16 AM is it possible maybe using an if sentence to deice if to indclude a file or not? rav 08-25-2003, 03:07 PM absolutely <% if cat_type = "Entity" then if id = "" then if opp = "Add" then %> <!-- If opp="Add", we're starting fresh and can get down to business. --> <!-- #include file = "add_ent_frame.asp"--> <% else %> <!-- Else, we have to find out what existing record we're updating/removing --> <!-- #include file = "findent_frame.asp" --> <% end if end if elseif cat_type = "Location" then if id = "" then if opp = "Add" then%> <!-- #include file = "add_loc_frame.asp"--> <% else %> <!-- #include file = "findloc_results.asp" --> <% end if end if elseif cat_type = "Department" then if opp = "Add" then%> <!-- #include file = "add_dept_frame.asp"--> <% else %> <!-- #include file = "finddept_results.asp" --> <% end if elseif cat_type = "Business Unit" then Response.Redirect("update_unit_frame.asp?opp=" & opp & "&cat_type=" & cat_type) end if %> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |