A little something about everything

internet marketing and website development made simple..

How to show/hide a asp.net sub element with jquery

This method allows you to show/hide a form element without making another request against the server. It also works when the show/hide element is required by the asp.net code behind.

You can use any type of sub element under a dropdown with this script. You will need to use a CDN or download and host your own jquery-1.3.2.min.js file.

SCRIPT

<script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function() { $('#<%= Dropdown1.ClientID %>').change(function() { if (this.value=="My Value") { $('#<%= Element1.ClientID %> ').css({ visibility: 'visible' }); } else { $('#<%= Element1.ClientID %> ').css({ visibility: 'hidden' }); }}); }); </script>

 

HTML

<asp:DropDownList runat="server" ID="Dropdown1" class="required" >
<asp:ListItem Value=""> none</asp:ListItem>
<asp:ListItem Value="My Value">Some Text Here</asp:ListItem>
</asp:DropDownList>

<!-- place any element here with id="Element1" -->

text-shadow not working in chrome, css tricks

Here is the sample,

Text Shadow

And with no further adieu, here is the code:

for chrome:

  • text-shadow: -3px 3px 2px rgba(0,0,0,1);

For MS Browsers:

  • text-shadow: -3px 3px 2px 1px rgba(0,0,0,1)

For Both:

  • text-shadow: -3px 3px 2px rgba(0,0,0,1)
  • text-shadow: -3px 3px 2px 1px rgba(0,0,0,1)
Since CSS is read top down you can just place the version needed for crome above the general use/preferred method.

The volume (DRIVE:) was not optimized because an error was encountered: Neither Slab Consolidation nor Slab Analysis will run if slabs are less than 8 MB. (0x8900002D)

This error appears in the event viewer when the scheduled task "ScheduledDefrag" runs.

Cause: In most cases this is cause by the -k switch which tells the defrager to perform a slab consolidation on the selected volume. This will cause an error for slabs that are less than 8 MB, and will commonly toss an error on HyperV VM's.

Solution: remove the -k switch from the task.

  • Open scheduled tasks, Microsoft, windows, defrag: "ScheduledDefrag"
  • Now click properties, actions, edit [start a program]
  • under add arguments(optional): remove the -k and click "ok", "ok"

That's it, your done.

This message wasn't delivered to anyone because it's too large. The limit is 10 MB. This message is / 550 5.2.3 RESOLVER.RST.SendSizeLimit.Org; message too large for this organization

Error:

This message wasn't delivered to anyone because it's too large. The limit is 10 MB. This message is

This message won't be sent because it's too large

#550 5.2.3 RESOLVER.RST.SendSizeLimit.Org; message too large for this organization ##

 

Solution:

Adjust the limits with the following powershell commands:

 Set-TransportConfig -InternalDsnMaxMessageAttachSize #MB

 Set-TransportConfig -ExternalDsnMaxMessageAttachSize #MB

then

 Set-TransportConfig -MaxReceiveSize #MB -MaxSendSize #MB

or

 Set-Mailbox "User" -MaxSendSize #MB -MaxReceiveSize #MB