Ask a Question related to ASP.NET General, Design and Development.
-
Francisco Carvalho #1
Codebehind problem
I have created a user control that gets loaded by a page.
The user control has a codebehind, but when I change the
code on the codebehind, it never runs.
If on the other hand a run the same code on the .ascx
file it runs with no problems.
The directive(see below) was added automatically by
VS.NET so I can't seam to know what the problem is. Any
thoughts?
Francisco
<%@ Control Language="vb" AutoEventWireup="False"
Codebehind="idx_CSS.ascx.vb" Inherits="nova.idx_CSS"
TargetSchema="http://schemas.microsoft.com/intellisense/ie
5" %>
Francisco Carvalho Guest
-
Data set in Codebehind
When using dreamweaver for asp.net and VB can anyone tell me how to access the dataset (that DW created MM:Dataset ) in the code behind. All... -
Datagrid SelectedIndexChanged Problem in CodeBehind
I am attempting to use the SelectedIndexChanged to detect when a row has been selected. I have seen many examples where they are writing all the... -
Why does VS.NET use codebehind?
I'm reading the Essential ASP.NET book by Fritz onion and he says that when VS.NET creates a new .aspx page for you is uses the codebehind attribute... -
Popup in codebehind
Hi. Is it possible to create a popup window (or something similar) from codebehind? Like after pressing a button and if som conditions is... -
src Versus codebehind
hello friend, while developing an application, i encountered a subtle point. for a aspx page, what is the difference between src property and... -
Ryan Gregg #2
Re: Codebehind problem
Francisco,
You need to rebuild the project in VS.NET. Using the VS.NET code behind
model pre-compiles all of the code behind files into a single assembly,
located in your /bin folder. If you change the code in the code-behind
file, ASP.NET still uses the compiled assembly, so until you rebuild the
project (and thus compile the assembly), nothing is changed. On the other
hand, the ascx file is always parsed from the actual file, so changes there
are reflected immediately.
Ryan
"Francisco Carvalho" <fcarvalho@carf.org> wrote in message
news:04f101c34cac$f3cfbeb0$a301280a@phx.gbl...> I have created a user control that gets loaded by a page.
> The user control has a codebehind, but when I change the
> code on the codebehind, it never runs.
> If on the other hand a run the same code on the .ascx
> file it runs with no problems.
> The directive(see below) was added automatically by
> VS.NET so I can't seam to know what the problem is. Any
> thoughts?
> Francisco
>
> <%@ Control Language="vb" AutoEventWireup="False"
> Codebehind="idx_CSS.ascx.vb" Inherits="nova.idx_CSS"
> TargetSchema="http://schemas.microsoft.com/intellisense/ie
> 5" %>
>
Ryan Gregg Guest
-
Francisco Carvalho #3
Re: Codebehind problem
Hi Ryan,
Thanks for the reply. I did rebuil the solution, but with
no success. I then deleted the dll from within the VS.NET
enviroment and build the project. That recreated the dll,
which fixed the probelm. Thanks a lot.
Francisco
the VS.NET code behind>-----Original Message-----
>Francisco,
> You need to rebuild the project in VS.NET. Usingsingle assembly,>model pre-compiles all of the code behind files into athe code-behind>located in your /bin folder. If you change the code inyou rebuild the>file, ASP.NET still uses the compiled assembly, so untilchanged. On the other>project (and thus compile the assembly), nothing isfile, so changes there>hand, the ascx file is always parsed from the actualmessage>are reflected immediately.
>
>Ryan
>
>
>"Francisco Carvalho" <fcarvalho@carf.org> wrote inpage.>news:04f101c34cac$f3cfbeb0$a301280a@phx.gbl...>> I have created a user control that gets loaded by athe>> The user control has a codebehind, but when I changeTargetSchema="http://schemas.microsoft.com/intellisense/ie>> code on the codebehind, it never runs.
>> If on the other hand a run the same code on the .ascx
>> file it runs with no problems.
>> The directive(see below) was added automatically by
>> VS.NET so I can't seam to know what the problem is. Any
>> thoughts?
>> Francisco
>>
>> <%@ Control Language="vb" AutoEventWireup="False"
>> Codebehind="idx_CSS.ascx.vb" Inherits="nova.idx_CSS"
>>>>> 5" %>
>>
>
>.
>Francisco Carvalho Guest



Reply With Quote

