C
C#•2y ago
PolatAlemdar

Display user data after login

Hey Guys, I am trying to show data of a customer after login. The problem is that I always get to see the name of the same customer. Login page first picture Page with user data second picture
15 Replies
Binto86
Binto86•2y ago
You are getting the same value because you are selecting the first record from the db Selecting twice is not good idea, you should pass your datatable to the second page
PolatAlemdar
PolatAlemdar•2y ago
Could I ask you to help me with that?
Binto86
Binto86•2y ago
Sure I dont really know how pages work, never did much desktop 😅
PolatAlemdar
PolatAlemdar•2y ago
But i really dont know what to add to the code to get the specific user ddata
Binto86
Binto86•2y ago
Wait a sec i will goigle somwthing on pages
PolatAlemdar
PolatAlemdar•2y ago
Okay thanks
Binto86
Binto86•2y ago
Ok i have no idea how pages work rn, why are you calling main window and not the page?
PolatAlemdar
PolatAlemdar•2y ago
Because on the main there are 2 buttons with profile view and make new appointment
Binto86
Binto86•2y ago
Sory, if it would be normal window, i could help but i really don't know about pages, i am sure there is someone who can help
PolatAlemdar
PolatAlemdar•2y ago
What would the result be if it was a window i personally dont think there would be a big difference
Binto86
Binto86•2y ago
If you would call a window it would be :
DataRow Row;
public MySeconWindow(DataRow row)
{
Row=row;
}
DataRow Row;
public MySeconWindow(DataRow row)
{
Row=row;
}
In the window you would call and
MySecondWindow window= new MySeconWindow(dt.Rows[0]);
//Show the window etc
MySecondWindow window= new MySeconWindow(dt.Rows[0]);
//Show the window etc
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
PolatAlemdar
PolatAlemdar•2y ago
Didnt work out for me Hello
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
PolatAlemdar
PolatAlemdar•2y ago
Ozelden bana ulasabilirmisin ?