Posts

Showing posts from November, 2013

Alert Box within UpdatePanel

Problem is Java Script doesn't work in Update Panel Sample : On SQL condition div has to be disable and enable To Disable Dim strScript As String strScript = "$('#divVI').attr('disabled', 'disabled');" ScriptManager.RegisterStartupScript(UpdatePanel8,UpdatePanel8.GetType(), Guid.NewGuid().ToString(), "<script type='text/javascript'>" & strScript & " </script>", False) Note : This code is placed in page load. This will disable the div To Enable ScriptManager.RegisterStartupScript(UpdatePanel8, UpdatePanel8.GetType(), Guid.NewGuid().ToString(), " <script type='text/javascript'> $('#divVI').removeAttr('disabled');</script>", False) ScriptManager.RegisterStartupScript(UpdatePanel3, UpdatePanel3.GetType(), "DeleteMessage", "<script type='text/javascript'> alert('Individual Member Not Found!'); </script...

Provide Inline Scrolling in Div

Provide Inline Scrolling in Div Some External file are needed to work this out Source Web site :- http://jscrollpane.kelvinluck.com/ Download Files :-  http://jscrollpane.kelvinluck.com/index.html#download File Needed :- 1.jquery.jscrollpane.css       2.jquery.mousewheel.js                3.jquery.jscrollpane.min.js           4.jquery-1.9.1.js  {Any Latest file will work}     <script src="Script/jquery-1.9.1.js" type="text/javascript"></script>     <script src="Script/jquery.jscrollpane.min.js" type="text/javascript"></script>     <script src="Script/jquery.mousewheel.js" type="text/javascript"></script>     <script type="text/javascript">         $(document).ready(function ()         {             $('.divscroll').jScrollPa...

Link Image box to Page

When HyperLink is linked with Imagebox Border appears on IE. To remove this follow HTML below Note : border="0" in IE Border appear around Image Control                             < asp:hyperlink id="link" runat="server" NavigateUrl="default.aspx" >                                  < asp:Image ID="imgboxPanel1" runat="server"  Width="100px" Height="109px"  border="0" / >                              < asp:hyperlink >

Overlapping Div Side by Side

Image
Place overlapping Div Position:absolute; is main key for overlapping the Div on right side. To perform this it has to have container. less it will start floating on page Leftdiv has text which is suppose to overlap text on right div upto certain width Check for Working IIDAwards and zone page  <div id="leftdiv" style="height:500px; width:400px; float:left;">              <div id="textdiv" style="height:100px; width:450px; padding-top:20px; position:absolute;"                           class="staticpagetext" >                     Zone / Region refers to the city in which the Project is located, without any reference                     to the Participant's design office location.              </div>   ...

Ajax Combobox and SelectedIndex Issue

1.This is to handle Issue with Combobox When text is deleted direct Selected index doesn't Turn -1 2.Remove value which is not there is list after leave event of combobox.                 $(".ajaxComboBox :input[type=text]").each(function (i) {                     this.onblur = function () {                         var comboBox = $find(this.parentNode.parentNode.parentNode.parentNode.parentNode.id); // the combobox                         //alert(comboBox._element.id);                  // Return Control ID                         //alert(comboBox.get_textBoxControl().value);  // Return textbox value                   ...