Methods being added to web page, not codebehind.
-
I used to be able to double-click on a control, and it would add a method to the .vb file. Now, it changes to Source view mode of the .aspx file, and adds a block with the method inside. How do I change it back? <div class="ForumSig">"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..." </div>
-
I used to be able to double-click on a control, and it would add a method to the .vb file. Now, it changes to Source view mode of the .aspx file, and adds a block with the method inside. How do I change it back? <div class="ForumSig">"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..." </div>
I think you are using HTML controls ... :cool:
-
I think you are using HTML controls ... :cool:
<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Page3.aspx.vb" Inherits="ApplicationForm.Page31" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub
</script><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Software Install</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
<asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" /></div>
</form>
</body>
</html>I did see what you were referring to in the help, though.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
-
<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Page3.aspx.vb" Inherits="ApplicationForm.Page31" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
End Sub
</script><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Software Install</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />
<asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" /></div>
</form>
</body>
</html>I did see what you were referring to in the help, though.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
-
If you want to use the code behind model, when you add a page to your web site, select the place code in separate file checkbox
Alexei Rodriguez
I'm using VS 2005. On Add->Existing Item->Web Form, I don't get that option (checkbox), just the filename.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
-
I'm using VS 2005. On Add->Existing Item->Web Form, I don't get that option (checkbox), just the filename.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..." "There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."