-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResultsArchiveDiagnostics.ascx
40 lines (31 loc) · 1.84 KB
/
ResultsArchiveDiagnostics.ascx
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
36
37
38
39
<%@ Control Language="VB" ClassName="ResultsArchive.ascx" Inherits="mojoPortal.Web.SiteModuleControl" %>
<%@ Import Namespace="mojoPortal.Business" %>
<%@ Import Namespace="mojoPortal.Business.WebHelpers" %>
<%@ Import Namespace="mojoPortal.Web.Framework" %>
<%@ Import Namespace="mojoPortal.Web.Controls" %>
<%@ Import Namespace="mojoPortal.Web.Editor" %>
<%@ Import Namespace="mojoPortal.Net" %>
<%@ Import Namespace="system.IO" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim accessDataSourcePath As String
accessDataSourcePath = ConfigurationManager.AppSettings("BreconFansResultsDatabasePath").ToString()
Dim DBfile As String = Server.MapPath(accessDataSourcePath & "/RaceManager.mdb")
'Me.AccessDataSource_Results.DataFile = accessDataSourcePath & "/RaceManager.mdb"
'Me.AccessDataSource_Cats.DataFile = accessDataSourcePath & "/RaceManager.mdb"
'Me.AccessDataSource_Clubs.DataFile = accessDataSourcePath & "/RaceManager.mdb"
'Me.AccessDataSource_Years.DataFile = accessDataSourcePath & "/RaceManager.mdb"
'Me.AccessDataSource_UsageLog.DataFile = accessDataSourcePath & "/UsageLog.mdb"
feedback.Text = "Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=" & DBfile
feedback.Text += If(File.Exists(DBfile), "File exists.", "File does not exist.")
End Sub
</script>
<mp:cornerroundertop id="ctop1" runat="server" />
<asp:Panel ID="pnlWrapper" runat="server" CssClass="panelwrapper linksmodule">
<portal:moduletitlecontrol id="Title1" runat="server" />
<div style="padding: 0; margin: 0; width: 100%;">
<p>Connection string:</p>
<asp:TextBox ID="feedback" runat="server" Width="100%"></asp:TextBox>
</div>
</asp:Panel>
<mp:cornerrounderbottom id="cbottom1" runat="server" />