ASP.NET C# code for Page direction dynamically based on database value
I am designing a web application on ASP.NET with C# code.
I wish to redirect to respective homepages based on userids. The userlogin table has a field “pagedirection” to indicate the page for redirection. For example,
for “visitor” userid the pagedirection value is
In the usual non-dynamic mode one uses the following code
The following code to redirect dynamically is not working.
Can anyone modify the code to get the results that I desire.