Category Archives: ASP.NET 2

How to solve this Error Message “The specified string is not in the form required for a subject”?

This error message “The specified string is not in the form required for a subject.”¬† can be solve using this code, subject= Regex.Replace(subject, @”[^ -~]”, “”); mail.Subject = Regex.Replace(subject, “[^ -~]”, “”) Here are my reference: http://petesbloggerama.blogspot.com/2007/09/specified-string-is-not-in-form.html http://forums.asp.net/t/1117321.aspx

Posted in ASP.NET 2 | Leave a comment

How to replace double quotes with space in asp.net?

Here is the link that I used as a reference: http://forums.asp.net/t/796290.aspx string.Replace(“”””, ” “)

Posted in ASP.NET 2 | Leave a comment

How to get the client machine name or ip?

Here is my reference link, http://forums.asp.net/t/821809.aspx System.Net.Dns.GetHostEntry(Request.ServerVariables(“remote_addr”)).HostName

Posted in ASP.NET 2 | Leave a comment

Formview Delete confirmation

http://www.asp.net/data-access/tutorials/adding-client-side-confirmation-when-deleting-vb http://forums.asp.net/p/983665/1645591.aspx http://msforums.ph/forums/p/46875/222679.aspx

Posted in ASP.NET 2 | Leave a comment

Manipulating or Hiding shadows of Button

Change BackColor property of Button to the color of the form or FlatStyle property of Button from standard to falt or popup.

Posted in ASP.NET 2 | Leave a comment

Increasing File Upload or download size

Just change the value of maxRequestLength at web.Config. <httpRuntime useFullyQualifiedRedirectUrl=”true” maxRequestLength=”125000″ />

Posted in ASP.NET 2 | Leave a comment

Enabling E-mail upon clicking the E-mail Address at web page

Important Reminders: Please do not click the send button, these emails will be send to microsoft, you will be consider SPAM E-Mail. When you wish to embed the html tags that enables automatically opens outlook to email the address shown … Continue reading

Posted in ASP.NET 2 | Leave a comment

Unchecking and Checking all items in a GridView

Part of the code were derive from this Forum Clicking button to include (Button2) or exlude all (Button1) items in the gridview (GridView1), checking (Button2) or unchecking (Button1) all items in the gridview (GridView1), FieldName is name of the field … Continue reading

Posted in ASP.NET 2 | Leave a comment

Enable Printing content of GridView in ASP.NET 2.0

First Option: The javascript is from this Site To enable directly print the contents of the gridview. Just add this line of code on form load <Button Name>.Attributes.Add(“onclick”, “javascript:CallPrint(‘PrintGrid’)”); Add this javascript at the bottom of the page designer. <script … Continue reading

Posted in ASP.NET 2 | Leave a comment