ASP.NET Page /SourceViewer/srcview.aspx (C#)
1: <%@ Page %>
2: <script language="C#" runat=server>
3:
4:     void Page_Load(Object sender, EventArgs e) {
5:
6:         int numRows = 4;
7:
8:         if (Request.QueryString["rows"] != null) {
9:             numRows = Int32.Parse(Request.QueryString["rows"]);
10:         }
11:
12:         int tabHeight = (numRows * 22) + 45;
13:
14:         Frameset.Attributes["rows"] = "" + tabHeight + ",*";
15:
16:         srcFrame.Attributes["src"] = "tabview.aspx?path=" + Request.QueryString["path"];
17:
18:         String newPath = Request.QueryString["file"].Replace('/', '_');
19:         newPath = Request.ApplicationPath + "/docs/" + newPath.Replace('.', '_') + ".htm";
20:
21:         docFrame.Attributes["src"] = newPath;
22:     }
23:
24: </script>
25:
26: <frameset id="Frameset" BORDER=0 ROWS="130,*" HEIGHT=100% FRAMEBORDER=0 FRAMESPACING=0 runat=server>
27:     <frame id="srcFrame"  NORESIZE SRC="tabview.aspx" runat="server" />
28:     <frame id="docFrame" name="docFrame" height="100%" runat="server" />
29: </frameset>