|
Multi lingual websites can be done in a couple of different ways. One way is to store all text in database tables. So each page must query the database to figure out what text to display. I am not a big fan of that one, but it is one way of doing it. The other way is using resource files. You can seach for info on resource files. These files are using to store the different languages, then based off users broswer settings you can setup the site to use different resources.
Hope that helps.
Ben
|
|
|
|
|
Yah, I agree too. But if you have lot of statics pages with large text then you must create different pages for different languages.
|
|
|
|
|
Which part needs to be in different languages? Is the site going to be static content or more CMS style dynamic content? You need to provide more information.
|
|
|
|
|
Just make a website in your native language..
then add resource files to each web page
and on load.. check the current culture of the client and load the appropriate language related page
|
|
|
|
|
check www.asp.net and look around for Starter Kits
which help you to start....
Nav.
|
|
|
|
|
Hello,
Nowadays, i am constructing an aplication in C#. And i have to obtain information about:
- opended and closed ports
- privileges of groups of users
- updates
i have tried it using WMI but i wasn't be able to reach any important thing.
I would thank you a lot if you can help me.
|
|
|
|
|
and which CodeProject articles on this topic did you read ?
|
|
|
|
|
i would like that if someone of you could help me to obtain this information with any API or another way, because i don't know how i could do it. I don't know if you understand me that i want. Excuse me.
|
|
|
|
|
that is exactly how CodeProject works: you read some articles, study MSDN documentation,
google around, and try to implement what it is you need;
and then, only then, when you have a small problem we will be glad to help you.
|
|
|
|
|
i am according to you, but i have already tried it a lot of times, i have visited a lot of pages,and i have searched in a lot of places, but nothing. I have to send my work next week and i don't have a lot of time if i continue in this way, i don't know if you understand me. i have decidied to ask you because i see that i am not going to be able to finish and send my work if i don't do anything quickly.
but i understand you if you can't help me
|
|
|
|
|
OK, search for WMI on CodeProject, and read the first article you find. That will get
you started.
|
|
|
|
|
I have already used WMI and i obtained a lot of useful information, but i don't know, i don't find which is the table in which i can obtain these specific information which i have asked you.
|
|
|
|
|
My experience with WMI is limited, but:
This article[^] discusses many things, including user privileges.
There must be a way to list all available tables in WMI.
There recently have been articles on CodeProject about user privileges, TCP/IP ports,
.NET versions, and much more. Dont recall which of those were using WMI tho.
If you need specific help, you need to ask specific questions. From your initial post
it is unclear which you mean:
ports = serial ports ? USB ports ? TCP/IP ports ? what ?
updates = of what ? Windows ? .NET FrameWork ? Visual Studio ? Office ? Drivers ?
And whatever the assignment is, judging how extensive it is, and starting on time
are part of it.
Good luck.
|
|
|
|
|
Excuse me, i don't want to bother you. It's the first time i used this type of forums.
And i refered to TCP/IP ports, and updates windows.
Thank you.
|
|
|
|
|
|
I have to read HTML files in a project. I am using streamReader to do that but when i read the document I get all the tags etc with it.
Is there any way to only read the data (which gets displayed when u view the page in web browser) rather than the whole source.
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
May be this would help you
public string StripHTML(ref string source)
{
string result;
result = source.Replace("\r", " ");
result = result.Replace("\n", " ");
result = System.Text.RegularExpressions.Regex.Replace(result,
@"<( )*script([^>])*>", "<script>",
System.Text.RegularExpressions.RegexOptions.IgnoreCase);
result = System.Text.RegularExpressions.Regex.Replace(result,
@"(<( )*(/)( )*script( )*>)", "</script>",
System.Text.RegularExpressions.RegexOptions.IgnoreCase);
result = System.Text.RegularExpressions.Regex.Replace(result, @"(<script>)[^>]*(</script>)", "");
result = System.Text.RegularExpressions.Regex.Replace(result, "<[^>]*>", "");
for (int count = 0; count < technicalStopWordArrayList.Count; count++)
{
result = result.Replace(technicalStopWordArrayList[count].ToString(), " ");
}
result = result.Replace("&", " ");
return result.Trim();
}
|
|
|
|
|
Thanks
It works fine but I have 1 more question...
Is is possible to preserve href's
I could have tried it my self but I don't know any thing about regular expressions so I have to rely on u.
I just commented this because I don't know what it is...
for (int count = 0; count < technicalStopWordArrayList.Count; count++)
{
result = result.Replace(technicalStopWordArrayList[count].ToString(), " ");
}
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
Oops!!! Sorry, this was my code which i used it.
You dont need it.Comment it out
|
|
|
|
|
Thanks...
Jus 1 question
Is is possible to preserve href's (Hyperlinks) if yes? How
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|
|
hi
"The operation has been time out " problem
when i call my web service with url
url = "http://localhost/WebServices/Developer/Developer.asmx"
but there is no problem when i call the same web service at this
url = "http://localhost:1489/TestFolder/Developer.asmx"
it works fine
what can be the reason ???
Can any buddy help me
Thnx
|
|
|
|
|
Web services have a timeout. The default is like 30 seconds. There is a property off of the webservice called timeout. Set it to a higher number and you will probably not get a timeout.
When you use the development environment I believe some of these time outs don't happen.
Hope that helps.
Ben
|
|
|
|
|
Thanx Ben
First first i think it is timeout prob and i check it by changing the timeout property.
But it was the machine problem. It was running fine on other machines
Thanx for your kind response
|
|
|
|
|
hello my problem is how to post javascript array to the server.
any body knows please give me suggession.
srinivas
|
|
|
|
|
hi
I am newbie in c# windows serives. I have successfully created and install mywindows service.
But I faced problem while retrieve absolute path of mywindows service, from next c# - program. how can i achieve this.
Any suggestion, related links are highly grateful.
Evil Inside
|
|
|
|