Код: Выделить всё
protected void Done(object sender, EventArgs e)
{
private void Process(MyClass c, Mywebservice webservice)
{
if(c.Section.Elements.Any(element.SectionName == "area1"))
{
ClientScript.RegisterStartupScript(this.GetType(), "ShowPopup", "showAreaPopup();", true);
return; //show popup and stop execution until user input is given for area1
}
if(c.Section.Elements.Any(element.SectionName == "area2"))
{
ClientScript.RegisterStartupScript(this.GetType(), "ShowPopup", "showAreaPopup();", true);
return; //show popup and stop execution until user input is given for area2
}
int MyArea1 = 0;
if (int.TryParse(hiddenArea.Value, out Myarea1) && Myarea1> 0)
{
c.Details.Add(new Detail() { Name = "area1", Value = MyArea1});
}
int MyArea2 = 0;
if (int.TryParse(hiddenArea.Value, out MyArea2) && MyArea2 > 0)
{
c.Details.Add(new Detail() { Name = "area2", Value = MyArea2});
}
webservice.Complete(this.CaseId); //this is a web service
}
}
< /code>
function captureAreaVal() {
var areaVal = document.getElementById('').value;
if (areaVal && !isNaN(areaVal) && parseInt(areaVal) > 0) {
document.getElementById('').value = areaVal;
closeAreaPopup();
console.log("in captureAreaVal() ", areaVal);
}
}
Можете ли вы руководствовать, как отправить значение области, введенное пользователем в коде сервера. Мое требование возможно, если да, не могли бы вы помочь дать/исправить мой код. Ваша оперативная помощь высоко ценится. < /P>
Спасибо! Пожалуйста, помогите дать/исправить мой код для достижения моих требований.
Подробнее здесь: https://stackoverflow.com/questions/790 ... n-server-c
Мобильная версия