السسلام عليكم ورحمة الله وبركاته
اخواني الاعضاء والمشرفين .. لدي استفسار عن طريقة حماية الرابط في حالة احتوائه على QueryString من سكيلو انجكشن لانه عندما يقوم احد بوضع (') بعد QueryString يطلع خطاء مباشرة
http://localhost:54158/RegLisence/Admins/Admin_Default.aspx?BranchID=2
==================
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 7: If Not Page.IsPostBack Then Line 8: Line 9: Dim id_bracn As Integer = Request.QueryString("BranchID") Line 10: Dim chk As Integer = ob2.Get_CountREg_Day(id_bracn, DateTime.Now.Date) Line 11: If chk > 0 Then -----------------------
والذي لاحظته في بعض المواقع asp.net انه عندما يتم اضافة هذه العلامة (') بعد QueryString
لايحدث اي خطاء ويتم عرض البيانات من خلال QueryString دون التاثر بعلامة ( ' ) ياليت تفيودوني طريقة الحماية منها وطريقة عرض البيانات QueryString دون التاثر بـ ( ' )