Click here to Skip to main content
15,885,244 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex22-Sep-17 4:56
samflex22-Sep-17 4:56 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex22-Sep-17 5:09
samflex22-Sep-17 5:09 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex22-Sep-17 5:35
samflex22-Sep-17 5:35 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming22-Sep-17 5:43
mveRichard Deeming22-Sep-17 5:43 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex22-Sep-17 8:19
samflex22-Sep-17 8:19 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex22-Sep-17 9:11
samflex22-Sep-17 9:11 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming25-Sep-17 1:53
mveRichard Deeming25-Sep-17 1:53 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex25-Sep-17 3:22
samflex25-Sep-17 3:22 
The error is coming from populateRecord method. I went back and looked at your solution, I believe I am using the code correctly. I am pasting here again just so you can take a look.
Sorry sir.

ivate void PopulateRecord(DataTable table1)
{
    DataTable table2 = LoadTable2(true);
    table2.Rows.Clear();
    
    foreach (DataRow row in table1.Rows)
    {

        DataRow dr = table2.NewRow();
        dr["RowNumber"] = table2.Rows.Count + 1;
        dr["aRegNo"] = row["MarineRegNo"];
        dr["coastGuardNumber"] = row["VesselRegNo"];
        dr["boatcnty"] = string.Empty;
        dr["aMake"] = string.Empty;
        dr["mMake"] = string.Empty;
        dr["ModelNoA"] = string.Empty;
        dr["ModelNoM"] = string.Empty;
        dr["boatYrBuilt"] = string.Empty;
        dr["motorYrBuilt"] = string.Empty;
        dr["blength"] = string.Empty;
        dr["hullmaterial"] = string.Empty;
        dr["mhorsepower"] = string.Empty;
        dr["rdlmhorsepType"] = string.Empty;
        dr["datePurchased"] = string.Empty;
        dr["mdatePurchased"] = string.Empty;
        dr["PurchaseType"] = string.Empty;
        dr["rblmPurchasedType"] = string.Empty;
        dr["PrevOnwerName"] = string.Empty;
        dr["prevAddr"] = string.Empty;
        dr["prevCity"] = string.Empty;
        dr["PrevState"] = string.Empty;
        dr["prevzip"] = string.Empty;
        dr["mPrevOnwerName"] = string.Empty;
        dr["mprevAddr"] = string.Empty;
        dr["mprevCity"] = string.Empty;
        dr["mPrevState"] = string.Empty;
        dr["mprevzip"] = string.Empty;
        dr["buyername"] = string.Empty;
        dr["buyeraddress"] = string.Empty;
        dr["buyercity"] = string.Empty;
        dr["buyerstate"] = string.Empty;
        dr["buyerzip"] = string.Empty;
        dr["datesold"] = string.Empty;
        dr["salePrice"] = string.Empty;
        dr["Description"] = string.Empty;
        dr["mbuyername"] = string.Empty;
        dr["mbuyeraddress"] = string.Empty;
        dr["mbuyercity"] = string.Empty;
        dr["mbuyerstate"] = string.Empty;
        dr["mbuyerzip"] = string.Empty;
        dr["mdatesold"] = string.Empty;
        dr["msalePrice"] = string.Empty;
        dr["mDescription"] = string.Empty;
        dr["boatCost"] = string.Empty;
        dr["motorCost"] = string.Empty;
        dr["rblIssues"] = string.Empty;
        dr["functionalIsses"] = string.Empty;
        dr["mrblIssues"] = string.Empty;
        dr["mfunctionalIsses"] = string.Empty;
        dr["vesseltypeUse"] = string.Empty;
        dr["vesselname"] = string.Empty;
        dr["vessellength"] = string.Empty;
        dr["vesselYrBult"] = string.Empty;
        dr["VesselHullMateria"] = string.Empty;
        dr["vesselhorsepEngine"] = string.Empty;
        dr["VesselYrPurchased"] = string.Empty;
        dr["PurchasedNew"] = string.Empty;
        dr["VesselPurchaseAmt"] = string.Empty;
        dr["homePort"] = string.Empty;
        dr["whereDocked"] = string.Empty;
        dr["bmequipAccessoryList"] = string.Empty;
        table2.Rows.Add(dr);
    }
    
    Repeater2.DataSource = table2;
    Repeater2.DataBind();
    
    foreach (RepeaterItem item in Repeater2.Items)
    {
        ((Button)item.FindControl("BtnAdd2")).Visible = table2.Rows.Count > 1;
        ((Button)item.FindControl("btnDelete2")).Visible = table2.Rows.Count > 1;
    }
}

GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming25-Sep-17 3:51
mveRichard Deeming25-Sep-17 3:51 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex25-Sep-17 4:20
samflex25-Sep-17 4:20 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming25-Sep-17 4:30
mveRichard Deeming25-Sep-17 4:30 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex25-Sep-17 6:32
samflex25-Sep-17 6:32 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming25-Sep-17 6:36
mveRichard Deeming25-Sep-17 6:36 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex25-Sep-17 8:23
samflex25-Sep-17 8:23 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming25-Sep-17 10:43
mveRichard Deeming25-Sep-17 10:43 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex25-Sep-17 10:58
samflex25-Sep-17 10:58 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
samflex26-Sep-17 6:56
samflex26-Sep-17 6:56 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming26-Sep-17 7:21
mveRichard Deeming26-Sep-17 7:21 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? (SOLVED) Pin
samflex26-Sep-17 7:59
samflex26-Sep-17 7:59 
GeneralRe: Repeater2 is not getting populated with data from Repeater2. Any ideas? Pin
Richard Deeming26-Sep-17 8:05
mveRichard Deeming26-Sep-17 8:05 
QuestionMy service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345320-Sep-17 1:26
professionalMember 1286345320-Sep-17 1:26 
AnswerRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Nathan Minier20-Sep-17 1:43
professionalNathan Minier20-Sep-17 1:43 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345320-Sep-17 18:58
professionalMember 1286345320-Sep-17 18:58 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Nathan Minier21-Sep-17 1:43
professionalNathan Minier21-Sep-17 1:43 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345322-Sep-17 23:44
professionalMember 1286345322-Sep-17 23:44 

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.