ASP Classic How To Use On Error Resume Next

by ebarcza 5/15/2013 7:49:00 AM
  Err.Clear
  On Error Resume Next ' resume if an error occurs
 'Do somethign that might cause an error 
  If Err.number <> 0 Then ' check if any errors were raised and handle them
       'Handle the Error
    response.write(Err.Description)
  End If
  On Error GoTo 0 ' turn off resume next

Tags: ,

ASP Classic

SSRS turn off paging

by ebarcza 5/14/2013 10:45:00 AM
You set the report's InteractiveHeight to 0 to disable paging.

Tags: ,

SQL Server Reporting Services

Custom date format string 2 digit year

by ebarcza 5/3/2013 10:03:00 AM
If you need to create a custom date format in a Gridview or any other place that uses dataformatstrings for dates use the following in order to get a 2 digit date instead of 4
DataFormatString="{0:M/dd/yy}"

<asp:BoundField DataField="ModifiedDate" DataFormatString="{0:M/dd/yy}" HeaderText="Mod Date" />


result = 4/23/13

Tags:

Highlight GridView Row On MouseOver Using Javascript

by ebarcza 5/2/2013 6:17:00 AM
 protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Attributes.Add("onmouseover", "this.className='highlight'");
            e.Row.Attributes.Add("onmouseout", "this.className='normal'");
        }
    }

Tags:

Dual monitors over RDP remote desktop

by ebarcza 5/1/2013 10:48:00 AM

Start Remote desktop with the following command

mstsc.exe /span

Then under the display tab make sure the "use all monitors" checkbox is selected.

It won't snap the windows into the monitors, you have to size it for your self, but it's better than one

Tags:

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  November 2017  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent comments

Tags

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Sign in