Using CSS as follows
word-wrap: break-word;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
for more details follow below link
"http://community.sgdotnet.org/blogs/chuawenching/archive/2007/03/22/ASP.NET-2.0-Autowrapping-in-GridView--_2D00_-Is-that-possible_3F00_.aspx"
Thursday, November 26, 2009
Auto wrapped in GridView ?
how to get dropdownlist selected value and text in javascript
var IndexValue = $get('<%=ddlGraphperiod.ClientID %>').selectedIndex;
var SelectedText = $get('<%=ddlGraphperiod.ClientID %>').options[IndexValue].text;
var SelectedVal = $get('<%=ddlGraphperiod.ClientID %>').options[IndexValue].value;
var SelectedText = $get('<%=ddlGraphperiod.ClientID %>').options[IndexValue].text;
var SelectedVal = $get('<%=ddlGraphperiod.ClientID %>').options[IndexValue].value;
How to handle Enter Key on ASP.NET web page.
One of the most annoying things in developing web pages is handling the "Enter key" for form submission. Enter key has been the favourite way users like to submit forms. Though we provide Buttons to click on, the easiest and intuitive way is that, I can enter some text, make some changes and then hit "Enter" to accomplish my submission.
The defaultbutton property can be specified at the Form level in the form tag as well as at panel level in the definition tag. The form level setting is overridden when specified at the panel level, for those controls that are inside the panel.
for more details follow below link
"http://geekswithblogs.net/ranganh/archive/2006/04/12/74951.aspx"
The defaultbutton property can be specified at the Form level in the form tag as well as at panel level in the
for more details follow below link
"http://geekswithblogs.net/ranganh/archive/2006/04/12/74951.aspx"
How to Use space char in Enum datatype
Using description property. Implemented in Secure DTMS Application for Peak KVA parameter type Enum.
Use below link for more details.
"http://blog.spontaneouspublicity.com/2008/01/17/associating-strings-with-enums-in-c/"
How to use theme on button. How to apply css to command button.
first sol. is use skin but we have to create different skin for different button. Another sol is use css, keep in mind that set border width to 0px, and height and width to the button. Now the theme is ok but one more thing is which button should press on enter key for the same set submit button use SubmitBehavior property to true and set to false for other button.
1. show button press effect.
2. Press Enter Key will submit the page
How to make similar date format for our web site. Or how to make a website that will not depend on system datatime format.
using culture.
Set culture like Culture="en-GB".
We need not to set date format after using culture.
Vertical Label in ASP.NET
using CSS, We can make vertical label.
writing-mode: tb-rl;
filter: flipv fliph;
Subscribe to:
Posts (Atom)