Skip to main content

Posts

Showing posts from October, 2012

Load more items in datalist when scroll down ?

Hi all , I am making a scroll feature in my website that loads more items into the datalist when i scroll down (like Facebook) Code : <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="temp_Test" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title>     <style>         .AlbumShadow         {             float: left;             margin-top: 8px;             margin-left: 20px;             background: #aaa;         }         .AlbumShadow img         {             margin: -4px 4...

Enable Displaying of Mixed Content in Internet Explorer in C#

        if (Request.Browser.Type.Contains("IE"))         {             try             {                 RegistryKey ChangeSettings = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3", true);                 ChangeSettings.SetValue("1609", "0", RegistryValueKind.DWord);                 ChangeSettings = Registry.CurrentUser.OpenSubKey(@"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2", true);                 ChangeSettings.SetValue("1609", "0", RegistryValueKind.DWord);                 ChangeSettings.Close();             }             catc...

required validation on gridview textbox using javascript

<script type="text/javascript" language="javascript">         function gvValidate() {             var grid = document.getElementById("<%=gvMyProducts.ClientID%>");             var inputs = grid.getElementsByTagName("input");             var flag = true;             for (var i = 0; i < inputs.length; i++) {                 if (inputs[i].type == "text") {                     if (inputs[i].value == '') {                         flag = false;                     }                     else {                         return ...