这是我的网络表单详细信息,请帮助 [英] This one is my web form details please help

查看:48
本文介绍了这是我的网络表单详细信息,请帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网络表单
包含通用详细信息和一个Web用户控件,如果用户需要,该控件会动态调用
然后其他块,即提交上述控件的详细信息.
在这里,我如何从Web用户控件页面获取控件值
-------------
我只想在基于用户需求的Web用户控件中添加一段代码,因此由于这个原因,每次都应提交公用详细信息.
bcoz按钮,用于保存最少详细信息的按钮应放在其自身的Web表单中.
在Web用户控件中
我需要一个标题行为普通表且嵌套表本身为2列的表.
第一行必须填写,如果用户要通过单击+按钮移至另一行,请在上表中添加一行

我怎么能单独尝试这些,但是我没有把这些东西结合在一起呢?
即使我也尝试过材料,但我无法弥补.

请任何人帮帮我.

my web form
contains common details and a web user control called dynamically if user needs
then other block i.e submitting the details of above mentioned controls.
here how can i get the controls values from the web user control page
-------------
i just want to add a piece of code with in the web user controls added based on the user requirement so because of this reason submitting the common details should be done for every time.
bcoz of it the button to save the minimum details should be placed in the web form it self.
In the web user control
i need a table with header row as common and nested table in a 2 columns itself.
the first row Must be filled, if user want to another row by clicking on to the +button add a row to the above table

how can do this one i have tried these individually but im not getting the combination of these thing y i dono?
even i have tried for the materials aslo but i can''t make over it.

please can any one help me.

推荐答案

for (int i = 0; i < 9; i++) //Creating Loop for Fisrt Tab.
            {
                Tz_Bud_Fur.IntRoomsTypeId = i + 1;
                //Assining the Fincontrol events As per Controls for First Tab.
                //System.Web.UI.WebControls.TextBox
                Tz_Bud_Fur.IntRoomsinUse = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_0")).Text.Trim());
                Tz_Bud_Fur.IntRoomsGood = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_1")).Text.Trim());
                Tz_Bud_Fur.IntRoomsInRepair = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_2")).Text.Trim());
                Tz_Bud_Fur.IntRoomsUnderConstruct = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_3")).Text.Trim());
                Tz_Bud_Fur.IntSingleSDesks = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_4")).Text.Trim());
                Tz_Bud_Fur.IntDoubleSDesks = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_5")).Text.Trim());
                Tz_Bud_Fur.IntThreeSDesks = Convert.ToInt32(((DevExpress.Web.ASPxEditors.ASPxTextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_6")).Text.Trim());
                Tz_Bud_Fur.IntChairs = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_7")).Text.Trim());
                Tz_Bud_Fur.IntTblForOneStudent = Convert.ToInt32(((System.Web.UI.WebControls.TextBoxTable1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_8")).Text.Trim());
                Tz_Bud_Fur.IntTblForTwoStudents = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_9")).Text.Trim());
                //Method Execute for Insert Statement retreving the Method From Class file(Tz_PrePrimary_BuildingsAndFurniture) for table tblRoomsAndFurniture
                if (Tz_Bud_Fur.InsertRoomsAndFurnitureByType() == 0)
                {

                    //XtraMessageBox.Show(xNew, "Error while saving Details of " + TabPageStudEnrolment.Text.ToString() + ".", "EMIS", MessageBoxButtons.OK, MessageBoxIcon.Error);

                }


这篇关于这是我的网络表单详细信息,请帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