Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.aspx « webdoc - github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 430ccc8b987dbde670af71b49ef6e8c7d6ca2e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Collections.Specialized" %>
<html>
  <head>
    <title>Mono Documentation</title>
  </head>
        <script language="c#" runat="server">
                // Get the path to be shown in the content fram
                string getContentFrame()
                {
                        // Docs get shown from monodoc.ashx
                        string monodocUrl="monodoc.ashx";
                        string defaultParams="?link=root:";
                        NameValueCollection qStringParams=Request.QueryString;

                        // If no querystring params, show root link
                        if(!qStringParams.HasKeys())
                                return(monodocUrl+defaultParams);
                        // else, build query for the content frame
                        string nQueryString=monodocUrl+"?";
                        foreach(string key in qStringParams)
                                nQueryString+=(HttpUtility.UrlEncode(key)+"="+HttpUtility.UrlEncode(qStringParams[key]));
                        return nQueryString;
                }
        </script>

<frameset rows="75,*" frameborder="0" border="1">
 <frame src="header.aspx" name="Header" id='header' scrolling="no" noresize="true" />
  <frameset cols="20%,80%" frameborder="1" border="1">
    <frame src="monodoc.ashx?tree=boot" name="Tree" />
    <frame src="<% =getContentFrame() %>" name="content" />
  </frameset>
</frameset>
</html>