aspwizard

Validate all wizard steps on FinishButtonClick

自闭症网瘾萝莉.ら 提交于 2019-12-21 21:43:15
问题 I have an asp:wizard control that contains five WizardSteps. All of these steps have form controls, and most of these controls have validators. When the user steps through the wizard with the next and previous buttons everything is working great, and validation triggers as it should. However, if the user chooses to navigate the wizard using the links in the SideBar, he or she could skip some of the steps. When the last page is submitted (which is a summary page) there might be controls in the

How do I create a table with my dynamically created textboxes?

依然范特西╮ 提交于 2019-12-13 04:14:25
问题 In this project I am using a users input to create textboxes dynamically: int ReqPO = Convert.ToInt32(txtReqPONum.Text); int n = ReqPO; for (int i = 0; i < n; i++) { TextBox MyTextBox = new TextBox(); //Assigning the textbox ID name MyTextBox.ID = "txtPOAmount" + "" + ViewState["num"] + i; this.Form.Controls.Add(MyTextBox); } Edited Here is where I got which is not too far. Now Im just getting tons of errors Table table1 = new Table(); TableRow tr = null; TableCell tc = null; int ReqPO =