TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
selva kumar
NA
4
2k
Invalid attempt to read when no data is present in ASP.NET
Feb 4 2015 2:42 AM
I am using C# to learn ASP.NET, I tried to write authentication code as
but i am always got these error plz give some solution..
protected void Button3_Click(object sender, EventArgs e)
{
Button3.Visible = true;
txtdms.Visible = true;
lbldms.Visible = true;
str3 = "Select [Coloum Name1],[Coloum Name2] from LPsupplier where [DMS Vendor Code] = '" + txtbox.Text + "'";
sqlCmd.Connection = conn;
sqlCmd.Connection.Open();
sqlCmd.CommandText = str3;
sqlDr = sqlCmd.ExecuteReader();
sqlDr.Read();
txtaxcode.Text = sqlDr["Coloum Name1"].ToString();
txtvendorname.Text = sqlDr["Coloum Name2"].ToString();
}
Reply
Answers (
2
)
Instead of Grid View can we use table???
How to use ng-grid in ASP.NET Page