Welcome to Dream.In.Code
Become an Expert!

Join 150,033 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,579 people online right now. Registration is fast and FREE... Join Now!




code for billing project using vb coding in asp.net environment for or

 
Reply to this topicStart new topic

code for billing project using vb coding in asp.net environment for or, i need help to code to data insertion through front end(asp.net using

Rating  5
sanvan5
9 Feb, 2008 - 11:05 AM
Post #1

New D.I.C Head
*

Joined: 9 Feb, 2008
Posts: 2

sir i m a beginer in asp.net programming, i m working on initial level poject where i m trying to prepare a billing information system, i have attached the projec file i have made, but i got conectivity to oracle database with the help of few book codes provided by the wrox's asp.net but i m not able to save the details of a userdata info of after login in my oracle data base...i m using the vb language coding in my project.. please help me out...how to code for the saving the user detils intered in form to my oracle database..& how to insert,update,delete&modify the details in oracle database from the front end coding...coz every book shows the code using c# for ms sql database not for oracle using vb coding , so finally help me out..
thankx,
with regards,
sanjeev kumar singh
(B-Tech , Electronics, CDAC,Noida)
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Code For Billing Project Using Vb Coding In Asp.net Environment For Or
9 Feb, 2008 - 12:17 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,483



Thanked: 161 times
Dream Kudos: 9075
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif
User is offlineProfile CardPM
+Quote Post

sanvan5
RE: Code For Billing Project Using Vb Coding In Asp.net Environment For Or
9 Feb, 2008 - 02:18 PM
Post #3

New D.I.C Head
*

Joined: 9 Feb, 2008
Posts: 2

QUOTE(PsychoCoder @ 9 Feb, 2008 - 01:17 PM) *

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif


i m attaching the my project file please give perfact coding to save the user details from front end asp.net using vb codeing to bak end (oracle)
i m using code behind model of asp.net
here i have tried some thing..
front end design:
CODE

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Userdataform.aspx.vb" Inherits="Userdataform" %>

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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server" method="post">
    <div style="Z-INDEX: 101; LEFT: 8px; WIDTH: 731px; POSITION: absolute; TOP: 8px; HEIGHT: 452px">
                   <asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 276px; position: absolute;
                top: 16px" Width="154px">Create New User</asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" Height="22px" Style="z-index: 101; left: 136px;
                position: absolute; top: 60px" Width="155px"></asp:TextBox>
            <asp:Label ID="Label2" runat="server" Height="19px" Style="z-index: 102; left: 16px;
                position: absolute; top: 64px" Width="108px">Enter Id</asp:Label>
            <asp:TextBox ID="TextBox2" runat="server" Height="22px" Style="z-index: 103; left: 136px;
                position: absolute; top: 112px" Width="155px"></asp:TextBox>
            <asp:Label ID="Label3" runat="server" Height="19px" Style="z-index: 104; left: 16px;
                position: absolute; top: 115px" Width="108px">Enter First Name</asp:Label>
            <asp:Label ID="Label5" runat="server" Style="z-index: 105; left: 16px; position: absolute;
                top: 296px" Width="108px">Address</asp:Label>
            <asp:Label ID="Label7" runat="server" Height="19px" Style="z-index: 106; left: 408px;
                position: absolute; top: 60px" Width="120px">E-Mail :</asp:Label>
            <asp:Label ID="Label8" runat="server" Height="19px" Style="z-index: 107; left: 408px;
                position: absolute; top: 110px" Width="120px">Enter UserName</asp:Label>
            <asp:TextBox ID="TextBox7" runat="server" Height="22px" Style="z-index: 108; left: 544px;
                position: absolute; top: 112px" Width="145px"></asp:TextBox>
            <asp:TextBox ID="TextBox3" runat="server" Height="22px" Style="z-index: 109; left: 136px;
                position: absolute; top: 170px" Width="155px"></asp:TextBox>
            <asp:Label ID="Label4" runat="server" Height="19px" Style="z-index: 110; left: 16px;
                position: absolute; top: 174px" Width="108px">Enter Last Name</asp:Label>
            <asp:TextBox ID="TextBox5" runat="server" Height="22px" Style="z-index: 111; left: 136px;
                position: absolute; top: 233px" Width="155px"></asp:TextBox>
            <asp:Label ID="Label6" runat="server" Height="19px" Style="z-index: 112; left: 16px;
                position: absolute; top: 237px" Width="108px">Mobile No</asp:Label>
            <asp:TextBox ID="TextBox8" runat="server" Height="22px" Style="z-index: 113; left: 544px;
                position: absolute; top: 168px" TextMode="Password" Width="145px"></asp:TextBox>
            <asp:TextBox ID="TextBox4" runat="server" Height="76px" Style="z-index: 114; left: 136px;
                position: absolute; top: 292px" Width="200px" TextMode="MultiLine"></asp:TextBox>
            <asp:TextBox ID="TextBox6" runat="server" Height="22px" Style="z-index: 115; left: 544px;
                position: absolute; top: 56px" Width="145px"></asp:TextBox>
            <asp:Label ID="Label9" runat="server" Height="19px" Style="z-index: 116; left: 408px;
                position: absolute; top: 173px" Width="120px">Enter Password</asp:Label>
            <asp:TextBox ID="TextBox9" runat="server" Height="22px" Style="z-index: 117; left: 544px;
                position: absolute; top: 221px" TextMode="Password" Width="145px"></asp:TextBox>
            <asp:Label ID="Label10" runat="server" Style="z-index: 118; left: 408px; position: absolute;
                top: 225px" Width="120px" Height="19px">Confirm Password</asp:Label>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox8"
                ControlToValidate="TextBox9" ErrorMessage="Enter same password" Style="z-index: 119;
                left: 548px; position: absolute; top: 274px" Width="146px" Height="19px"></asp:CompareValidator>
         
        <asp:Button ID="Button1" runat="server" Style="z-index: 120; left: 315px; position: absolute;
            top: 396px" Text="Button" Height="31px" Width="76px" />
         
        <asp:LinkButton ID="LinkButton1" runat="server" Height="19px" Style="z-index: 122;
            left: 621px; position: absolute; top: 421px" Width="73px">LinkButton</asp:LinkButton>
      </div>
    </form>
</body>
</html>


here is vb coding i tried

CODE

Imports System.data
Imports system.data.OleDb
Imports system.data.OleDb.OleDbType
Partial Class Userdataform
    Inherits System.Web.UI.Page
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
        Response.Redirect("welcome.aspx")
    End Sub

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim conn As New OleDbConnection("Provider=MSDAORA.1;Data Source=mydb;Persist Security Info=True;User ID=INV;Password=INV;Unicode=True")
        Dim cmd As OleDbCommand = New OleDbCommand("insert into userdata", conn)
        Dim dr As OleDbDataReader
        Dim ds As New DataSet
        conn.Open()
        dr = cmd.ExecuteReader()
        
        conn.Close()
        Dim ds As New DataSet
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Button1.Text = "SUBMIT"
        LinkButton1.Text = "BACK"
    End Sub
End Class




Attached File(s)
Attached File  BIMS.zip ( 619bytes ) Number of downloads: 73
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 09:40PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month