Click here to Skip to main content
15,867,835 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Object does not contain definition for substring. Pin
Luc Pattyn22-Aug-17 7:00
sitebuilderLuc Pattyn22-Aug-17 7:00 
GeneralRe: Object does not contain definition for substring. Pin
ZurdoDev22-Aug-17 4:44
professionalZurdoDev22-Aug-17 4:44 
GeneralRe: Object does not contain definition for substring. Pin
User 1013254622-Aug-17 5:11
User 1013254622-Aug-17 5:11 
GeneralRe: Object does not contain definition for substring. Pin
Richard Deeming22-Aug-17 7:58
mveRichard Deeming22-Aug-17 7:58 
GeneralRe: Object does not contain definition for substring. Pin
ZurdoDev22-Aug-17 8:04
professionalZurdoDev22-Aug-17 8:04 
AnswerRe: Object does not contain definition for substring. Pin
Richard Deeming18-Aug-17 5:36
mveRichard Deeming18-Aug-17 5:36 
GeneralRe: Object does not contain definition for substring. Pin
samflex18-Aug-17 8:29
samflex18-Aug-17 8:29 
GeneralRe: Object does not contain definition for substring. Pin
Richard Deeming18-Aug-17 8:46
mveRichard Deeming18-Aug-17 8:46 
No. The format parameter is the same string you'd pass to String.Format[^], with a single placeholder representing the value returned from the data source.

Eval("rblPurchaseType","rblPurchaseType") will literally return the string "rblPurchaseType", since there is no placeholder in the format parameter.

If you wanted to return the value of the field as a string, you'd need: Eval("rblPurchaseType", "{0}")

But since the AddWithValue method takes an object, you'd be better off using the overload that doesn't convert the value to a string:
cmd2.Parameters.AddWithValue("@ptype", Eval("rblPurchaseType"));




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Object does not contain definition for substring. Pin
samflex18-Aug-17 8:58
samflex18-Aug-17 8:58 
GeneralRe: Object does not contain definition for substring. Pin
Richard Deeming21-Aug-17 0:32
mveRichard Deeming21-Aug-17 0:32 
QuestionAnything new exist to test EF repository instead of Mock lib in .Net Core Pin
Mou_kol17-Aug-17 23:46
Mou_kol17-Aug-17 23:46 
AnswerRe: Anything new exist to test EF repository instead of Mock lib in .Net Core Pin
Richard MacCutchan18-Aug-17 1:34
mveRichard MacCutchan18-Aug-17 1:34 
QuestionRich Textbox Pin
Member 1336179216-Aug-17 0:16
Member 1336179216-Aug-17 0:16 
AnswerRe: Rich Textbox Pin
Afzaal Ahmad Zeeshan16-Aug-17 1:36
professionalAfzaal Ahmad Zeeshan16-Aug-17 1:36 
QuestionASP and SQL web application help Pin
Member 1336148915-Aug-17 18:12
Member 1336148915-Aug-17 18:12 
AnswerRe: ASP and SQL web application help Pin
Richard MacCutchan15-Aug-17 21:20
mveRichard MacCutchan15-Aug-17 21:20 
QuestionUnable to delete a dynamically generated row in Repeater Pin
samflex13-Aug-17 17:23
samflex13-Aug-17 17:23 
AnswerRe: Unable to delete a dynamically generated row in Repeater Pin
Kornfeld Eliyahu Peter13-Aug-17 19:09
professionalKornfeld Eliyahu Peter13-Aug-17 19:09 
GeneralRe: Unable to delete a dynamically generated row in Repeater Pin
samflex14-Aug-17 2:18
samflex14-Aug-17 2:18 
AnswerRe: Unable to delete a dynamically generated row in Repeater Pin
Kornfeld Eliyahu Peter14-Aug-17 4:03
professionalKornfeld Eliyahu Peter14-Aug-17 4:03 
GeneralRe: Unable to delete a dynamically generated row in Repeater Pin
samflex14-Aug-17 5:06
samflex14-Aug-17 5:06 
QuestionCross site scripting poor validation for asp.net labels Pin
Member 1335715611-Aug-17 3:19
Member 1335715611-Aug-17 3:19 
AnswerRe: Cross site scripting poor validation for asp.net labels Pin
Richard Deeming13-Aug-17 23:49
mveRichard Deeming13-Aug-17 23:49 
GeneralRe: Cross site scripting poor validation for asp.net labels Pin
Member 1335715616-Aug-17 6:05
Member 1335715616-Aug-17 6:05 
GeneralRe: Cross site scripting poor validation for asp.net labels Pin
Richard Deeming16-Aug-17 10:11
mveRichard Deeming16-Aug-17 10:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.