עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

איך להגדיר פרמטרים של צד שרת אצל לקוח? או יצירת פקדים בלולאה

Featured Replies

פורסם

אני עובד בASP.NET.

אז ככה אני רוצה ליצור כמה פקד בלולאה ובשביל זה אני צריך ID שונה בכל אחד, אז עשיתי איזה משהו והוא לא עובד...

אני יכול להוריד את השדה ID והוא יצור כבר לבד ID משלו, אבל זה לא פותר לי את הבעיה כי אני כן צריך שדות אחרים..

ולקוד:

<asp:GridView ID="GridView<% = i.ToString() %>" runat="server" AllowPaging="False" 
AutoGenerateColumns="False" DataSourceID="<% = (dtList.Rows[nNumOfRow][1].ToString() + i.ToString()) %>"
PageSize="5">
<Columns>
<asp:BoundField DataField="Title" HeaderText="sTitle"
SortExpression="sTitle" />
<asp:BoundField DataField="Date" HeaderText="dDate" SortExpression="dDate" />
<asp:BoundField DataField="URL" HeaderText="sURL" SortExpression="sURL" />
</Columns>
</asp:GridView>

כמובן שזהוא קוד חלקי, בגדול זה נמצא בלולאה כאשר i הוא המקדם וdtList זהו DATATABLE.

זה למשל לא תקין:

DataSourceID="<% = (dtList.Rows[nNumOfRow][1].ToString() + i.ToString()) %>"

זה מובן מאוד כי הפקד הוא צד שרת ואני מקנפג אותו בצד לקוח, אני גם לא יכול לעשות את זה רק בצד אחד כמו שאתם רואים...

פורסם
  • מחבר

הוקפץ עקב שינוי של כל ההודעה.

פורסם
  • מחבר

יש לך דרכים אחרות לפתור את הבעיה הזו?

נראה חופר, תודה אני אקרא את זה מחר.

פורסם

אתה רוצה ליצור פקדים של asp.net בזמן ריצה?

פורסם
  • מחבר

אני אצור לי הכל בקבצי CS ואשפוך את זה לאיזה שהוא קונטיינר(כנראה PLACEHOLDER).

מה שעכשיו אני צריך להבין זה איך ליצור טבלה בקובץ CS

פורסם

google for repeater class

it might be more elegent than a container solution. I need to see more of the design in order to help.

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.