Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Help using CTYPE Pin
Venkatesh Mookkan13-Jun-07 18:28
Venkatesh Mookkan13-Jun-07 18:28 
GeneralRe: Help using CTYPE [modified] Pin
ASPnoob13-Jun-07 19:02
ASPnoob13-Jun-07 19:02 
AnswerRe: Help using CTYPE Pin
Venkatesh Mookkan13-Jun-07 19:38
Venkatesh Mookkan13-Jun-07 19:38 
GeneralRe: Help using CTYPE Pin
ASPnoob13-Jun-07 20:15
ASPnoob13-Jun-07 20:15 
GeneralRe: Help using CTYPE Pin
Venkatesh Mookkan13-Jun-07 20:22
Venkatesh Mookkan13-Jun-07 20:22 
GeneralRe: Help using CTYPE [modified] Pin
ASPnoob13-Jun-07 20:53
ASPnoob13-Jun-07 20:53 
AnswerRe: Help using CTYPE Pin
Chetan Ranpariya13-Jun-07 23:00
Chetan Ranpariya13-Jun-07 23:00 
Questionaspx.vb Pin
ling_luv13-Jun-07 17:50
ling_luv13-Jun-07 17:50 
hi, i have put up a post before abt my project. i am able to run my project but now i ahve a problem because all my code is in .aspx now i need to put the code into aspx.vb i try to double click the submit button but it brings me to .aspx n there is a i would want to know how to transfer my code into the aspx.vb below is my code in .aspx thanks a lot in advance.


<script runat="server">


Protected Sub Submit_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim Moviename
Dim Actorname
Dim Director
Dim Language
Dim Numberofdisc
Dim Studio
Dim ReleaseDate
Dim Price
Dim Quantity
Dim sql
'Dim asql


Dim DBconn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" & Server.MapPath("dvd_rental.mdb"))

DBconn.Open()


Moviename = Request.Form("txtmovieName")
Actorname = Request.Form("txtActorname")
Director = Request.Form("txtDirector")
Language = Request.Form("txtLanguage")
Numberofdisc = Request.Form("txtNoofdisc")
Studio = Request.Form("txtStudio")
ReleaseDate = Request.Form("txtReleaseDate")
Price = Request.Form("txtPrice")
Quantity = Request.Form("txtQuantity")


sql = "INSERT INTO Movie(MovieName, MovieLanguage, Numberofdisc, Studio, ReleaseDate, Price, Quantity) "

sql = sql & "VALUES('" & Moviename & "'"
sql = sql & ",'" & Language & "'"
sql = sql & ",'" & Numberofdisc & "'"
sql = sql & ",'" & Studio & "'"
sql = sql & ",'" & ReleaseDate & "'"
sql = sql & ",'" & Price & "'"
sql = sql & ",'" & Quantity & "')"


'asql = "INSERT INTO Actor(Actor Name)VALUES('" & Actorname & "')"

'Dim dbq As New OleDb.OleDbCommand
'dbq.CommandType = CommandType.Text
'dbq.CommandText = asql
'dbq.Connection = DBconn
'dbq.ExecuteNonQuery()



Dim dbquery As New OleDb.OleDbCommand
dbquery.CommandType = CommandType.Text
dbquery.CommandText = sql
dbquery.Connection = DBconn
dbquery.ExecuteNonQuery()


DBconn.Close()
DBconn = Nothing
End Sub









<title>WebAdd.aspx



function Table1_onclick() {

}

function Text1_onclick() {

}


















































<asp:label id="AddNewDvd" runat="server" width="240px" designtimedragdrop="8" font-bold="True" font-size="14pt" font-names="Times New Roman">Add new DVD Record
<asp:label id="Moviename" runat="server" width="112px" font-size="14pt">DVD Title: <asp:textbox id="txtmovieName" runat="server">
<asp:label id="Actor" runat="server" width="112px" font-size="14pt">Actor: <asp:dropdownlist id="DropDownList1" runat="server" width="132px" enabletheming="True">
<asp:listitem>
 
<asp:button id="btnAddNew" runat="server" text="Add New">

<asp:textbox id="txtActorname" runat="server">
<asp:button id="btnAdd" runat="server" text="Add" width="72px">

