Click here to Skip to main content
15,886,664 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNeed a article on repository and data access code unit testing Pin
Mou_kol17-Sep-17 22:54
Mou_kol17-Sep-17 22:54 
AnswerRe: Need a article on repository and data access code unit testing Pin
F-ES Sitecore18-Sep-17 0:07
professionalF-ES Sitecore18-Sep-17 0:07 
PraiseRe: Need a article on repository and data access code unit testing Pin
Mou_kol19-Sep-17 23:56
Mou_kol19-Sep-17 23:56 
Questionvb.net 2010 web form app point to correct .net framework Pin
dcof15-Sep-17 14:49
dcof15-Sep-17 14:49 
QuestionAdding API's to website Pin
Member 1271965814-Sep-17 10:35
Member 1271965814-Sep-17 10:35 
QuestionHow do I handle nulls in RadioButtonList in Repeater? Pin
samflex13-Sep-17 9:50
samflex13-Sep-17 9:50 
AnswerRe: How do I handle nulls in RadioButtonList in Repeater? Pin
Kornfeld Eliyahu Peter13-Sep-17 10:29
professionalKornfeld Eliyahu Peter13-Sep-17 10:29 
GeneralRe: How do I handle nulls in RadioButtonList in Repeater? Pin
samflex13-Sep-17 11:04
samflex13-Sep-17 11:04 
Let me try to explain this one more time, hopefully better.

We have a lookup table with a list of account numbers.

For a user to fill his/her account information, s/he must first select an account from the look up table.

When that account number is entered, if any records associated with that account exists, then those records populate the Repeater control form.

Users can then either modify any existing record or enter any records that does not exist already exist with that account number.

So, in my situation, if any of those values on the RadioButtonList does not exist, then it throws the error it is throwing now.

This is not a question of inserting null value in RadioButtonList because it is a required field.

It is a question of no value existing at all and user needs to be allowed to choose of the two values but the user cannot get to that point of selecting a value when the error message doesn't let them get there.

I believe this datatable below is the source of the error.

If I can figure out a way to assign it a default value other than empty string, I think it will resolve the issue.

      dr = dt.NewRow();
        dr["RowNumber"] = 1;
        dr["horsepType"] = string.Empty;
        dr["rblIssues"] = string.Empty;
        dr["vesseltypeUse"] = string.Empty;
        dt.Rows.Add(dr);
    }
    else
    {
        dt = (DataTable)ViewState["CurrentTable"];
    }
    //Store the DataTable in ViewState for future reference
    ViewState["CurrentTable"] = dt;
    if (dt.Rows.Count > 0)
    {
        //Bind the Repeater with the DataTable
        Repeater2.DataSource = dt;
        Repeater2.DataBind();
    }
}

AnswerRe: How do I handle nulls in RadioButtonList in Repeater? Pin
Richard Deeming14-Sep-17 1:51
mveRichard Deeming14-Sep-17 1:51 
GeneralRe: How do I handle nulls in RadioButtonList in Repeater? Pin
samflex14-Sep-17 3:58
samflex14-Sep-17 3:58 
QuestionAny utilities for replicating Web Site files through intermediary drop into web site testing location. Pin
Blake Miller6-Sep-17 12:27
Blake Miller6-Sep-17 12:27 
Questionusing asp.net c# Pin
Member 133738734-Sep-17 18:58
Member 133738734-Sep-17 18:58 
AnswerRe: using asp.net c# Pin
User 418025418-Sep-17 3:21
User 418025418-Sep-17 3:21 
QuestionHttp to Https URL rewriting Pin
Member 1129085529-Aug-17 2:37
Member 1129085529-Aug-17 2:37 
AnswerRe: Http to Https URL rewriting Pin
A_Griffin29-Aug-17 3:36
A_Griffin29-Aug-17 3:36 
GeneralRe: Http to Https URL rewriting Pin
Member 1129085530-Aug-17 1:40
Member 1129085530-Aug-17 1:40 
GeneralRe: Http to Https URL rewriting Pin
Nathan Minier13-Sep-17 2:04
professionalNathan Minier13-Sep-17 2:04 
QuestionFile Upload and Export option with VS 2015 Pin
netbrain software28-Aug-17 23:00
netbrain software28-Aug-17 23:00 
AnswerRe: File Upload and Export option with VS 2015 Pin
A_Griffin29-Aug-17 0:17
A_Griffin29-Aug-17 0:17 
AnswerRe: File Upload and Export option with VS 2015 Pin
netbrain software29-Aug-17 20:58
netbrain software29-Aug-17 20:58 
QuestionGridview with checkboxes Pin
Michael Clinton28-Aug-17 12:52
Michael Clinton28-Aug-17 12:52 
Questionregarding asp.net Pin
Member 1337387327-Aug-17 20:58
Member 1337387327-Aug-17 20:58 
AnswerRe: regarding asp.net Pin
Member 1326737028-Aug-17 21:22
Member 1326737028-Aug-17 21:22 
Questionregarding asp.net Pin
Member 1337387327-Aug-17 20:56
Member 1337387327-Aug-17 20:56 
QuestionMessage Closed Pin
23-Aug-17 18:39
lanphuonglien23-Aug-17 18:39 

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.