VWD - Code Question

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

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:


<%@ 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,
Brian
 
I don't know "why", you'll have to ask MS, they built it that way, I just use it .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top