I cannot set the value (and I've also tried the text) of a RadNumericTextBox when checking for a session datatable returns true. I am trying to set the value from the session datatable. If the check returns false it sets the value but if true the RadNumericTextBox is blank. I've even tried commenting out everthing when true and just setting the value to no avail. The version for this site is 2008.1.415. Could it be a bug (that maybe was fixed later) or am I missing something. Please see code below.
Any help would be greatly appreciated
Dave
Any help would be greatly appreciated
Dave
private void ProcessQuoteRequests()
{
if (((DataTable)Session["DtQuoteRequest"]) != null)
{
//txtQuantity.Value = 5;
DataTable dt = new DataTable("dtQuoteReqTemp");
dt = (
DataTable)Session["DtQuoteRequest"];
DataRow dr = dt.Rows.Find(intProdID);
if (dr == null)
{
phAddToQuote.Visible =
true;
phAddedQuote.Visible =
false;
lblQuantity.Visible =
false;
TempLabel.Text =
"";
txtQuantity.Value = 1;
}
else
{
TempLabel.Text =
"Successfully added to quote request";
phAddToQuote.Visible =
true;
lblQuantity.Text = dr[
"Quantity"].ToString();
txtQuantity.Value =
Convert.ToInt32(dr["Quantity"].ToString());
phAddedQuote.Visible =
true;
}
}
else
{
phAddToQuote.Visible =
true;
txtQuantity.Value = 1;
}
}