|
Hello,
I've finished my application in C#,
can i install it on IIS server and the users (in my company) will connect to the server through http access and will be able to user the application (i don't want the to connect to the server with remote controll).
Thanks (:
|
|
|
|
|
Is it a web or windows app? I'm assuming it is Windows so if you want it to be available for all users on the intranet you could use a click once installation, the app won't run from the server but it'll be available there for users to install.
|
|
|
|
|
You're rigth,
this is a windows application.
I'am trying to find a way that the users won't be needed to install the app on their computer because they'll have to install also the ODBC.
Isn't there any option that the users will be able to use it throught the server?
|
|
|
|
|
|
No,
i don't want all the users to connect by remote to my server.
|
|
|
|
|
Then why ask
treuveni wrote: Isn't there any option that the users will be able to use it throught the server?
Remote desktop is the way to go, why not? You can set up limited user accounts or safeguards to protect your server.
|
|
|
|
|
Hve you looked at a ClickOnce deployment?
only two letters away from being an asset
|
|
|
|
|
i am using ms sql server 2005. i used full text search (fts) facility. now i want to know that does fts cares about sequence of a phrase. for example
("select * from news AS N INNER JOIN containstable(news,datacontent,'local' AND 'company') AS A ON N.[id]=A.[KEY] ORDER BY A.RANK DESC",connec)
this returns results that includes local and company but anywhere in the document. but i want it like "my local company is very big." so i mean the word "company" must come after "local" (at least 1 time) to have a result. how can i do this. i tried it as 'local company' but an error occured.
|
|
|
|
|
Hi,
a little search for sql "full text search" phrase should lead you to the answer. It seems to be the phrases need to be in double quotes (as with most search engines), and of course the entire literal string should be in single quotes as usual.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Hi,
My requirement is to read the file one by one and update the content in database.
I'm getting Out of memory Exception while reading 32Mb text file. I ve used streamReader to read the File.
StreamReader strReader = new StreamReader(filePath);
return strReader.ReadToEnd();
I have tried with ReadLine() also. Same error comes.
Is there any solutions for this?
Thanks in advance
|
|
|
|
|
String _result = String.Empty;
using(StreamReader strReader = new StreamReader(filePath))
{
_result = strReader.ReadToEnd();
}
return _result;
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
|
Hi,
how many files (and how many megabytes of accumulated file data) does it take to get the OOM Exception? I suspect you are getting large-heap fragmentation.
Luc Pattyn [Forum Guidelines] [My Articles]
DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.
|
|
|
|
|
Luc is probably right about heap fragmentation being the problem.
Instead of creating new strings with each read and flogging the heap to death like this:
string fileText ="";
while (strReader.EndOfFile())
{
fileText += strReader.ReadLine();
}
return fileText;
Use a stringBuilder initialized to the size of the file so that you only have a single memory allocation.
stringBuilder fileText = new stringBuilder(sizeOfFile);
while (strReader.EndOfFile())
{
fileText.AppendLine(strReader.ReadLine());
}
return fileText;
It is a truth universally acknowledged that a zombie in possession of brains must be in want of more brains.
-- Pride and Prejudice and Zombies
|
|
|
|
|
Textbox is having 3 lines
how to get lines count?
can anyone help me?
|
|
|
|
|
//to find number of lines
int lines = textBox1.Lines.Length;
//to find number of words
int words = textBox1.Text.Length;
//Note: If you find any of the answer is correct then vote for it. So that other members will know that the reply is correct....
|
|
|
|
|
Thank you very much.
this code is working fine.
|
|
|
|
|
padmanabhan N wrote: //to find number of words
int words = textBox1.Text.Length;
Is incorrect - it gives the number of characters not words. I do not know of a built in function to give the word count of a text box, but you can do it with a regex:
Regex.Matches(textBox1.Text, @"[\S]+").Count
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
padmanabhan N wrote: //to find number of words
int words = textBox1.Text.Length;
Since when? This finds the number of characters, not the number of words. You'd need to use a regular expression to identify the number of words.
padmanabhan N wrote: //Note: If you find any of the answer is correct then vote for it. So that other members will know that the reply is correct....
That's a bit arrogant. Your reply is not correct; only part of it is - the other part is completely wrong, and will only cause confusion for anybody who attempts to follow your advice.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
A multiline textbox has lines property. What is the problem with that?
|
|
|
|
|
swetha_insoft wrote: Textbox is having 3 lines
how to get lines count?
The answer is soooo obviously 3!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi Experts,
i created a windows service to insert data in to a sql table.
now i want to call this windows service in another project how can i call this?
i tried to add service reference but it is asking for url
how can i give this?
like webservices, is windows services also contain URL?
please help me out
Thanks In Advance
--Naren
|
|
|
|
|
Hi,
You can install the window service.It is not like webservices so it does not have any url..
Please read some stuff on google about window services.
himanshu
|
|
|
|
|
Hi Himanshu,
i installed my service, it is fine am performing start, stop, restart operations.
but am stuck with calling this windows service in another project.
i tried in google but i did not find any information reagrding this to call a windows service in another project.
|
|
|
|