Sunday, December 29, 2013

load report failed in iis7

You have to give permission to temp folder in server pc Click Start-->Run-->Type Explorer--> go to C:/ Windows temp Right click on Temp folder Properties give the user to full/write control

Trusted Connection failed for IIS7 in localhost

Create a new user of your PC (if you alreasy have do not to create) One of our websites use Impersonation and a specific user account with special permissions to access certain system resources. The first step in enabling impersonation is, setting up the correct attributes in the web.config file write By using the attribute impersonate="true", you are telling IIS that this website will be impersonating the configured user account.
  • 1. Open IIS Manager
  • 2. Expand computer name
  • 3. Expand websites
  • 4. Click on the specific website for which you want to use impersonation
  • 5. On the right panel, under the heading "IIS", double click "Authenticaion".
  • 6. Right click on "ASP.NET Impersonation" and select "Edit"
  • 7. Choose "Specific User".
  • 8. Click the SET button to provide the specific user name and password.
Press OK at the popup dialog to complete this step on enabling impersonation for website in IIS 7.0. How to choose process identity for Application Pool in IIS 7.0 To set the correct user identity for the application pool, follow the steps below:
  • 1. Open IIS Manager
  • 2. Click on "Application Pools" under the computer name
  • 3. On the right panel, right click on the application pool name
  • 4. Select "Advanced properties"
  • 5. Select "Identity" under "Process Model".
  • 6. Click on the button to set the user account.
  • 7. Select "Custom account"
  • 8. Click on the button to specify the user account and password.
  • 9. Press "OK".

Thursday, December 26, 2013

Row wise sum to the next row

whileprintingrecords; numbervar subtotal; subtotal := subtotal + ({@TotAmt})

Wednesday, November 27, 2013

Another Way To addrow in datatable using Jquery

Antecedents/Triggers Consequences Timing Consistency
function addRow() { var tbl = document.getElementById('tbl'); var Row = parseInt(document.getElementById('hsb').value); var temprow=Row+1; var mainRow = tbl.insertRow(temprow); var trId ="tr"+temprow; mainRow.id=trId; var td = document.createElement("td"); td.colSpan='6'; var table = document.createElement("table"); table.border="0"; table.cellPadding="0"; table.cellSpacing="1"; table.width="100%" var newRow = table.insertRow(0); var sec = "'risk'"; var newCell = newRow.insertCell(0); newCell.width="50%" newCell.innerHTML = ' var newCell = newRow.insertCell(1); newCell.width="17%" newCell.innerHTML = ''; var newCell = newRow.insertCell(2); newCell.width="10%" newCell.innerHTML = ''; var newCell = newRow.insertCell(3); newCell.width="10%" newCell.innerHTML = ''; td.appendChild(table); mainRow.appendChild(td); document.getElementById('hsb').value=temprow; }

Adding,Deleting Row in gridview using Jquery (Very Effective)


Records
Company Product Model State City Quantity Contact Mail ID


Select
Jqueyy code: $(document).ready( function () { $("#DuplicateRow").click( function () { var checkboxValues = []; $('input[type="checkbox"]:checked').each( function () { var $chkbox = $(this); var $actualrow = $chkbox.closest('tr'); var $clonedRow = $actualrow.clone(); $clonedRow.find("select").each( function (i) { this.selectedIndex = $actualrow.find("select")[i].selectedIndex; } ) $chkbox.closest('#tabletomodify').append($clonedRow); } ); } ); $("#DeleteRow").click( function () { var checkboxValues = []; $('input[type="checkbox"]:checked').each( function () { var $chkbox = $(this); $(this).closest("tr").remove(); } ); } ); $("#AddRow").click( function () { var row = document.getElementById("row"); // find row to copy var table = document.getElementById("tabletomodify"); // find table to append to var clone = row.cloneNode(true); // copy children too clone.id = "row"; // change id or other attributes/contents table.appendChild(clone); // add new row to end of table } ); $('#tabletomodify').on('change','.selcompany', function () { var optionSelected = $("option:selected", this); var valueSelected = this.value; alert(valueSelected); }); } );

Friday, November 22, 2013

Object Object , Json Parse Problem in jquery

success: function(msg) { alert("{Pid:'"+ faram+"'}"); var orders =msg; if (orders.length > 0) { alert(orders.length ); test(orders); } function test(data) { for (i in data) { for (k in data[i]) { alert(data[i][k]); } }

Saturday, August 31, 2013

LINQ Tutorials

http://www.codeproject.com/Articles/46422/A-LINQ-Tutorial-Adding-Updating-Deleting-Data