|
I have for e.g saurabh@yahoo.com in Textbox
i only want characters before @ i.e saurabh.
What should be the property for textbox to do this..?
|
|
|
|
|
The Text property gives you the string. IT's a string, it has methods for finding characters. Or you can use a RegEx, if you want, but it's not needed to just find the @. I'd use the split method for that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Sorry i dint get your ans can u describe me using some example..!!
|
|
|
|
|
Christian has already given you the key words to search for "string" and "split" - now you should probably look in your book or google for it.
|
|
|
|
|
If you're incapable of using google or exploring the methods on the string class using intellisense, perhaps the world has lost a janitor without gaining a programmer ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Textbox returns string.You can use split function.
Cheers!!
Brij
|
|
|
|
|
saurabh mohal wrote: I have for e.g saurabh@yahoo.com in Textbox
i only want characters before @ i.e saurabh.
What should be the property for textbox to do this..?
I didn't get your point. You want something MaskedTextbox (in Windows Form)
|
|
|
|
|
Well, Christian gived you answer but I will give you too example.
string email = textBoxName.Text.Substring(0,textBoxName.Text.IndexOf("@"));
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi from a newbie,
I am looking for a simple newsletter module, where people can subscribe to without registration (of course a DB needed to store the e-mails preferable already verified - and an admin screen).
I am writing an individual asp.net web app. (no cms, starter kit). So it would be nice just to insert a new piece of code into the existing.
I am well grounded at C# but I do not want to develop this module from scratch.
Could you recommend me a particular code/module, or a place where I could find it.
Thanks in advance.
Zoltan - Hungary
|
|
|
|
|
|
Well, the obvious way to do that, is to have a bunch of folders which all contain a default.aspx. Of course, this means you can never pass anything on the query string.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
no problem..just i want to extention remove method... give me the code
|
|
|
|
|
nithydurai wrote: give me the code
There is no code. Just do what I said. If a folder is called 'editmember' and it contains a default.aspx, then IIS will serve that page if no page name is provided.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Of course, this means you can never pass anything on the query string.
www.somewebsite.com/somedir/?querystring=somevalue is valid. The default page in this directory will be called and can access the query string.
|
|
|
|
|
can u xplain about scenario
Cheers!!
Brij
|
|
|
|
|
|
What is wrong with this[^] answer?
|
|
|
|
|
Who to hide the file extensions of my project displayed in the address bar.?
|
|
|
|
|
That is what has been mentioned in that answer. You need to check URL re writing.
Apurva Kaushal
|
|
|
|
|
The only thing wrong with that was you have not given him the complete code for that.
Apurva Kaushal
|
|
|
|
|
|
hi,
I am Talking
first i have send the question in new message. Next the question display in
the table and you are replay answer to see me in the same page.and question
under answer in our codeproject.
thankyou.
modified on Tuesday, December 9, 2008 2:45 AM
|
|
|
|
|
duplicate Qs
Cheers!!
Brij
|
|
|
|
|
WOW
Read this[^]. It's urgentz.
|
|
|
|
|
What the hell are you talking about ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|