I have a user control inside my Tab control's panel. This user control contains several user controls, all which work fine. But I get "There is no source code available for the current location." on one of the user controls. It jumps to the page load when rendering my tab and gives me that error.
here's the control that's having the issue with:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProcessStepButto
ns.ascx.cs
" Inherits="Controls_Process
StepButton
s" %>
<table cellpadding="0" cellspacing="0" border="0" align="left" >
<tr class="ProcessStepButtons"
>
<td><asp:Button ID="btnNextStep" runat="server" Text="Proceed to NextStep" /></td>
<td><asp:Button ID="btnPreviousStep" runat="server" Text="Back to previous Step" /></td>
<td><asp:Button visible="false" ID="btnSubmitRequest" runat="server" Text="Submit Request" /></td>
<td><asp:Button ID="btnCancelRequest" runat="server" Text="Cancel Request" /></td>
</tr>
</table>
Code behind for the control is nothing special, just the out of box code file:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.
WebParts;
using System.Web.UI.HtmlControls
;
public partial class Controls_ProcessStepButton
s : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
When I load my tab, it hits the page load here and throws the error during design time in VS 2005. I have several instances of that control in my parent' control (the one that is in my panel). That has not mattered. So not sure why now I get this. And, if I remove that user control, the next user control before it gets the same error. so it's like if I remove it, the next one in line gets the error.
I also noticed that when I run my web app, all user controls in my master are being called, even if I have not clicked on the particular tab yet.
When I choose to show Disassembly information on the error, I get this:
--- d:\E\AjaxTk-AjaxControlToo
lkit\Relea
se\AjaxCon
trolToolki
t\Extender
Base\Scrip
tControlBa
se.cs
00000000 push edi
00000001 push esi
00000002 mov esi,ecx
00000004 mov edi,edx
00000006 cmp dword ptr ds:[043E01C4h],0
0000000d je 00000014
0000000f call 75D02346
00000014 mov edx,68ADE400h
00000019 mov ecx,43E2540h
0000001e call 75D04C71
00000023 mov edx,edi
00000025 mov ecx,esi
00000027 call 6443A588
0000002c mov ecx,esi
0000002e call dword ptr ds:[043EAA08h]
00000034 nop
00000035 pop esi
00000036 pop edi
00000037 ret
Start Free Trial