Wednesday, April 25, 2007

Saving line break in multiline textbox ASP.NET 1.1

Many time it happens with the multi line text box that it does not save the line break and another things in the text box. I have found a great way to do this..

You can replace the line break with the string replace function for example your text box name

if you want to assign text box to a some value...
txtAddress.Text=objAddress.CompanyAddress.Replace("put here br","\r\n");

if you want to assign text box value to another object
txtAddress.Text=objAddress.CompanyAddress.Replace("put here br","\r\n");

happy programming...
Share:

applying CSS in multiline textbox of asp.net

I have seen many time whenever we try to apply css classes to the the multi line text of asp.net. It does not work.

It may happened due to the browser treat that text box as the text area. So you can do it with defining text area element in css and it will automatically apply to the multi line text box.

For example.
text area
{
border:#CCCCCC 1px solid;
font-size:10px;
vertical-align:middle;
}

If still it is not working that you can set directly attributes with property such as font,font size etc.
Share:
Tuesday, April 24, 2007

Mouse Over -Mouse Out effect in gridview of asp.net

I have found to great article to give mouse hover and mouse out effect on grid view.

here is the link to this articles
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews