Add the following in the page_load event:CodeYou can:
Label1.style. Add ("word-break", "Break-all ");
Or add the style attribute in label1:
<Asp: Label id = "label1" style = "word-break: Break-all" runat = "server"> </ASP: Label>
For example, if there are three pages and only one record exists on the 3rd page, an error may occur when you delete the 3rd page record. The solution is as follows:
String listclass = Class. selectedvalue. tostring ();
Dgmanage. datasource = BLL. newsinfo. listallnews (listclass );
Try
{
Dgmanage. databind ();
}
Catch
{
If (dgmanage. currentpageindex> 0)
{
Dgmanage. currentpageindex-= 1;
Dgmanage. databind ();
}
}
How to Prevent the input table on the page from being caused by the user entering long characters in one row at a time
The page is difficult to do. In fact, you can use the CSS line feed attribute to force line breaks, as shown below:
< Table Width = "100" Style = "Word-break: Break-all" >
</ Table >