CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
Microsoft Gold Certified Partner – 3 Months Free and Free Setup



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 8/22/2007 11:10:45 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 36 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
skynoob
Asp.Net User
Button click problem8/22/2007 11:10:45 AM

0/0

after compile it line 1 gt error...

 

<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Register2.aspx.vb" Inherits="Login.Register2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Data.SqlClient" %>

<script runat="server">

 

Protected Sub FinishButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles FinishButton.click

Dim myConnection As New SqlConnection("server=localhost;Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True;Trusted_Connection=yes")

Dim a As String

Dim b As String

Dim c As String

a = Name.Text

b = AddressBox1.Text

c = PhoneBox.Text

Dim myCommand As New SqlCommand( _"Insert into userprofile values ('" & a & "','" & b & "','" & c & "')", _

myConnection)

 

 

myCommand.Connection.Open()

myCommand.ExecuteNonQuery()

myCommand.Connection.Close()

End Sub

 

</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:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="#F7F6F3"

BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"

Font-Size="0.8em" Width="316px" ActiveStepIndex="1">

<WizardSteps>

<asp:CreateUserWizardStep runat="server">

<ContentTemplate>

<table border="0" style="font-size: 100%; width: 316px; font-family: Verdana">

<tr>

<td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #5d7b9d">

Sign Up for Your New Account</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label></td>

<td>

<asp:TextBox ID="UserName" runat="server"></asp:TextBox>

<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"

ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>

<td>

<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>

<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"

ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label></td>

<td>

<asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>

<asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"

ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."

ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label></td>

<td>

<asp:TextBox ID="Email" runat="server"></asp:TextBox>

<asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"

ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Security Question:</asp:Label></td>

<td>

<asp:TextBox ID="Question" runat="server"></asp:TextBox>

<asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"

ErrorMessage="Security question is required." ToolTip="Security question is required."

ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Security Answer:</asp:Label></td>

<td>

<asp:TextBox ID="Answer" runat="server"></asp:TextBox>

<asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"

ErrorMessage="Security answer is required." ToolTip="Security answer is required."

ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="center" colspan="2">

<asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"

ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."

ValidationGroup="CreateUserWizard1"></asp:CompareValidator>

</td>

</tr>

<tr>

<td align="center" colspan="2" style="color: red">

<asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>

</td>

</tr>

</table>

</ContentTemplate>

</asp:CreateUserWizardStep>

<asp:WizardStep runat="server" Title="Profile">

<ContentTemplate></ContentTemplate>

<table border="0" style="font-size: 100%; font-family: Verdana">

<tr>

<td align="center" colspan="2" style="font-weight: bold; color: white; height: 18px;

background-color: #5d7b9d">

Profile</td>

</tr>

<tr>

<td align="right" style="height: 26px">

<asp:Label ID="NameLabel" runat="server" AssociatedControlID="Name">Name:</asp:Label>

</td>

<td style="width: 243px; height: 26px;">

<asp:TextBox ID="Name" runat="server" Width="180px"></asp:TextBox>

<asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="Name"

ErrorMessage="Name is required." ToolTip="Name is required." ValidationGroup="WizardStep">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Address" runat="server" AssociatedControlID="Address">Address:</asp:Label>

</td>

<td style="width: 243px">

<asp:TextBox ID="AddressBox1" runat="server" Width="180px"></asp:TextBox>

<asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Address"

ErrorMessage="Address is required." ToolTip="Address is required." ValidationGroup="WizardStep">*</asp:RequiredFieldValidator>

</td>

</tr>

<tr>

<td>

</td>

<td style="width: 243px">

<asp:TextBox ID="AddressBox2" runat="server" Width="180px"></asp:TextBox>

</td>

</tr>

<tr>

<td align="right">

<asp:Label ID="Telephone" runat="server" AssociatedControlID="Telephone">Telephone No:</asp:Label>

</td>

<td style="width: 243px">

<asp:TextBox ID="PhoneBox" runat="server" Width="180px"></asp:TextBox>

<asp:RequiredFieldValidator ID="TelephoneRequired" runat="server" ControlToValidate="Telephone"

ErrorMessage="Telephone No is required." ToolTip="Telephone No is required."

ValidationGroup="WizardStep">*</asp:RequiredFieldValidator>

</td>

</tr>

</table>

<asp:Button ID="FinishButton" runat="server" Text="Button" />

</asp:WizardStep>

<asp:CompleteWizardStep runat="server">

</asp:CompleteWizardStep>

</WizardSteps>

<SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em" VerticalAlign="Top" />

<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />

<SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />

<NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"

BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />

<HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" Font-Size="0.9em"

ForeColor="White" HorizontalAlign="Center" />

<CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"

BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />

<ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"

BorderWidth="1px" Font-Names="Verdana" ForeColor="#284775" />

<StepStyle BorderWidth="0px" />

<FinishNavigationTemplate>

<asp:Button ID="FinishPreviousButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"

BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="MovePrevious"

Font-Names="Verdana" ForeColor="#284775" Text="Previous" />

<asp:Button ID="FinishButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"

BorderStyle="Solid" BorderWidth="1px" CommandName="MoveComplete" Font-Names="Verdana"

ForeColor="#284775" Text="Finish" />

</FinishNavigationTemplate>

</asp:CreateUserWizard>

 

</div>

</form>

</body>

</html>

kaushalparik27
Asp.Net User
Re: Button click problem8/22/2007 11:23:25 AM

0/0

skynoob:
<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="Register2.aspx.vb" Inherits="Login.Register2" %>
 

what type of error you are getting here ??

BTW, we can use Code Behind Style rather than this traditional one  to write server side code...


Thanx,
[KaushaL] | Profile | Blog
Dont forget to click ?Mark as Answer? on the post that helped you.
This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.



"I would love to change the world, but they won?t give me the source code"
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Flex 3 Cookbook: Code-Recipes, Tips, and Tricks for RIA Developers Authors: Joshua Noble, Joey Lott, Todd Anderson, Chafic Kazoun, Pages: 673, Published: 2008
JavaScript: The Complete Reference Authors: Thomas A. Powell, Fritz Schneider, Pages: 948, Published: 2004
Alan Simpson's Windows XP Bible Authors: Alan Simpson, Pages: 1200, Published: 2005
Programming and Problem Solving with Visual Basic .NET Authors: Nell Dale, Michael McMillan, Chip Weems, Mark Headington, Pages: 768, Published: 2002
Mastering Microsoft Windows Vista Home: Premium and Basic Authors: Guy Hart-Davis, Pages: 1042, Published: 2007
Mastering Windows Vista Business: Ultimate, Business, and Enterprise Authors: Mark Minasi, John Paul Mueller, Pages: 1104, Published: 2007
Web Site Cookbook: Solutions & Examples for Building and Administering Your Web Site Authors: Doug Addison, Pages: 261, Published: 2006
Find Gold in Windows Vista: Where the Bodies are Buried Authors: Dan Gookin, Pages: 504, Published: 2007
Visio 2007 Bible Authors: Bonnie Biafore, Pages: 796, Published: 2007
Windows Vista: The Definitive Guide Authors: William R. Stanek, Pages: 922, Published: 2007

