I've got an intermittent bug with Postbacks and ASP.NET, maybe someone has
seen before:
In a nutshell, on two servers the form postbacks are fine, and all the
DropDownLists, TextBoxes, and else are accessible in the postback processing
routine.
However, when the same project is deployed to the production server the
postback processing routine receives NULL for the DropDowns, i.e.
"cmbType.SelectedItem" is null, even though all fields are filled in, and
the same code works on another server.........
Thanks!
Alex
CODE EXCERPTS:
PAGE LOAD:
private void Page_Load(object sender, System.EventArgs e)
{
if (IsPostBack)
{
ProcessForm();
Response.Redirect("default.aspx", true);
return;
}
}
protected bool ProcessForm()
{
String strIncidentXml;
//Type
strIncidentXml += "<casetypecode>" +
cmbType.SelectedItem.Value.ToString()
+ "</casetypecode>";
//Subject
strIncidentXml += "<subjectid>" +
cmbSubject.SelectedItem.Value.ToString()
+ "</subjectid>";
//Priority
strIncidentXml += "<prioritycode>" +
cmbPriority.SelectedItem.Value.ToString()
+ "</prioritycode>";
//Contact Name
strIncidentXml += "<CFSContactName>" +
lblContactName.Text
+ "</CFSContactName>";
....
}
--
remove underscores to email