Step 3. Create a new folder named

Step 3. Create a new folder named "

Step 3. Create a new folder named "MyForms". Find the DevExpressASPxSchedulerForms folder. If this folder is missing, you can create it and copy default templates to your project site using the ASPxScheduler control's Smart Tag, as described in the Dialog Forms article. Find the AppointmentForm.ascx form and the corresponding code-behind file AppointmentForm.ascx.cs (or AppointmentForm.ascx.vb if you use Visual Basic). Copy them to the newly created folder MyForms. Rename the copied files to "UserAppoinmentForm" - i.e. UserAppointmentForm.ascx and UserAppointmentForm.ascx.cs (or UserAppointmentForm.ascx.vb if you use Visual Basic).

Do not forget to rename the class definition for the form in the code-behind file - to the public partial class UserAppointmentForm : SchedulerFormControl

Step 4. Check to see whether or not the Codebehind property value of the "@ Control" directive in the UserAppointmentForm.ascx page is changed to the new name of the code-behind file - Codebehind="UserAppointmentForm.ascx.cs". This should be done automatically, if not, rename it manually.

If your project is a web application, rename a custom template class to avoid errors during compilation. To accomplish this, rename the class AppointmentForm in the UserAppointmentForm.ascx code-behind file and in the designer class file to UserAppointmentForm.

Step 5. Change the ASPxSchedulerOptionsForms.AppointmentFormTemplateUrl property, which you may find under the OptionsForms tag (OptionsForms section in Property Pages) to the value corresponding to a new location of the form's template, i.e. ~/MyForms/UserAppointmentForm.ascx.

Step 6. Add new controls to the form. In our case, it will be an ASPxTextBox control with the ID set to "tbField1" and ASPxMemo control with its ID set to "memField2".

Step 7. Add a new class definition file to App_Code folder. Name it "UserAppointmentFormClass.cs".