Web:
Re: form button.click() problem with javascript: msg#00003 Subject: Re: [Httpunit-develop] form button.click() problem with _javascript_. Hi, _javascript_ support is not complete. ...
Button Click Problem - Flex India Community | Google Groups Local: Mon, Oct 13 2008 5:37 am. Subject: Button Click Problem ... Subject: Re: [flex_india:15003] Button Click Problem ...
Coding Horror: Double-Click Must Die One of the strengths of the web UI model is the way it uses single click exclusively, neatly avoiding the button overloading problem: ...
Nabble - Flex India - [flex_india:15003] Button Click Problem [flex_india:15003] Button Click Problem. Hello, I have a button and I am calling a method that will invoke a popup.
ASP.NET Previous Submit Button Click Problem? Previous Submit Button Click Problem? matt cupryk posted at 24-Aug-03 12:47. I have several pages of a sign up form. The second page consist of a next and ...
button click problem Talk about button click problem. ... button click problem. Hi, I have a code like this: protected void Page_Load(object sender, EventArgs e) ...
ReportViewer: dynamically loading Rdlc on Button click problem ... ReportViewer: dynamically loading Rdlc on Button click problem. Last post 05-07- 2008 3:59 PM by Jason Duncan. 1 replies. Sort Posts: ...
Re: form button.click() problem with javascript: msg#00002 Previous by Date: form button.click() problem with javascript, Karl Blum. Next by Date: Re: form button.click() problem with javascript, Karl Blum ...
Datasource problem on mdi form save button click - MSDN Forums Datasource problem on mdi form save button click Thread Starter: shijith Started : 02 Oct 2008 6:59 AM UTC Replies: 6 ...
Re: setVisible() problem after button click few seconds within a listener like ActionListener? ... The GUI is.

Videos:
The Guild - Episode 3: The Macro Problem The Guild Season 1 DVD NOW ON SALE! http://www.watchtheguild.com/gear/dvd/ Exclusive Gag Reels Cast/Director Commentary English Subtitles and MORE! ...
iPhone Problem w/ Sleep & Awake Button Alright, so I bought this 2G 16GB iPhone back in March-April and I noticed the sleep/awake button was slanted, as in the right side was pushed in mor...
Home Repair - Repair a Garbage Disposal See the rest of the DIY Home Repair series at: http://tinyurl.com/z5fhb Learn easy DIY tips for home garbage disposal repair. Link directly to thi...
limewire download problem fix song:Cascada - Everytime We Touch if u have any other lime wire promblem go 2 this link http://wiki.limewire.org/index.php?title=Frequently_Asked_Que...
captain fantastic pinball problem Hi, I have a captain fantastic pinball (old elctromagnetic bally system). It worked until recently, now when I press them start button i it makes a ...
Action Replay DS problems PLEASE REFER TO MY NEW VIDEO ABOUT FIXING ACTION REPLAY, It should answer a lot of questions: http://youtube.com/watch?v=c5nunexIqZg Feel free to p...
How to Change the Text on the "Start" button MAKE EASY MONEY HERE: http://tinyurl.com/3xujzp http://angusj.com/resourcehacker/ http://www.theeldergeek.com/change_text_on_xp_start_button.htm ...
How To Get Microsoft Office Professional 2007 Full Edition For FREE Follow the steps(suitable for all Windows including Windows XP): Step 1:Go to the Microsoft Office 2007 Official trial website http://us20.trymicros...
Randy Pausch - Really Achieving Your Childhood Dreams Randy Pausch's Last Lecture with English and German subtitles by Friederike Sophie Brand, Spanish subtitles by Carlos Velásquez and Ezequiel Aranda, ...
Nelly - Problems (Prod. Polow Da Don) [NEW OFFICIAL EXCLUSIVE] http://www.NewRapDaily.com http://www.NewRapDaily.com http://www.NewRapDaily.com Click here to get exclusive rap songs now! Download the newest song...












help me!!! error: unable to visual studio's localhost web server

htmlinputhidden created dynamically error

cannot open window service in your computer

database problem

atlas, textbox and vbcrlf problem

how do i detect a session has expired and redirect it to anther page?

add controls into a datagrid

datetime and web.config

i need help updating a cookie

linq and access

installed framework before iis - how to get iis to serve .aspx pages

protecting an application from redistribution

sending mail through linux server

datareader to datatable

how to reuse my database connection code in all pages

question:about attributes property!

paging text

mail attachment in .net 1.1.4

family tree in .net

how to use the dropdownlist control?

error in sending mail through outlook

setting label text = textbox text on other form

collection of object

ajax update panel

basic ideas in asp.net

drop down list

problem with file!!!

merging arrays

new line in a label

session expiration

  Privacy | Contact Us
All Times Are GMT