Wednesday, March 28, 2012

VWD - Code Question

I've asked variations of this question before with no solid results.
When I double click on a control in a single ASPX file, it just takes me to
this:
<asp:Button ID="Button2" runat="server" Text="Button" /></div>
And it doesn't make a subroutine statement for CLICK in the <script>
section.
Here is path:
I open VWD
Choose FILE and then NEW FILE
WEB, VISUAL BASIC and then WEB FORM.
In DESIGN, mode I drag a button over and double click
Here is the resulting code after double click:
<%@dotnet.itags.org. Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
</form>
</body>
</html>
If you notice, it doesn't put the click subroutine information for the
button in the <script> area.
So, is this as designed or am I doing something wrong?
Thanks again,
BrianYou are correct it does not do that
The operative question is :
Why does the VWD integrated into VS 2005, which is supposed to be the
*same* VWD as the standalone VWD, do that OK, without a problem ?
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Espaol : http://asp.net.do/foros/
======================================
"Jon Paal" <Jon nospam Paal @. everywhere dot com> wrote in message
news:uCqyUEI7FHA.444@.TK2MSFTNGP11.phx.gbl...
> You are correct it does not do that
I don't know "why", you'll have to ask MS, they built it that way, I just
use it .
"Juan T. Llibre" <nomailreplies@.nowhere.com> wrote in message news:erRYUSI7FHA.632@.TK2MSFTN
GP10.phx.gbl...
> The operative question is :
> Why does the VWD integrated into VS 2005, which is supposed to be the
> *same* VWD as the standalone VWD, do that OK, without a problem ?
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Espaol : http://asp.net.do/foros/
> ======================================
> "Jon Paal" <Jon nospam Paal @. everywhere dot com> wrote in message news:uC
qyUEI7FHA.444@.TK2MSFTNGP11.phx.gbl...
>

0 comments:

Post a Comment