none
Limit the number of inputs by a user using the userID in a C# razor page RRS feed

  • Question

  • There is a form for the users to give their preferences as inputs. At any given time the user can give only one preference, submit it and then enter the next preference. Each time he/she given the userID as well. So I want to limit the number of inputs per user to three. After three submissions, the user should not be able to submit another one. I am guessing it can be done using the UserID. I am working with C# razor pages(.net Framework). Can someone walk me through the process please? Thank you.
    Tuesday, August 6, 2019 8:26 AM

All replies

  • Hi suriyamoorthyghayathri, 

    Thank you for posting here.

    According to your description, your issue is more related to ASP.NET. Therefore, it will be more appropriate to ask your question in ASP.NET Forums.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, August 7, 2019 9:21 AM