My issue: that I have two pages
1- page.aspx for English language mode
2- page-ar.aspx for Arabic language mode
And I have LinkeButton on click I pass session;
Session["lang"] = "ar";
or
Session["lang"] = "en";
What I need to get page.aspx name and add this string “-ar” to goto Arabic mode
or to remove “-ar” from page-ar.aspx to goto English mode
And take in your consideration maybe there’s some query string in pageurl.
this the answer after the Mr/sheKhar help and with my own search
i have two button
one for Arabic and other for English mode
when user click on English button
and when user click on arabic button
wish this code helping someone 🙂