VB.NET not equal

by ebarcza 6/18/2013 8:13:00 AM
       USE <>
       Dim saveFileDialog As SaveFileDialog = New SaveFileDialog()
        'saveFileDialog1.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif";
        'saveFileDialog1.Title = "Save an Image File";
        If saveFileDialog.FileName <> "" Then
        End If



changing mouse cursor with css

by ebarcza 5/24/2011 9:53:00 AM

you can change the mouse cursor to anything in this list
the css property looks like this - "cursor:pointer;"... in use - hover over me

Value Description
auto Default. The browser sets a cursor
crosshair The cursor render as a crosshair
default The default cursor
e-resize The cursor indicates that an edge of a box is to be moved right (east)
help The cursor indicates that help is available
move The cursor indicates something that should be moved
n-resize The cursor indicates that an edge of a box is to be moved up (north)
ne-resize The cursor indicates that an edge of a box is to be moved up and right (north/east)
nw-resize The cursor indicates that an edge of a box is to be moved up and left (north/west)
pointer The cursor render as a pointer
progress The cursor indicates that the program is busy (in progress)
s-resize The cursor indicates that an edge of a box is to be moved down (south)
se-resize The cursor indicates that an edge of a box is to be moved down and right (south/east)
sw-resize The cursor indicates that an edge of a box is to be moved down and left (south/west)
text The cursor indicates text
w-resize The cursor indicates that an edge of a box is to be moved left (west)
wait The cursor indicates that the program is busy
inherit Specifies that the value of the cursor property should be inherited from the parent element



Group number in SSRS RDL report

by ebarcza 4/15/2011 7:00:00 AM

I needed to get the running count of Groups in the group header... This expression took care of it -

=RunningValue(Fields!MeterNumber.Value, CountDistinct, Nothing)

Also I needed to hide the Group header for the first Group. To accomplish this i added this expression to the visibility property of the textbox after merging all the cells in the row

=IIF(RunningValue(Fields!PoolName.Value, CountDistinct,Nothing) = 1, true, False


Tags: , , ,


ReportViewer Control: Fit to Page

by jrose 5/11/2010 9:09:00 AM

The ReportViewer control's export functionality can be temperamental.


In order to guarantee that the exported file will not be wider than a page, use the following formula:

Body.Size.Width + Report.Margins.Left + Report.Margins.Right <= Report.PageSize.Width


(since, in our case, InteractiveSize and PageSize are the same, this means InteractiveSize can be substituted in PageSize above)

Tags: , , ,


ListView vs Gridview

by rbellantoni 4/7/2010 8:43:00 AM

Some people may be wondering what is the difference is between a ListView and a GridView. In my opinion, the ListView is a much better tool in regards to displaying and manipulating data. With the ListView you use templates to design the different views. The first template is the with this template you can dictate where you want your datarows to show up and how you want your data laid out here is an example:

<asp:ListView ID="lvProducerPools" runat="server" onitemdatabound="lvProducerPools_ItemDataBound" onitemcommand="lvProducerPools_ItemCommand" DataKeyNames="PoolID,Locked_flag">
<div style="float:left;width: 1000px;overflow-x:auto;overflow-y:hidden;padding-top:5px; padding-bottom:15px;">
<table cellpadding="0" cellspacing="0" style="table-layout:fixed;height:18px;font-size:10pt;">
<tr style="height:18px;" id="itemPlaceholder" runat="server" />
<td id="poolLInk" style="width:175px;height:18px;background-color:#cdcdcd;border-right:1px gray groove; padding: 2px;" runat="server">
<asp:LinkButton ID="lnkLoadPool" runat="server"> <%# Eval("PoolName")%></asp:LinkButton>
<asp:Image ToolTip="Deals in this allocation have been locked" ID="imgLock" runat="server" Visible='<%# Eval("Locked_flag")%>' ImageUrl="~/images/lock.gif" />
<asp:Label BorderColor="#8c9bad" BackColor="White" Font-Bold="true" BorderStyle="Double" BorderWidth="2px" ForeColor="Black" Font-Size="10px" ID="lblImbalance" runat="server" Text='<%# Eval("TLBalance")%>' >
<td id="poolLInk" style="background-color:#cdcdcd;border-right:1px gray groove; padding: 4px;" runat="server">

The ID for "itemPlaceHolder" is not by accident, this is the identifier row where your itemtemplate rows will be bound. The advantage to this is that you have FULL control of how the html is rendered from your datasource. Whereas in a gridview your stuck with the table column design of the layout. Additionally you can use the datapager control inside of the template to enable paging, which does not work with the Gridview Control.




Firing Update Panel From A GridView Button

by rBellantoni 7/22/2009 7:22:00 AM

Here's how to fire an update panel from a gridview:

 In the RowCreated event of your gridview you need to register the button as an asyncpostback trigger:


 Then just call the update panel you would like to update in the button's click event


Tags: , , ,


Ajax Loading Gif Generator

by rBellantoni 7/20/2009 8:18:00 AM

This website has one of the best ajax loading gif generators i've used and is completely free and customizable!



.NET | BlogEngine.NET | VB.NET

Int.Parse vs Convert.ToInt32

by rbellantoni 7/20/2009 4:38:00 AM
The main difference between Int.Parse and Convert.ToInt32() is that the convert will not throw a reference exception when it is passed a null, it will instead return a 0. Int.Parse however as well all know will throw a NullReference exception and crap out on ya.



Powered by BlogEngine.NET
Theme by Mads Kristensen

About the author

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

E-mail me Send mail


<<  July 2017  >>

View posts in large calendar

Recent comments



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

© Copyright 2017

Sign in