في Footer
تم تعديل هذه المشاركة بواسطة مبرمج القاعده في 10 مارس 2008 في 18:54
اللهم أطل عمري وأحسن عملي واختم بالشهادة أجلي
في Footer
تم تعديل هذه المشاركة بواسطة مبرمج القاعده في 10 مارس 2008 في 18:54
اللهم أطل عمري وأحسن عملي واختم بالشهادة أجلي
السلام عليكم
بالنسبة لل GridView لا يمكن بسهولة الاضافة اليها ام ال DetailsView فيمكن تعريف emptydataTemplates لها ووضع زر فيها للاضافة
<asp:DetailsView ID="DetailsView1" runat="server" > <EmptyDataTemplate> لايوجد بيانات <br /> <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="جديد" /> </EmptyDataTemplate> </asp:DetailsView> وفي الكود نضع Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) DetailsView1.ChangeMode(DetailsViewMode.Insert) End Sub
hi,
you can add a fake row in the StoredProcedure for example:
SELECT 0 AS PhoneID , '' AS CompanyPhone , 0 AS ID , '' AS PhoneComment , 'False' AS IsPrimary , '' AS PhoneType , 0 AS PhoneTypeID UNION ALL SELECT A1.dp_ID As PhoneID ,A1.dp_Phone AS CompanyPhone ,A1.dp_DebtorID AS ID ,A1.dp_Comment AS PhoneComment ,A1.dp_IsPrimary As IsPrimary ,A2.pht_Name AS PhoneType ,A2.pht_ID AS PhoneTypeID FROM dbo.DebtorPhone A1 LEFT JOIN dbo.PhoneType A2 ON A1.dp_TypeID = A2.pht_ID Where A1.dp_DebtorID = @ID
المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية
جارٍ التحقق من المتواجدين…