|
You want to set your regex at runtime ? Again, is this ASP.NET ? Where does the regex come from ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
yes at run time i want to apply regex on text box in asp.net. one expression which is like ##.## (ex 34.56) is stored in database . I need to convert it into regex and want to apply to the text box for that field.
|
|
|
|
|
OK. First of all, we have an ASP.NET forum. If you want to do things dynamically on the client end, then this is vital, b/c you will want jscript, not C# solutions.
you can set the regex applied to a regex validator in your code behind, this is not an issue. Generating regex from a number, is not really possible. I mean, there are tons of different regex which all will match 34.56. If the regex is always a double, and you just want to set the number of significant figures each side of the decimal, that's pretty trivial. \d{2}\.\d{2} will match the above, and you can just change the number to change how many figures there are on either side.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want validation in asp.net - textbox but i want to create one function which can take expression from database and convert that expression in to regex. so this will be C# Lib only.
Thanks.
|
|
|
|
|
OK - you didn't add anything to what you told me before, so I have nothing further to add, either.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have tried a lot on google and did some coding for saving the form in a access database but it dint work so if u have any clues or suggestion tell me
THANK U
|
|
|
|
|
You can't save a 'form'. You can save the state of a form, and then recreate the form's state from that data.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Should allow minus sign '-' at first position(index) only
should not allow in between
Thanks in advance
Praveen Kumar palla
|
|
|
|
|
Hmm.. Create a KeyDown event and then check for the input character.
If its what you want.. then allow it.. or else cancel it.
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
Can anybody help me in dynamically linking to a ActiveX.exe created with VB from a C# program. I also need help to access the exposed function in the ActiveX.exe.
Thanks in advance..
|
|
|
|
|
Add a reference and use it when you want.
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
thanks Swader,
but I want to load and create object in the run time, 'cos if we add it as reference I will will have to recompile my program each time the dll version changes..
|
|
|
|
|
Nope.. Thats the feature of .net that you wont need to recompile your project unless you want to use the new features of the dll
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
but Is it true if the dll is created in VB6..??
'cos now I need to change references in my program each time anything changes in the VB dll
|
|
|
|
|
hi friends i am tiwari i need a urgent help
i am doing a project in which i have to perform drag and drop operation with resizing on a canvas. the main problem is saving the form such that whenever the user opens it the form must be ready for editing please send me code in c# my id
is mr.sindhutiwari@yahoo.com
its me sid
|
|
|
|
|
Hello tiwari, you are new here so you should read the thread at the top of this forum titled "How to get answers to your questions".
This will tell you (among other things)
1) Use descriptive thread titles (this is the C# forum so your subject of C# is not helpful)
2) Not to use the word "Urgent" - everything is urgent
3) We dont write full code for you - we help when you get stuck on a specific piece of code.
|
|
|
|
|
i really appreciate u but ur suggestions would have been better if they were with answers
its me sid
|
|
|
|
|
That may be, but you're expecting people to provide full code, based on a question that, frankly, makes no sense. When you pay people to help you, you can treat them however you like. When you look for free help, you can expect to have to fit within the mores of the place where you choose to ask. You've broken about every one that I can think of, with the possible exception that your question doesn't appear to be homework.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: That may be, but you're expecting people to provide full code, based on a question that, frankly, makes no sense. When you pay people to help you, you can treat them however you like. When you look for free help, you can expect to have to fit within the mores of the place where you choose to ask. You've broken about every one that I can think of, with the possible exception that your question doesn't appear to be homework.
Damn, but you're on form today.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
*grin* Spent the day with the kids in a theme park. Therefore, I've suffered enough for one day.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
That would do it. Took mine to see Ratatouille. Absolutely fantastic film.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Wow. There are just so many things wrong with your post.
1. The title - this is a C# forum, so a title of C#.net is redundant. It doesn't tell us anything about what your underlying problem might be. Make it meaningful.
2. We don't do your work for you. If you have a specific problem, then we will help out but we don't write code for you. If you want that, try rentacoder.
3. Don't put urgent in. It's always urgent - nobody ever says "take your time, I couldn't care less".
4. Don't put your email address in a post, that's a very good way to get spammed. While the forums aren't crawled just yet, there are plans to allow this to happen.
5. Google should have been your first port of call here. A simple search or two will save you so much time.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Whilst I'd love to help you out, I can't actually distil a question from your post. Specifically, what is it you would like us to help you with?
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
sindhutiwari wrote: need a urgent help
How rude and use more meaningful subject lines.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
i am declaring two classes
class A
{
virtual void abc()
{
}
}
class B:A
{
override void abc()
{
}
}
now i create an object for both the classes
A d = new A();
B e =new B();
d.abc();
or
e.abc();
how can i call the the function of class a , using the object of class b
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|