Monthly Archives: May 2008

Uploading and Downloading image or files

This is just to give you an idea. The original codes was done in DNN 3.2.2. Uploading Images and Files.   protected void btnUpload_Click(object sender, EventArgs e)   {    try    {     // If file field isn’t empty     if (FieldFile.Value  != null)     { … Continue reading

Posted in ASP.NET and DNN 3.2.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

How to open multiple new windows in one click with querystring using ASP.NET and Javascript

Put this Javascript on the designer. <script language=”javascript” type=”text/javascript”>         function OpenNewWindow() {      Use this one,     val = document.getElementById(“ctl00_ContentPlaceHolder1_HiddenField1″).value;  or this one,     val = document.getElementById(‘<%=HiddenField1.ClientID %>’).value;          ID = val;          if (val == ”) … Continue reading

Posted in ASP.NET 2 and JavaScript | 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