<asp:listbox id="ListBox1" runat="server" height="94px" width="166px">
<asp:button id="btnDelete" runat="server" text="Delete">

<asp:label id="Director" runat="server" width="112px" font-size="14pt">Director: <asp:dropdownlist id="DropDownList2" runat="server" width="138px">

<asp:button id="btnAddNewD" runat="server" text="Add New">

<asp:textbox id="txtDirector" runat="server">
<asp:button id="btnAddD" runat="server" text="Add">

<asp:listbox id="ListBox2" runat="server" height="102px" width="168px">
<asp:button id="btnDeleteD" runat="server" text="Delete">

<asp:label id="language" runat="server" font-size="14pt" width="112px">Language: <asp:textbox id="txtlanguage" runat="server">
<asp:label id="Numberofdisc" runat="server" font-size="14pt" width="145px">Number of Disc: <asp:textbox id="txtNoofDisc" runat="server">
<asp:label id="Studio" runat="server" width="112px" font-size="14pt">Studio: <asp:textbox id="txtStudio" runat="server">
<asp:label id="ReleaseDate" runat="server" font-size="14pt" width="112px">Release Date: <asp:calendar id="Calendar1" runat="server">
<asp:label id="Price" runat="server" width="112px" font-size="14pt">Price: <asp:textbox id="txtPrice" runat="server">
<asp:label id="Quantity" runat="server" width="112px" font-size="14pt">Quantity: <asp:textbox id="txtQuantity" runat="server">
<asp:button id="Submit" runat="server" text="Submit">


 







ling
AnswerRe: aspx.vb Pin
Venkatesh Mookkan13-Jun-07 18:09
Venkatesh Mookkan13-Jun-07 18:09 
AnswerRe: aspx.vb Pin
vmkumar9113-Jun-07 19:39
vmkumar9113-Jun-07 19:39 
QuestionAdobe ActiveX question Pin
rudemusik13-Jun-07 16:25
rudemusik13-Jun-07 16:25 
AnswerRe: Adobe ActiveX question Pin
Venkatesh Mookkan13-Jun-07 17:36
Venkatesh Mookkan13-Jun-07 17:36 
QuestionDynamic table with text box and button Pin
J Liang13-Jun-07 15:49
J Liang13-Jun-07 15:49 
AnswerRe: Dynamic table with text box and button Pin
Not Active13-Jun-07 16:54
mentorNot Active13-Jun-07 16:54 
QuestionC# Gridview and image field Pin
InvalidTypecast13-Jun-07 15:49
InvalidTypecast13-Jun-07 15:49 
AnswerRe: C# Gridview and image field Pin
Not Active13-Jun-07 17:05
mentorNot Active13-Jun-07 17:05 
GeneralRe: C# Gridview and image field Pin
InvalidTypecast13-Jun-07 17:11
InvalidTypecast13-Jun-07 17:11 
GeneralRe: C# Gridview and image field Pin
Sathesh Sakthivel13-Jun-07 17:28
Sathesh Sakthivel13-Jun-07 17:28 
GeneralRe: C# Gridview and image field Pin
Not Active14-Jun-07 2:17
mentorNot Active14-Jun-07 2:17 
AnswerRe: C# Gridview and image field Pin
Jay_se13-Jun-07 18:47
Jay_se13-Jun-07 18:47 
GeneralRe: C# Gridview and image field Pin
InvalidTypecast14-Jun-07 13:47
InvalidTypecast14-Jun-07 13:47 
GeneralRe: C# Gridview and image field Pin
InvalidTypecast14-Jun-07 14:05
InvalidTypecast14-Jun-07 14:05 
QuestionAny C# XML shopping cart examples Pin
InvalidTypecast13-Jun-07 14:53
InvalidTypecast13-Jun-07 14:53 
AnswerRe: Any C# XML shopping cart examples Pin
Sathesh Sakthivel13-Jun-07 15:13
Sathesh Sakthivel13-Jun-07 15:13 
GeneralRe: Any C# XML shopping cart examples Pin
InvalidTypecast13-Jun-07 15:45
InvalidTypecast13-Jun-07 15:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.