File: index.aspx

package info (click to toggle)
mono-tools 2.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,524 kB
  • ctags: 15,712
  • sloc: cs: 85,697; sh: 3,622; makefile: 1,662; xml: 112; sql: 18
file content (35 lines) | stat: -rw-r--r-- 1,530 bytes parent folder | download | duplicates (3)
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>