Step 8. In this file define a public class UserAppointmentFormTemplateContainer that inherits from the AppointmentFormTemplateContainer class. It will provide data from the custom fields for display on a page. You can adjust the data as required.
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
ขั้นตอนที่ 3 สร้างโฟลเดอร์ใหม่ที่ชื่อว่า "MyForms" ค้นหาโฟลเดอร์ DevExpressASPxSchedulerForms ถ้าโฟลเดอร์นี้หายไป คุณสามารถสร้าง และคัดลอกแม่แบบเริ่มต้นไซต์โครงการใช้สมาร์ทแท็กของตัวควบคุม ASPxScheduler ตามที่อธิบายไว้ในบทความโต้ตอบแบบฟอร์ม ค้นหาแบบฟอร์ม AppointmentForm.ascx และสอดคล้องด้านหลังรหัสแฟ้ม AppointmentForm.ascx.cs (หรือ AppointmentForm.ascx.vb ถ้าคุณใช้ Visual Basic) คัดลอกแฟ้มไปยังโฟลเดอร์ที่สร้างขึ้นใหม่ MyForms เปลี่ยนชื่อแฟ้มคัดลอกไป "UserAppoinmentForm" - เช่น UserAppointmentForm.ascx และ UserAppointmentForm.ascx.cs (หรือ UserAppointmentForm.ascx.vb ถ้าคุณใช้ Visual Basic)อย่าลืมเปลี่ยนคำจำกัดความคลาสำหรับฟอร์มในแฟ้มรหัสด้านหลัง - ให้บางส่วนสาธารณะคลา UserAppointmentForm: SchedulerFormControlขั้นตอนที่ 4 ตรวจสอบดูว่า ค่าคุณสมบัติ Codebehind ของคำสั่ง "@ควบคุม" ในหน้า UserAppointmentForm.ascx จะเปลี่ยนชื่อใหม่ของแฟ้มรหัสด้านหลัง - Codebehind="UserAppointmentForm.ascx.cs" นี้ควรจะทำโดยอัตโนมัติ ถ้า ไม่ได้ เปลี่ยนชื่อด้วยตนเองถ้าโครงการของคุณมีโปรแกรมประยุกต์เว็บ เปลี่ยนชื่อคลาสแม่แบบกำหนดเองเพื่อหลีกเลี่ยงข้อผิดพลาดในระหว่างการคอมไพล์ การทำ เปลี่ยนชื่อคลา AppointmentForm ในแฟ้ม UserAppointmentForm.ascx รหัสด้านหลัง และ ในแฟ้มคลาออกไป UserAppointmentFormขั้นตอนที่ 5 เปลี่ยนคุณสมบัติ ASPxSchedulerOptionsForms.AppointmentFormTemplateUrl ซึ่งคุณสามารถค้นหาภายใต้แท็ก OptionsForms (OptionsForms ส่วนในหน้าคุณสมบัติ) เป็นค่าที่สอดคล้องกับตำแหน่งใหม่ของแม่แบบฟอร์ม เช่น ~ / MyForms/UserAppointmentForm.ascxขั้นตอนที่ 6 เพิ่มตัวควบคุมใหม่ในแบบฟอร์ม ในกรณี มันจะเป็นตัวควบคุม ASPxTextBox มีรหัสที่ตั้งการ "tbField1" ASPxMemo ควบคุม ด้วยรหัสการตั้งค่า "memField2"ขั้นตอนที่ 7 เพิ่มไฟล์คำนิยามคลาใหม่โฟลเดอร์ App_Code ชื่อ "UserAppointmentFormClass.cs"ขั้นตอนที่ 8 ในแฟ้มนี้กำหนด UserAppointmentFormTemplateContainer ที่สืบทอดมาจากคลาส AppointmentFormTemplateContainer คลาสาธารณะ มันจะแสดงข้อมูลจากเขตข้อมูลแบบกำหนดเองสำหรับการแสดงผลบนหน้า คุณสามารถปรับปรุงข้อมูลตามที่ต้องการ
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
ขั้นตอนที่ 3 สร้างโฟลเดอร์ใหม่ชื่อ "MyForms" ค้นหา DevExpress ASPxSchedulerForms โฟลเดอร์ ถ้าโฟลเดอร์นี้จะหายไปคุณสามารถสร้างมันขึ้นมาและคัดลอกแม่แบบเริ่มต้นไปยังเว็บไซต์ของโครงการของคุณโดยใช้แท็กสมาร์ทการควบคุม ASPxScheduler ฯ ตามที่อธิบายไว้ในแบบฟอร์มโต้ตอบบทความ ค้นหารูปแบบ AppointmentForm.ascx และ behind รหัสที่สอดคล้อง AppointmentForm.ascx.cs ไฟล์ (หรือ AppointmentForm.ascx.vb ถ้าคุณใช้ Visual Basic) คัดลอกไปยัง MyForms โฟลเดอร์ที่สร้างขึ้นใหม่ เปลี่ยนชื่อไฟล์ที่คัดลอกไปที่ "UserAppoinmentForm." - คือ UserAppointmentForm.ascx และ UserAppointmentForm.ascx.cs (หรือ UserAppointmentForm.ascx.vb ถ้าคุณใช้ Visual Basic) อย่าลืมที่จะเปลี่ยนชื่อการกำหนดระดับสำหรับฟอร์มในแฟ้ม behind รหัส - เพื่อเรียนบางส่วนของประชาชน UserAppointmentForm: SchedulerFormControl ขั้นตอนที่ 4 ตรวจสอบดูหรือไม่ว่ามูลค่าทรัพย์สิน Codebehind ของ "การควบคุม @" สั่งในหน้า UserAppointmentForm.ascx จะเปลี่ยนเป็นชื่อใหม่ของแฟ้ม behind รหัส - Codebehind = "UserAppointmentForm.ascx.cs" นี้ควรจะทำโดยอัตโนมัติหากไม่ได้เปลี่ยนชื่อด้วยตนเอง. ถ้าโครงการของคุณเป็นโปรแกรมเว็บเปลี่ยนชื่อชั้นแม่แบบกำหนดเองเพื่อหลีกเลี่ยงข้อผิดพลาดในระหว่างการรวบรวม เพื่อให้บรรลุนี้เปลี่ยนชื่อ AppointmentForm ชั้นใน UserAppointmentForm.ascx behind รหัสไฟล์และแฟ้มคลาออกแบบเพื่อ UserAppointmentForm. 5 ขั้นตอนที่เปลี่ยนสถานที่ให้บริการ ASPxSchedulerOptionsForms.AppointmentFormTemplateUrl ซึ่งคุณอาจพบว่าภายใต้แท็ก OptionsForms (มาตรา OptionsForms ในหน้าคุณสมบัติ ) เป็นค่าที่สอดคล้องกับตำแหน่งใหม่ของแม่แบบฟอร์มคือ ~ / MyForms / UserAppointmentForm.ascx. 6 ขั้นตอนที่เพิ่มตัวควบคุมใหม่ให้กับฟอร์ม ในกรณีของเราก็จะมีการควบคุม ASPxTextBox กับชุด ID เพื่อ "tbField1" และการควบคุม ASPxMemo กับชุด ID เป็น "memField2". ขั้นตอนที่ 7 เพิ่มไฟล์นิยามคลาสใหม่ไปยังโฟลเดอร์ App_Code ชื่อมันว่า "UserAppointmentFormClass.cs". ขั้นตอนที่ 8 ในไฟล์นี้กำหนด UserAppointmentFormTemplateContainer คลาสที่สาธารณะที่สืบทอดจากคลาส AppointmentFormTemplateContainer มันจะช่วยให้ข้อมูลจากฟิลด์ที่กำหนดเองสำหรับการแสดงผลบนหน้าเว็บ คุณสามารถปรับข้อมูลตามที่ต้องการ













การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ขั้นตอนที่ 3 สร้างโฟลเดอร์ใหม่ชื่อ " myforms " หา devexpress aspxschedulerforms โฟลเดอร์ ถ้าโฟลเดอร์นี้หายไป คุณสามารถสร้างและคัดลอกค่าเริ่มต้นแม่แบบเว็บไซต์โครงการของคุณโดยใช้ aspxscheduler ควบคุมสมาร์ทแท็กที่อธิบายไว้ในรูปแบบกล่องบทความ หา appointmentform.ascx แบบฟอร์มและสอดคล้องกันรหัสหลัง appointmentform.ascx.cs แฟ้ม ( หรือ appointmentform.ascx .ฯลฯถ้าคุณใช้ Visual Basic ) คัดลอกไปยังโฟลเดอร์ที่สร้างขึ้นใหม่ myforms . เปลี่ยนชื่อคัดลอกไฟล์ " userappoinmentform " -- คือ userappointmentform.ascx userappointmentform.ascx.cs ( หรือ userappointmentform.ascx.vb และถ้าคุณใช้ Visual Basic ) .

อย่าลืมเปลี่ยนนิยามคลาสสำหรับรูปในโค้ดที่ไฟล์ - ประชาชน userappointmentform คลาสบางส่วน :schedulerformcontrol

ขั้นตอนที่ 4 ตรวจสอบเพื่อดูว่าหรือไม่ codebehind มูลค่าทรัพย์สินของ " @ " ควบคุม " คำสั่งใน userappointmentform.ascx หน้าจะเปลี่ยนเป็นชื่อใหม่ของรหัสที่อยู่เบื้องหลังไฟล์ - codebehind = " userappointmentform . ascx CS " นี้ควรจะทำโดยอัตโนมัติ ถ้าไม่ เปลี่ยนชื่อได้ด้วยตนเอง

ถ้าโครงการของคุณเป็นโปรแกรมประยุกต์บนเว็บ ,เปลี่ยนชื่อแม่แบบกำหนดเองชั้นเรียนเพื่อหลีกเลี่ยงข้อผิดพลาดในการรวบรวม เพื่อให้บรรลุนี้เปลี่ยนชื่อห้อง appointmentform ใน userappointmentform.ascx โค้ดไฟล์และในไฟล์ออกแบบคลาสเพื่อ userappointmentform

ขั้นตอนที่ 5 เปลี่ยน aspxscheduleroptionsforms.appointmentformtemplateurl คุณสมบัติซึ่งคุณจะพบว่าภายใต้ optionsforms แท็ก ( optionsforms ส่วนในหน้าคุณสมบัติ ) ค่าสอดคล้องกับตำแหน่งใหม่ของแม่แบบของฟอร์ม เช่น ~ / myforms / userappointmentform . ascx

ขั้นตอนที่ 6 . เพิ่มตัวควบคุมใหม่ไปยังแบบฟอร์ม ในกรณีของเรามันจะเป็น aspxtextbox ควบคุมด้วยรหัสตั้งค่าไปที่ “ tbfield1 " และการควบคุม aspxmemo กับ ID ชุด " memfield2 " .

ขั้นตอนที่ 7เพิ่มไฟล์นิยามคลาสใหม่ app_code โฟลเดอร์ ชื่อ " userappointmentformclass CS " .

ขั้นตอนที่ 8 ในไฟล์นี้กำหนดชื่อคลาสที่สืบทอดจากคลาส userappointmentformtemplatecontainer appointmentformtemplatecontainer . จะให้ข้อมูลจากเขตข้อมูลที่กำหนดเองเพื่อแสดงบนหน้า คุณสามารถปรับข้อมูลตามที่ต้องการ
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: