Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Qu... > custom dialogs?
You'll probably need to explain this a bit more, what kind of dialogs exactly?
That's an interesting suggestion. We have logged that as an enhnacement request.
You could embed some of the items in the My Page or Project Home by adding them as User Controls (.ascx) pages.
I added the following Tags in ProjectHome.aspx
1.
<%@ Register TagPrefix="tstuc" TagName="SpiraBridge" Src="~/UserControls/WebParts/ProjectHome/SpiraBridge.ascx" %>
2.
<tstuc:SpiraBridge runat="server" ID="ucSpiraBridge" MessageBoxId="lblMessage" Title="<%$ Resources:,ProjectHome_SpiraBridge %>" />
The UC SpiraBridge:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SpiraBridge.ascx.cs" "Inflectra.SpiraTest.Web.UserControls.WebParts.ProjectHome.SpiraBridge" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="Inflectra.SpiraTest.Web" %>
...
now I get an
Parser Error Message: Could not load type 'Inflectra.SpiraTest.Web.UserControls.WebParts.ProjectHome.SpiraBridge'.
anything else what I have to do ?
The problem is that it's trying to load the actual user control and it doesn't have a code-behind file. You need to make the .ASCX page completely self-standing. I.e. in the .ASCX file, remove the Inherits from attribute and add any code into the ASCX page itself:
<script language="c#" runat="server"> public void Page_Load(object sender, EventArgs e) { //hello, world! } </script>
And if you have any questions, please email or call us at +1 (202) 558-6885