Re: asp include??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



<g_sharad@xxxxxxxxx> wrote in message
news:1115896682.194063.239820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi
>
>
> May be this problem is older, however i am not able to find a solution
> THe problem ...
>
>
> I have asp page file0.asp which calls another asp page thru include. I
> have to set conditions tht....
> originally the include should have file1.asp
> In the displayed file file1.asp user selects a hyperlink, it should
> take it as request and display the new file2.asp in same file0.asp in
> place of file1.asp.

Something like this:

<a href="file0.asp?MyPage=Page1">Page1</a>
<a href="file0.asp?MyPage=Page2">Page2</a>

<%
pageSelect = request.querystring("MyPage")

if pageSelect = "Page1" then%>
<!--#include file="Page1.asp"--><%
elseif pageSelect = "Page2" then%>
<!--'include file="Page2.asp"--><%
end if
%>


.



Relevant Pages

  • changing txt to number
    ... but the field type is txt, in my asp ... do math with the data. ... Prev by Date: ...
    (microsoft.public.inetserver.asp.db)
  • Make rows invisible easier?
    ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Ming visits DaBear!
    ... but your actions have spoken volumes and I think can serve as a ... Jonathan Wolgamuth ... ASP since 2003 ... Prev by Date: ...
    (alt.smokers.pipes)
  • Base 64 Encode in C# / URL
    ... kann mir jemand auf die Sprünge helfen, wie ich folgenden vb-skript asp-code ... Danke Ralph ... Prev by Date: ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • DataList in Table
    ... Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources... ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)