Friday, April 23, 2010

DATA READER(select from sql)

12 comments:

  1. in which deceleration do you use "" using system.data.sqlclient ""

    ReplyDelete
  2. using system.data.sqlclient
    Using this namespace we can integrate with only SQL SERVER back-end.

    ReplyDelete
  3. SqlConnection con = New SqlConnection (Data Source=.\SQLEXPRESS;AttachDbFilename="D:\Khan\Khan's work\Visual studio\Vote Casting\CastVote\CastVote\App_Data\Database1.mdf";Integrated Security=True;User Instance=True)

    WHERE IS THE MISTAKE? I WRITE THIS STATMENT IN

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    ReplyDelete
  4. SqlConnection con = New SqlConnection ("Data Source=.\SQLEXPRESS;AttachDbFilename="D:\Khan\Khan's work\Visual studio\Vote Casting\CastVote\CastVote\App_Data\Database1.mdf";Integrated Security=True;User Instance=True")

    try this

    ReplyDelete
  5. again problem.........

    ReplyDelete
  6. Emmu ,,static sqldatareader dr'''& con.open(); and many like these lines cannot be written in vb.ASP,,Can u plz make program in vb.net==DATAREADER's video

    ReplyDelete
  7. Sure naina thanq for your question.

    ReplyDelete
  8. Emmu i dont know whats the problem in my project,this is the 3rd time i make my project again & thats y i make all webforms again & set all format etc,,still evening my project going welll,,.after that now i switch my pc on & open the project ,,my all webforms are not runing,,i mean the parser error occure..""

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PoliticalPartyList.aspx.vb" Inherits="CastVote.PoliticalPartyList" %>
    ""
    And i find out my ans to some one but not right ans i got.

    ReplyDelete
  9. i think there is no problem in this line

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="PoliticalPartyList.aspx.vb" Inherits="CastVote.PoliticalPartyList" %>

    may be it is a softwere problem,,i m using Visual studio 2008.Because this project with this line is runing before.now what problem?

    ReplyDelete
  10. sorry Emmu for asking stupid Question..its magic or i dont know what but now my webform are runing........
    Sorry again.

    ReplyDelete
  11. hmmm thats great
    Dont be sorry naina i like to face questions expecially on Programming.

    ReplyDelete
  12. Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click
    dr.Read()
    TextBox1.Text = dr(0).ToString
    At this line "" Line 26: dr.Read() "'
    error occure.

    ReplyDelete