Click here to Skip to main content
15,891,993 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow can we update row in database table if browser is closed Pin
Member 368287130-Jan-12 2:01
Member 368287130-Jan-12 2:01 
AnswerRe: How can we update row in database table if browser is closed Pin
Not Active30-Jan-12 2:09
mentorNot Active30-Jan-12 2:09 
AnswerRe: How can we update row in database table if browser is closed Pin
RK KL30-Jan-12 5:12
RK KL30-Jan-12 5:12 
AnswerRe: How can we update row in database table if browser is closed Pin
R. Giskard Reventlov30-Jan-12 6:36
R. Giskard Reventlov30-Jan-12 6:36 
AnswerRe: How can we update row in database table if browser is closed Pin
Sankalp Deep1-Feb-12 9:00
Sankalp Deep1-Feb-12 9:00 
QuestionFile Open/SaveAs/Delete Option Pin
Jagjit Saini29-Jan-12 1:27
Jagjit Saini29-Jan-12 1:27 
AnswerRe: File Open/SaveAs/Delete Option Pin
R. Giskard Reventlov30-Jan-12 6:35
R. Giskard Reventlov30-Jan-12 6:35 
QuestionMy site is localized. How do I use page_load to get querystrings? Pin
Jason P. Weber28-Jan-12 18:52
Jason P. Weber28-Jan-12 18:52 
I'm not a programmer, but I've managed to create our company's website in Visual Studio 2010 / VB / ASP.NET 4.0. I've also managed to use the apps_globalresources directory to add 9 languages to the website through advice in the forums. I can call these languages by clicking on a flag. I apologize for this message being lengthy, but anyone who could help would be a life-saver!

The Problem:
When I switch languages by clicking a flag, the text changes and it looks great. But the URL doesn't change. /about.aspx is still /about.aspx. It's just displaying the page using another language's resource (.resx) file.

What I've been told:
I've been told that having the same URLs for 9 different languages is bad SEO and bad web development practice. I've been told to use the "Page_Load" event to make my URLs like about.aspx?lang=nl for Dutch instead. They suggest this is better practice. I would LOVE to do this, but I'm not intelligent enough at programming to do so.

My current code:
ASP.NET
<asp:LinkButton ID="LinkButton7" runat="server"
  CommandArgument="nl" OnClick="RequestLanguageChange_Click" class="flagbutton">
  <asp:Image ID="Image1" runat="server" ImageUrl="~/images/flagnl.png" tooltip="Bekijk deze website in het Nederlands" title="Bekijk deze website in het Nederlands"/>
  <img class="map" src="images/flaghovernl.png" alt=""/>
  </asp:LinkButton>


What I was told to do:
"Create a simple link that changes the language without a post back":
HTML
<a href="about.aspx?lang=nl">Nederelands</a>


Conclusion:
Now, I was told that with Page_Load you check to see if you find this parameter lang=el and if you find it you show this language resource, if not you show the default resource.

What does this mean? How can I implement this and where do I do so? Do I use the code-behind, or put it right on my master page? Or every page? Thank you for taking the time to read this novel, and I would sincerely appreciate any and all guidance you could offer me!
Jason Weber
http://on.fb.me/JasonPWeber

AnswerRe: My site is localized. How do I use page_load to get querystrings? Pin
Ali Al Omairi(Abu AlHassan)29-Jan-12 3:27
professionalAli Al Omairi(Abu AlHassan)29-Jan-12 3:27 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Jason P. Weber29-Jan-12 3:30
Jason P. Weber29-Jan-12 3:30 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Ali Al Omairi(Abu AlHassan)29-Jan-12 3:42
professionalAli Al Omairi(Abu AlHassan)29-Jan-12 3:42 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Jason P. Weber29-Jan-12 3:45
Jason P. Weber29-Jan-12 3:45 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Jason P. Weber29-Jan-12 3:59
Jason P. Weber29-Jan-12 3:59 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Ali Al Omairi(Abu AlHassan)29-Jan-12 4:42
professionalAli Al Omairi(Abu AlHassan)29-Jan-12 4:42 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Jason P. Weber29-Jan-12 8:31
Jason P. Weber29-Jan-12 8:31 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Ali Al Omairi(Abu AlHassan)29-Jan-12 8:37
professionalAli Al Omairi(Abu AlHassan)29-Jan-12 8:37 
GeneralRe: My site is localized. How do I use page_load to get querystrings? Pin
Jason P. Weber29-Jan-12 8:57
Jason P. Weber29-Jan-12 8:57 
Questionrun ASP web application on remote computer Pin
Mabchour 198927-Jan-12 6:03
Mabchour 198927-Jan-12 6:03 
AnswerRe: run ASP web application on remote computer Pin
Not Active27-Jan-12 6:50
mentorNot Active27-Jan-12 6:50 
GeneralRe: run ASP web application on remote computer Pin
Mabchour 198927-Jan-12 7:04
Mabchour 198927-Jan-12 7:04 
GeneralRe: run ASP web application on remote computer Pin
ZurdoDev27-Jan-12 10:03
professionalZurdoDev27-Jan-12 10:03 
GeneralRe: run ASP web application on remote computer Pin
Mabchour 198928-Jan-12 10:47
Mabchour 198928-Jan-12 10:47 
GeneralRe: run ASP web application on remote computer Pin
ZurdoDev30-Jan-12 2:14
professionalZurdoDev30-Jan-12 2:14 
AnswerRe: run ASP web application on remote computer Pin
Ankit Maini31-Jan-12 21:22
Ankit Maini31-Jan-12 21:22 
AnswerRe: run ASP web application on remote computer Pin
Sankalp Deep1-Feb-12 9:03
Sankalp Deep1-Feb-12 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.