|
Hi i am Datta,
i have html containg Window User control .
This Window user control have a textbox and setter property to set text of textbox.
i embedded this User Control inside html and want to communicate html textbox with that textbox of user control via Javascript.
but i am failed to set value of textbox of User control.
I am Using .NET 2.0 VS 2005 and C# lang.
If any body knows solution
thanks in advance..
DaTtA
|
|
|
|
|
Hi,
this is venkat
I have a issue with parsing a query in that i have to separate all the words and phrases separately for process farther.
|
|
|
|
|
I'd use a regex, take a look at this tutorial[^].
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi,
thanks for u r suggestion
|
|
|
|
|
Use Split if you need to get all the words in an array. If it is some specific word or phrase, use Regex as replied earlier.
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding
|
|
|
|
|
See if my parsing class will help:
http://www.codeproject.com/KB/recipes/qstringparser_net.aspx[^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Hi all,
I m trying to read the contents from one word document and writing in a newly created word document. I wish to apply a color to the string while writing. I tried the html tags as follows
swFile.WriteLine("<body><Font color=#FF0000 Face=courier new>" + s + "</font><br>");
the above code is working, but the original alignments(i.e tab spacing and other allignments) is changed for every line.
for eg, original: ashok ashok ashok ashok age 22
output:ashok ashok ashok ashok age 22 (color:red)
when writing normally all the indendations are coming properly as of in the original document.
kindly help me out.
</body>
|
|
|
|
|
You can create a Range object and use its Font.Color (not sure if it is color of forecolor).
Do not double post.
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void
"Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding
|
|
|
|
|
Hi, I'm using Windows XP Pro and VS 2008 Team Edition. The project I am working on is targeting .NET 3.5. I downloaded the MySQL .NET connector 5.2.5 and installed it. Installation was successful. I could even find the updated machine.config file. But whenever I try to reference any of the classes (ex: MySql.Data.MySqlClient ) I get this error:
"The type or namespace name 'MySql' could not be found (are you missing a using directive or an assembly reference?)"
Now I have tried everything I could. Copied the MySql.Data.dll to .NET installation locations for both 3.5 and 2.0. Installed the dll in the global assembly cache using gacutil, copied the dll in my project's folder, in short anything and everything that I found I could do using web search and as such, although I was not supposed to do anything, the installer downloaded from MySQL website should have done everything. But the problem remains.
Can anyone here please provide any solution? Thanks in advance.
|
|
|
|
|
adding the reference of that dll in ur project might solve ur problem
rahul
|
|
|
|
|
Thanks. I did that and it did solve my problem. What I can't understand is that if this is a required step then why was it not mentioned in any of the places.
|
|
|
|
|
this is the common thing becouse if u r using any third party component then u have to add it manualy to ur project reference.
rahul
|
|
|
|
|
Thanks for the advice.
|
|
|
|
|
What is the best way to contact three strings.
Method1
string key = "test" +"::"+ "test";
Method2
sting key = String.Format("{0}::{1}","test","test");
Is there any memory enhancement in using the second method?
Thanks!
Charith Jayasundara
|
|
|
|
|
If you are going to concat many string then use StringBuilder class as it will perform better. In my opinion String.format is better option as the code is more readable.
By the way, String.Format uses StringBuilder under the hood.
|
|
|
|
|
u can use stringbuffer also
rahul
|
|
|
|
|
StringBuffer? Isn't that a Java class? This is the C# forum...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I'd go with string.Concat .
string key = string.Concat("test", "::", "test");
|
|
|
|
|
try STRINGBUILDER function for that
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
If that's all you're doing, I'd stick with method 1. (And let the compiler handle.)
I often use method 2 when concatenating literal text with variables; I find it easier to read (when a lot of space is added).
But if you're doing a bunch of concatenations in a loop (to produce one value), use StringBuilder.
Also look into String.Join
|
|
|
|
|
I believe the 2nd example uses a StringBuilder internally, and for large strings, with multiple instances of addition, it's more efficient. I almost always use string.Format over "string + string ".
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: with multiple instances of addition, it's more efficient
That's true, but that was not what the OP asked for. The question was regardning threee strings, and then the second method is not more efficient.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: John Simmons / outlaw programmer wrote:
with multiple instances of addition, it's more efficient
That's true, but that was not what the OP asked for. The question was regardning threee strings, and then the second method is not more efficient.
And I told him *when* using string.Format is more efficient.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Before you decide on a method to perform the concatenation, see this[^] link.
/ravi
|
|
|
|