Home > Asp.net (Page 3)

How to added Script Manager Dynamically before Any Control Need its in asp.net?

The control with ID 'updpnlRightNav' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.   Solution :  1) Add a PlaceHolder on This Page Then ...Create Event on Update Panel OnInit     <asp:PlaceHolderID="pccScriptManager"runat="server"></asp:PlaceHolder>       <asp:UpdatePanelID="updpnlRightNav"runat="server" OnInit="updpnlRightNav_Init"> 2)    protectedvoid updpnlRightNav_Init(object sender, EventArgs e)     {              if (ScriptManager.GetCurrent(Page) == null)             {                 //   

This Article is TAGGED in , . Read more

How to get notification from database when any transaction on records?

Technologies Used: Visual Studio 2013 Express Sql Server 2008 R2 Express MVC 5 Nuget SqlDependency MSDN SignalR 2.0.1 Nuget Jquery 2.0.3 Nuget Toast Notifications Script to Create Broker & Service: create a user called "GeneralUser" with a password of "dbpassword" in your SQl Server logins. Run the following script in a Sql query pane, to create a message broker\service for

This Article is TAGGED in , , , , , , . Read more

How to add pin on page load and move it anywhere on Google map using JavaScript

Demo: PinOnMap Here is the source code to show pin on Google map using JavaScript: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> [crayon-674e6d8d30d62836349340/] </script> // html code <body onload="initialize(new google.maps.LatLng(18.5203,73.8567))" style="font-family: Arial; border: 0 none;"> <input type="text" size="52" name="address" id="Address" />

This Article is TAGGED in , , . Read more

How to Schedule Jobs in Windows Azure Worker Roles

The following is an example that demonstrates how I was able to successfully schedule jobs. Start by implementing the IJob interface to create a job that can be managed by Quartz.Net. [crayon-674e6d8d30ee9176824644/] Then in the RoleEntryPoint OnStart() method create and configure the scheduler with a trigger and the daily job. This is the part that was greatly lacking in

This Article is TAGGED in , , , . Read more

How to import data from MS Excel

If you have data in excel and you want to add data in you database using C# this is useful example. Follow below steps: Step 1: Create database tables to import data [crayon-674e6d8d31060355768583/] Step 2: Add below namespaces in your project [crayon-674e6d8d31065773796987/] Step 3:  Add below method and send file path to this method as parameters. [crayon-674e6d8d31068406336871/]  This method get file path

This Article is TAGGED in , , , , . Read more