Click here to Skip to main content
15,911,646 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionclose Asp.Net Application Pin
SathyaSiva27-Jun-08 20:49
SathyaSiva27-Jun-08 20:49 
AnswerRe: close Asp.Net Application Pin
Christian Graus27-Jun-08 20:52
protectorChristian Graus27-Jun-08 20:52 
GeneralRe: close Asp.Net Application Pin
SathyaSiva27-Jun-08 21:48
SathyaSiva27-Jun-08 21:48 
GeneralRe: close Asp.Net Application Pin
Christian Graus27-Jun-08 23:31
protectorChristian Graus27-Jun-08 23:31 
GeneralRe: close Asp.Net Application Pin
SathyaSiva28-Jun-08 0:04
SathyaSiva28-Jun-08 0:04 
GeneralRe: close Asp.Net Application Pin
Christian Graus28-Jun-08 0:19
protectorChristian Graus28-Jun-08 0:19 
AnswerRe: close Asp.Net Application Pin
Imran Khan Pathan27-Jun-08 22:00
Imran Khan Pathan27-Jun-08 22:00 
QuestionERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression [modified] Pin
idsanjeevjha27-Jun-08 19:48
idsanjeevjha27-Jun-08 19:48 
using vb
my problems in insertion
ERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression
my code is
<%@ import Namespace="System.Data.ODbc" %>
<%@ Import Namespace=" System.Data"%>
<script runat="server">

    Sub submit(sender As Object, e As EventArgs)
    dim dbconn
    dbconn=New ODbcConnection("dsn=oracle;uid=starter;pwd=starter;")
    dbconn.Open()
	dim isql,idbread,idbcomm
	isql="Insert Into students(id,first_name,last_name,major) values (@fname,@id,@lname,@major)"
	idbcomm=new odbccommand(isql,dbconn)
	idbcomm.Parameters.Add( "@fname",fname.text)
    idbcomm.Parameters.Add( "@id",id.Text)
    idbcomm.Parameters.Add( "@lname",lname.Text)
    idbcomm.Parameters.Add( "@major",major.Text)
	idbcomm.ExecuteNonQuery()
    dbconn.Close()	
    End Sub
</script>
<html>
<head>
</head>
<body>
    <form runat="server">
	       <th>
            Id Number:</th>
        <asp:TextBox id="id" runat="server"></asp:TextBox>
        <br />
        <br />
        <th>MaJor:</th>
        <asp:TextBox id="major" runat="server"></asp:TextBox>
        <br />
        <br />
        <th>First Name:</th>
        <asp:TextBox id="fname" runat="server"></asp:TextBox>
        <br />
        <br />
        <th>Last Name:</th>
        <asp:TextBox id="lname" runat="server"></asp:TextBox>
        <br />
        <br />
        <hr />
        <asp:Button id="Button1" onclick="submit" runat="server" Text="Submit"></asp:Button>
    </form>
</body>
</html>


sanjeev

modified on Saturday, June 28, 2008 2:04 AM

AnswerRe: ERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression Pin
Christian Graus27-Jun-08 19:50
protectorChristian Graus27-Jun-08 19:50 
GeneralRe: ERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression Pin
idsanjeevjha27-Jun-08 19:56
idsanjeevjha27-Jun-08 19:56 
GeneralRe: ERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression Pin
Christian Graus27-Jun-08 20:00
protectorChristian Graus27-Jun-08 20:00 
GeneralRe: ERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression Pin
idsanjeevjha27-Jun-08 20:04
idsanjeevjha27-Jun-08 20:04 
GeneralRe: ERROR [42000] [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression Pin
Christian Graus27-Jun-08 20:05
protectorChristian Graus27-Jun-08 20:05 
GeneralRe: ERROR PART Pin
idsanjeevjha30-Jun-08 22:45
idsanjeevjha30-Jun-08 22:45 
GeneralRe: ERROR PART Pin
idsanjeevjha1-Jul-08 1:09
idsanjeevjha1-Jul-08 1:09 
QuestionHow can i give connection from vb.class to default.aspx Pin
chittu2327-Jun-08 15:01
chittu2327-Jun-08 15:01 
AnswerRe: How can i give connection from vb.class to default.aspx Pin
N a v a n e e t h27-Jun-08 20:48
N a v a n e e t h27-Jun-08 20:48 
QuestionWebControls.Menu Problem Pin
dptalt27-Jun-08 8:04
dptalt27-Jun-08 8:04 
QuestionSimple Question---bt nt able to solve Pin
paresh_sarjani27-Jun-08 7:10
paresh_sarjani27-Jun-08 7:10 
AnswerRe: Simple Question---bt nt able to solve Pin
Parwej Ahamad27-Jun-08 7:13
professionalParwej Ahamad27-Jun-08 7:13 
GeneralRe: Simple Question---bt nt able to solve Pin
paresh_sarjani27-Jun-08 7:34
paresh_sarjani27-Jun-08 7:34 
GeneralRe: Simple Question---bt nt able to solve Pin
Colin Angus Mackay27-Jun-08 10:18
Colin Angus Mackay27-Jun-08 10:18 
QuestionHow to send an email ? Pin
tina->newcoder27-Jun-08 6:58
tina->newcoder27-Jun-08 6:58 
AnswerRe: How to send an email ? Pin
Parwej Ahamad27-Jun-08 7:07
professionalParwej Ahamad27-Jun-08 7:07 
QuestionRe: How to send an email ? Pin
tina->newcoder27-Jun-08 7:25
tina->newcoder27-Jun-08 7:25 

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.