Hey, I'm just getting back into this...again using the web Matrix program, and I'm getting expression is not a method for Profile_Added, I'd like to make the ASP Panel visible after the Sub has finished running the code, Thx In Advance.
Try
rowsAffected = dbCommand.ExecuteNonQuery
Finally
dbConnection.Close
Profile_Added = visible
End Try
End Sub
Sub Submit_Click(sender As Object, e As EventArgs)
End Sub
</script>
<head>
</head>
<body>
<form runat="server">
<p>
First Name<asp:TextBox id="First_Name" runat="server"></asp:TextBox>
</p>
<p>
Last Name
<asp:TextBox id="Last_Name" runat="server"></asp:TextBox>
</p>
<p>
<asp:Button id="Submit" onclick="MyInsertProfile" runat="server" Text="Add Profile"></asp:Button>
</p>
</form>
<asp:Panel runat="server" id="Profile_Added" Visible="false">
The New Profile has been added!
</asp:Panel>
</body>
</html>
Bookmarks