Testbox size can be limited when its mode is "singleline" while if the the mode is multi line you use RegularExpressionValidator> i have mentioned the the re for the textarea. <asp:RegularExpressionValidator ID="revMaxDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="Test cannot be greater than 100 characters." ValidationExpression="(.|\n){0,100}"/>
rashidpervaiz08
Posts
-
ASP.Net Textbox -
VSS IntegrationHi vimal_yet, Install VSS 2005 In the left panel of VSS add project Set working folder where your working folder exsits. Then add files in this vss folder.
-
new to asp.net simple question plz help me<html > <body> <script language="javascript"> function Square() { var tb1 = window.document.getElementById("tb1"); var tb2 = window.document.getElementById("tb2"); tb2.value = ""; if(tb1.value == "" || isNaN(tb1.value)) return; var temp = parseInt(tb1.value); tb2.value = temp * temp; } </script> <input type="text" id="tb1" name="tb1" /> <br /> <input type="text" id="tb2" name="tb2" /> <br /> <input type="button" value="Square" onclick="Square();"/> </body> </html>
-
how to implement Text editor in asp.netYou can also use http://freetextbox.com/default.aspx[^]
-
sessionsso true
-
Aspx Page Size.You can use java script function window.open e.g. window.open(url,'myWin','width=700, height=500, top=200, left=300, toolbar=0, menubar=0, location=0, status=1, scrollbars=1, resizable=0, parent=1');
-
sessionsGo to command mode and go \WINDOWS\Microsoft.NET\Framework\v2.0.50727 run aspnet_state.exe with appropiate parameters, then configure your web.config. Muhammad Rashid
-
listbox validation(Urgent)javascript function: function fun(id) { var obj = document.getElementById(id); var cnt = obj.options.length; var checked = 0; for (var i = 0; i < cnt; i++) { if (obj.options[i].selected) checked++; } if (checked > 5) { alert('more than 5 selection'); obj.focus(); } } ################################### Server side: ListBox1.Attributes.Add("onblur", "fun('" + ListBox1.ClientID+ "');");
-
File Delete Problem ??If you r writing this code in asp.net, so due to security reason this will not done, u have to use impersonation or check authentication mode. Muhammad Rashid
-
Please help me how to create a simple RadioButton Column in DataGridView.The simple way is that, but is not a proper way u can add the asp.net label control in the gridview column and in the event of databinding of gridview u can write html (
-
code for reading a folder contaning .DWG filesin c#string[] files = System.IO.Directory.GetFiles(@"C:\Temp", "*.DWG", System.IO.SearchOption.AllDirectories); Muhammad Rashid