Click here to Skip to main content
15,906,567 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Start program by dragging file onto exe Pin
Gideon Engelberth3-Jul-08 10:06
Gideon Engelberth3-Jul-08 10:06 
QuestionDon't what is the error in my code thats not worked any idea? Pin
idsanjeevjha2-Jul-08 20:46
idsanjeevjha2-Jul-08 20:46 
AnswerRe: Don't what is the error in my code thats not worked any idea? Pin
Anubhava Dimri2-Jul-08 23:45
Anubhava Dimri2-Jul-08 23:45 
AnswerRe: Don't what is the error in my code thats not worked any idea? Pin
N a v a n e e t h3-Jul-08 0:35
N a v a n e e t h3-Jul-08 0:35 
GeneralRe: Don't what is the error in my code thats not worked any idea? Pin
idsanjeevjha3-Jul-08 1:01
idsanjeevjha3-Jul-08 1:01 
GeneralRe: Don't what is the error in my code thats not worked any idea? Pin
N a v a n e e t h3-Jul-08 15:47
N a v a n e e t h3-Jul-08 15:47 
AnswerRe: Don't what is the error in my code thats not worked any idea? Pin
Chinners3-Jul-08 1:27
Chinners3-Jul-08 1:27 
Questionwhats is the mistacks in code thats insert data in oracle with vb.net Pin
idsanjeevjha2-Jul-08 20:25
idsanjeevjha2-Jul-08 20:25 
Code for data insertion is not work reported error
<script runat="server">

    Sub submit(sender As Object, e As EventArgs)
    dim dbconn,sql,dbcomm,dbread
    dbconn=New ODbcConnection("dsn=oracle;uid=starter;pwd=starter;")
    dbconn.Open()
    sql="SELECT * FROM students"
    dbcomm=New ODbcCommand(sql,dbconn)
    dbread=dbcomm.ExecuteReader()
    customers.DataSource=dbread
    customers.DataBind()
    dbread.Close()
	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>


but this code is excuted success fully
<script runat="server">
    Sub submit(sender As Object, e As EventArgs)
     Dim strConnectionString As String
        strConnectionString = "Dsn=oracle;uid=gatepass;pwd=gp"
        Dim pConn As New OdbcConnection(strConnectionString)
        'Dim pSELECTQUERY As String = "SELECT  *from students"
        Dim pSELECTQUERY As String = "SELECT distinct PassMaster.*,passarea_dtls.passarea,empmaster.empname,visitormaster.visitorname FROM PassMaster, VisitorMaster,passarea_dtls,empmaster where passmaster.authorisationby=empmaster.empno and passmaster.passareacode=passarea_dtls.passareacode and PassMaster.PassIssueDt + PassMaster.validity -1  >= trunc(sysdate) and PassMaster.PassID = VisitorMaster.PassID and PassMaster.AuthorisationStatus = 'YES' and passmaster.PASSISSUESTATUS not like 'YES' order by PassMaster.PassID"		
        Dim adapter As New OdbcDataAdapter(pSELECTQUERY, pConn)
        Dim DS As DataSet = New DataSet()
        adapter.Fill(DS)
         Repeater1.DataSource = ds
        pConn.Close()
        adapter.Dispose()
		Repeater1.DataBind()
    End Sub
</script>

i don't know whats is the reason any help ?

sanjeev

AnswerRe: whats is the mistacks in code thats insert data in oracle with vb.net Pin
Chinners2-Jul-08 23:37
Chinners2-Jul-08 23:37 
GeneralRe: whats is the mistacks in code thats insert data in oracle with vb.net Pin
idsanjeevjha3-Jul-08 0:53
idsanjeevjha3-Jul-08 0:53 
GeneralRe: whats is the mistacks in code thats insert data in oracle with vb.net Pin
Chinners3-Jul-08 1:24
Chinners3-Jul-08 1:24 
QuestionAxShockwaveFlash Object Pin
~V~2-Jul-08 20:04
~V~2-Jul-08 20:04 
QuestionException Handling Problem Pin
RCoate2-Jul-08 17:10
RCoate2-Jul-08 17:10 
AnswerRe: Exception Handling Problem Pin
Mycroft Holmes2-Jul-08 17:21
professionalMycroft Holmes2-Jul-08 17:21 
GeneralRe: Exception Handling Problem Pin
RCoate2-Jul-08 17:46
RCoate2-Jul-08 17:46 
GeneralRe: Exception Handling Problem Pin
Mycroft Holmes2-Jul-08 18:17
professionalMycroft Holmes2-Jul-08 18:17 
GeneralRe: Exception Handling Problem Pin
Paul Conrad2-Jul-08 18:32
professionalPaul Conrad2-Jul-08 18:32 
AnswerRe: Exception Handling Problem Pin
Gideon Engelberth2-Jul-08 17:52
Gideon Engelberth2-Jul-08 17:52 
GeneralRe: Exception Handling Problem [modified] Pin
RCoate2-Jul-08 18:02
RCoate2-Jul-08 18:02 
QuestionVBscript, CreateFolder & Scheduler confusion. Pin
Member 37212832-Jul-08 7:01
Member 37212832-Jul-08 7:01 
AnswerRe: VBscript, CreateFolder & Scheduler confusion. Pin
Dave Kreskowiak2-Jul-08 7:14
mveDave Kreskowiak2-Jul-08 7:14 
GeneralRe: VBscript, CreateFolder & Scheduler confusion. Pin
Member 37212832-Jul-08 20:26
Member 37212832-Jul-08 20:26 
Questiontimer vs thread Pin
Ebube2-Jul-08 5:58
Ebube2-Jul-08 5:58 
AnswerRe: timer vs thread Pin
Dave Kreskowiak2-Jul-08 7:12
mveDave Kreskowiak2-Jul-08 7:12 
AnswerRe: timer vs thread Pin
Ebube2-Jul-08 7:15
Ebube2-Jul-08 7:15 

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.