|
Windows offers that protection as an option.
When opening a file you specify what operations you want to perform (mode=read, readwrite),
and what operations you allow others to perform in the mean time (share=none, read, readwrite).
This is available when using a .NET language such as C#, and also when using older
languages (fopen in C) and even with plain old Win32 functions such as OpenFile.
Now by default share=none, so open files behave as you are accustomed to.
But you can choose it differently.
|
|
|
|
|
Ah, thanks Luc.
Looks like I've been living a lie. Again.
|
|
|
|
|
How can I make a multiple row selection in a dataGrid, without using rowheaders?
I'm using visual studio.net 2003..
tnx in advance..
|
|
|
|
|
|
Hi,
I need to develop a website, but it needs to be in different labguages. I don't even know how it works? Where do I start coding, what do I look at, can some please help with some advice?
I will be using ASP.NET and C# 2.0, and hopefully 3.0.
Regards
ma se
|
|
|
|
|
Better Buy a Book related to Asp.Net 2.0 using C# and start learn and then Practice the Code as your Requirement.
Regards,
Satips.
|
|
|
|
|
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
|
|
|
|