Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
3
Answers
Asp.net Label is an ambiguous reference
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Dipa Ahuja
15y
14.8k
1
Reply
hello i have one formview control n i want to retrive values from that n add save them in local variables pcode:
pname:
price: Rs.
Return to the main shop
this is .cs file code for iamgebutton's click event: protected void ImageButton2_Click(object sender, System.Web.UI.ImageClickEventArgs e) { string pname = ((Label)FormView1.FindControl("pnameLabel")).Text; string price = ((Label)FormView1.FindControl("priceLabel")).Text; double price = double.Parse(p.ToString()); } i get error while retriving values of labels : Error1'Label' is an ambiguous reference between 'System.Web.UI.WebControls.Label' and 'System.Windows.Forms.Label' n for double.Parse: like : "Input string was not in a correct format"
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
Clearing "Download history"
ASP.NET application Hosting