Updatepanel issue with Script manager
Hi,
I have an issue using Upadtepanel, if i use it on the form the Gridview does not seem to work. Is there a way out for this?
Please help me
Thanks
Pankaj Singh
Answers (3)
3
Yes we all were wrong use this
- numMaxLimit.Text =Convert.ToString(Convert.ToDecimal(strArray[1]));
Accepted 4
Have you tested this?
- numMaxLimit.Text = Convert.ToDecimal(strArray[1]);
3
try this
- numMaxLimit.Text = Convert.ToDecimal(strArray[1]).ToString();
-
- numMaxLimit.Text = decimal.Parse(strArray[1]).ToString();
3
Hey you can use both
Convert.ToDecimal() and
decimal.Parse()- numMaxLimit.Text = Convert.ToDecimal(strArray[1]);
-
- numMaxLimit.Text = decimal.Parse(strArray[1]);
3
CHeck with below line
- numMaxLimit.Text = Convert.ToDecimal(strArray[1]);
2
- ConfigurationBLL configurationBLL = new ConfigurationBLL();
-
- if (lblSpotID.Text == "ID")
- {
- int num1 = (int)MessageBox.Show("Please select a spot", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- else if (txtSpotName.Text == "")
- {
- int num2 = (int)MessageBox.Show("Please enter a spot name", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- else if (numMaxLimit.Value < numMaxLimit.Minimum || numMaxLimit.Value > numMaxLimit.Maximum)
- {
- int num3 = (int)MessageBox.Show("Please enter a valid spot max limit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- else if (!rbtnOnSpot.Checked && !rbtnOffSpot.Checked)
- {
- int num4 = (int)MessageBox.Show("Please mark on/off on selected spot", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
- }
- else
- {
- int isOn = rbtnOnSpot.Checked ? 1 : 0;
- configurationBLL.SaveDutySpot(int.Parse(lblSpotID.Text), txtSpotName.Text, (int)numMaxLimit.Value, isOn);
- int row = int.Parse(lblSpotRow.Text);
- Button controlFromPosition = (Button)tblDutySpot.GetControlFromPosition(int.Parse(lblSpotCol.Text), row);
- controlFromPosition.Text = txtSpotName.Text + Environment.NewLine + (object)numMaxLimit.Value;
- if (isOn == 1)
- controlFromPosition.BackColor = Color.Green;
- else
- controlFromPosition.BackColor = Color.Red;
- int num5 = (int)MessageBox.Show("Spot updated successfully", "Duty Spot", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
Error On This Line
else if (numMaxLimit.Value < numMaxLimit.Minimum || numMaxLimit.Value > numMaxLimit.Maximum)
configurationBLL.SaveDutySpot(int.Parse(lblSpotID.Text), txtSpotName.Text, (int)numMaxLimit.Value, isOn);
controlFromPosition.Text = txtSpotName.Text + Environment.NewLine + (object)numMaxLimit.Value;

2
Thank You For ALL
Sachin Singh Pm Message
2
2
Cannot implicitly convert type 'decimal' to 'string'