 |
| General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 27th, 2004, 12:51 AM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No, I'm not using modal dialog..
modal dialog is calling by javascript isn't it?
I call the popup window by using SetOpenDialog()
:D Suzila
|
|

November 27th, 2004, 06:51 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Suzila,
can you tell us exactly what happens when you press enter in the textbox?
Vinod Pawar
Software Developer
India
|
|

November 28th, 2004, 11:29 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
The mouse pointer inside the textbox didn't go anywhere..
even I enter for many times..
:D Suzila
|
|

November 29th, 2004, 02:29 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
|
|
suzila,
I asked you earlier that, what happens when you press enter (Return) key in textbox just b'coz, I thought, you might have any button having "Autopostback" property set to true and that is causing your page to post back to server instead of putting a new line character in the textbox.
What I'll suggest you to do an experiment, add a textbox to a fresh new page make multiline property true (don't put any other control over page) and just run it and see whether it works or not, if it does, something is going wrong with your existing page. Thats what I did earlier before responding you.
Vinod Pawar
Software Developer
India
|
|

November 29th, 2004, 04:53 AM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I also have tried to do like you suggest and it's work.
In my current form there are several dropdownlist set autopostback to true..so I set them all to false..
and run it
but it's still didn't work.
:D Suzila
|
|

December 11th, 2004, 01:55 AM
|
|
Authorized User
|
|
Join Date: Jun 2004
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Suzila,
does you problem still persist or you got the solution?
Vinod Pawar
Software Developer
India
|
|

December 13th, 2004, 11:12 PM
|
|
Authorized User
|
|
Join Date: Dec 2003
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
vinod,
my problem still don't have any solution, except don't use popup window.
:D Suzila
|
|

January 7th, 2006, 09:58 AM
|
|
Registered User
|
|
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
I have a problem . I write in a multiline text box and I use enter (CR/LF). but when i want too put this text that I've wrote and I've put in database into a Label(to put in a page), all the contents of that textbox that i've entered, shows in a single line without enter(CR/LF) in the label. So I can't have the text that is saved in database with enter(CR/LF) in my page.
Do you have a solution for it?
Thank you so much
|
|

January 8th, 2006, 10:35 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
When you enter text in a multiline it will accept hard returns. Those will get saved to the database. When you emit the saved value to a web form label, those hard returns will be there. (Look in the browser HTML source and you'll see them there.) The problem is that the browser ignores plain hard returns. You need to replace the CRLF (or Environment.Newline character) in your database value with the HTML "<br>" tag.
- Peter
|
|

March 10th, 2006, 02:28 AM
|
|
Authorized User
|
|
Join Date: Feb 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
I too have the same problem here but with winforms. The form has a default button and the multiline textbox "AcceptsReturn" property is set to true and on pressing return key no new line is being created. This works fine in some of the machines with english OS but it does not work in some machines with Japanes OS.
Is it related to the version of the OS or Service pack installed ?
Please help me out.
Regards,
Karthik Simha
|
|
 |