|
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.
|
|
|
|
|
I want to call this function means this function should work only when the person presses ok on our confirm alert and if he presses cancel then this function should not work. also i dont want to call this ajax function on body unload, its causing problem. it should be called only if the person presses ok.
|
|
|
|
|
Your question is not clear. I am assuming, you have a JS method named confirmExit and you need to call depending upon the value user presses on a confirm box. Right?
You could do something like,
if(confirm("Your message"))
confirmExit(); I'd suggest to read this[^] before you post questions.
|
|
|
|
|
confirm button return true/false based on the ok or cancel.you must check what is returned accordingly you can perform the action as you want
Cheers!!
Brij
|
|
|
|
|
I have provided a option in my project. When a user attempts to close the application with out logging out, we used to prompt for a alert too log out. The below said Javascript works well for this.
|
|
|
|
|
Hello everyone,
Any idea about how to get the content-type for a video file? I am writing an ASP.Net application which writes video binary content (hold in byte[], i.e. I cached the content into memory) back to browser client to invoke related media player, and needs to fill-in the content-type field of response header.
thanks in advance,
George
|
|
|
|
|
The best way to tell the content type is through the file extension. Otherwise, you need to learn enough about different file formats to examine the bytes and try to work out what they are
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|