﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Error in call to base.OnPreRender(e) in ApplicationBasepage.cs</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:15:16 GMT</lastBuildDate><ttl>20</ttl><item><title>Error in call to base.OnPreRender(e) in ApplicationBasepage.cs</title><link>http://forum.strataframe.net/FindPost30505.aspx</link><description>Hi All.&lt;br/&gt;&lt;br/&gt;I am working my little heart out on a prototype using the web sample app. I have the search page up and running and am working on the edit page. After I clcik on Undo, I get this error:&lt;br/&gt;&lt;br/&gt;[ArgumentOutOfRangeException: 'ddlOwner' has a SelectedValue which is invalid because it does not exist in the list of items.&lt;br/&gt;Parameter name: value]&lt;br/&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.ListControl.set_SelectedValue(String value) +8548181&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Now, I understand what the error means. However, I also have a drop down list that contains owners from the users table. On the seach page, the owner shows up in the listview with a value that is theoretically in the users table (Anyway, it looks that way when I look at the data in SQL Server). When the Edit page comes up, the slected value in the owners drop down list is blank, even though I can see the correct value in the control's list.&lt;br/&gt;&lt;br/&gt;I have a similar problem with some other drop down lists on this page - same sort of error, same line of code. However, these drop down lists show up with the correct selected value when I first navigate to the edit page.&lt;br/&gt;&lt;br/&gt;Any idea on what is going on here? I have a feeling that it must be something simple, but I haven't done much web programming and could really use some help.&lt;br/&gt;&lt;br/&gt;TIA.&lt;br/&gt;&lt;br/&gt;-- Marcia</description><pubDate>Fri, 28 Oct 2011 11:22:23 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Error in call to base.OnPreRender(e) in ApplicationBasepage.cs</title><link>http://forum.strataframe.net/FindPost30509.aspx</link><description>[quote][b]Gerard O Carroll (10/28/2011)[/b]&lt;br/&gt;In the past, on some lookup type tables, I was getting inconsistent results if I had a table with a VarChar. If I chenge it to Char , seemd to fix it, I assum it was something in the VarChar to do with trailing spaces. It might be worth a try&lt;br/&gt;[/quote]&lt;br/&gt;&lt;br/&gt;Thanks for trying to help. That problem was solved a few hours agao. I was just wondering if there was an easy was to populate the drop down lists so that they would automagically right trim the items and act like they were case insensitive.&lt;br/&gt;&lt;br/&gt;If there is no EASY way, I am not really interested :)&lt;br/&gt;&lt;br/&gt;Have a great weekend!</description><pubDate>Fri, 28 Oct 2011 11:22:23 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Error in call to base.OnPreRender(e) in ApplicationBasepage.cs</title><link>http://forum.strataframe.net/FindPost30508.aspx</link><description>Hi Marcia.&lt;br/&gt;&lt;br/&gt;In the past, on some lookup type tables, I was getting inconsistent results if I had a table with a VarChar. If I chenge it to Char , seemd to fix it, I assum it was something in the VarChar to do with trailing spaces. It might be worth a try&lt;br/&gt;&lt;br/&gt;Regards,&lt;br/&gt;&lt;br/&gt;Gerard</description><pubDate>Fri, 28 Oct 2011 10:43:18 GMT</pubDate><dc:creator>Ger Cannoll</dc:creator></item><item><title>RE: Error in call to base.OnPreRender(e) in ApplicationBasepage.cs</title><link>http://forum.strataframe.net/FindPost30507.aspx</link><description>OK - here I am talking to myself again :)&lt;br/&gt;&lt;br/&gt;I tracked down the error in the users table to the fact that some of the user IDs in the users table have trailing spaces but the user_id in the table that contains the binding field does not. Is there any programmatic way to resolve this?&lt;br/&gt;&lt;br/&gt;And what about similar errors caused by the fact that the value of the field in the lookup table is stored in upper case by the value in the table being updated is in lower case?&lt;br/&gt;&lt;br/&gt;TIA&lt;br/&gt;&lt;br/&gt;-- Marcia</description><pubDate>Fri, 28 Oct 2011 09:12:23 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Error in call to base.OnPreRender(e) in ApplicationBasepage.cs</title><link>http://forum.strataframe.net/FindPost30506.aspx</link><description>Hi All.&lt;br/&gt;&lt;br/&gt;OK - I have some additional information. I thought that this might be a data issue and I resolved most of my error issues that were being caused by null values. The only one that remains is the one where I can see the owner in the table in SQL Server - it is not null, it shows up in the ListView on the search screen, but when I click the edit link, the owner does not show up in the drop down list on the edit page even though when I drop the list I can see the correect owner in it.&lt;br/&gt;&lt;br/&gt;One this line:&lt;br/&gt;&lt;br/&gt;&lt;font color=#0000ff size=2 face=Consolas&gt;&lt;font color=#0000ff size=2 face=Consolas&gt;&lt;font color=#0000ff size=2 face=Consolas&gt;base&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size=2 face=Consolas&gt;&lt;font size=2 face=Consolas&gt;&lt;font color=#000000&gt;.OnPreRender(e);&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;It gives me this error:&lt;br/&gt;&lt;br/&gt;[ArgumentOutOfRangeException: 'ddlOwner' has a SelectedValue which is invalid because it does not exist in the list of items.&lt;br/&gt;Parameter name: value]&lt;br/&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.WebControls.ListControl.set_SelectedValue(String value) +8548181&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Furthermore, the problem occurs only on specific records in the users table, so I think that it still may be data, but I have no clue what the problem might be because this one has nothing to do with null values. The field in the users table and the field in the table I am storing the user_id in are both defined as VARCHAR(10). Can someone point me in the right direction, please?&lt;br/&gt;&lt;br/&gt;Thanks!&lt;br/&gt;&lt;br/&gt;-- Marcia&lt;br/&gt;&lt;br/&gt;&lt;font size=2 face=Consolas&gt;&lt;font size=2 face=Consolas&gt;&lt;font color=#000000&gt;&lt;/font&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;/font&gt;&lt;/font&gt;</description><pubDate>Fri, 28 Oct 2011 09:04:40 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item></channel></rss>