hello everyone...
1. i have a table in C# asp net and i will have access to its members Id. but how? appreciate your answer, kind regards
2. when i fill the table by register button, it asks about the user id? while in register.cs i have one method without mentioning the Id. the table is going to get automatically an Id... but it doesnt work for me???!!! in my other projects it works perfect, but not in the new one, even i have the same codes!!!??
Mohamed Azarudeen ZPosted Jul 10, 2023, 3:50 PM
Hi Venus
To access the members of a table in C# ASP.NET, you need to ensure that you have a reference to the table object and the necessary properties and methods are accessible. Here are some steps to help you access the members of a table:
Define the table object: In your C# ASP.NET code, you need to declare and instantiate an instance of the table object. This is typically done in the code-behind file (.cs) or in the controller if you're using MVC.
Connect to the table: Use the appropriate method or mechanism to connect to the table, such as a database connection or an ORM (Object-Relational Mapping) framework like Entity Framework.
Access the members: Once you have the table object and a connection to the table, you can access its members using the appropriate properties and methods provided by the table object. The specific members available will depend on the structure and design of your table.
find the sampe code
If this helps kindly accept answer