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
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.
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.
in which deceleration do you use "" using system.data.sqlclient ""
ReplyDeleteusing system.data.sqlclient
ReplyDeleteUsing this namespace we can integrate with only SQL SERVER back-end.
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)
ReplyDeleteWHERE IS THE MISTAKE? I WRITE THIS STATMENT IN
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
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")
ReplyDeletetry this
again problem.........
ReplyDeleteEmmu ,,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
ReplyDeleteSure naina thanq for your question.
ReplyDeleteEmmu 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..""
ReplyDelete<%@ 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.
i think there is no problem in this line
ReplyDelete<%@ 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?
sorry Emmu for asking stupid Question..its magic or i dont know what but now my webform are runing........
ReplyDeleteSorry again.
hmmm thats great
ReplyDeleteDont be sorry naina i like to face questions expecially on Programming.
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click
ReplyDeletedr.Read()
TextBox1.Text = dr(0).ToString
At this line "" Line 26: dr.Read() "'
error occure.