Skip to main content

Posts

Getting java.lang.OutOfMemoryError in Xamarin

Error        java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -jar  "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v6.0\mono.android.jar"  ------------------------ Solution -------------- Just set the java max heap size into the android project property using below steps: Right click your Android Project > Proerties > Android Options > Advanced Tab > Java Max Heap Size set Java Max Heap size to 1G and save the settings.

Jquery Paging in MVC

In js file : var _currentPageID = 1; var _pageSize = 10; var _sortExpression = ''; var _sortDirection = 1; var _accessUrl = ''; var _gridDivId = 'ajaxGrid'; var _searchBoxDivId = 'searchFilter'; var _searchParameters = []; function asynList() {     var jsonParameters = { "CurrentPageID": _currentPageID, "PageSize": _pageSize, "SortingColumn": _sortExpression, "SortingOrder": _sortDirection, "SearchParameter": _searchParameters };     $.ajax({         type: 'POST',         contentType: 'application/json',         data: JSON.stringify({ TablePaging: jsonParameters }),         url: _accessUrl,         success: function (result)         {             $('#' + _gridDivId).html(result);             $('.sort-icon').removeClass('sort-asc');           ...

Create Strong Name Assembly

From a VS.NET command prompt, enter the following: 1. Generate a KeyFile sn -k keyPair.snk 2. Get the MSIL for the assembly ildasm SomeAssembly.dll /out:SomeAssembly.il 3. Rename the original assembly, just in case ren SomeAssembly.dll SomeAssembly.dll.orig 4. Build a new assembly from the MSIL output and your KeyFile ilasm SomeAssembly.il /dll /key= keyPair.snk   more read visit : http://www.geekzilla.co.uk/ViewCE64BEF3-51A6-4F1C-90C9-6A76B015C9FB.htm

select all checkboxes in a table javascript

function checkAll(bx,dg) {                                         var tbl = document.getElementById(dg);                                         for (var index = 1; index < tbl.rows.length; index++) {                                             var cbs = tbl.rows[index].getElementsByTagName('input');                ...

Types Of Join In SQL

Sql joins are used to fetch/retrieve data from two or more data tables, based on a join condition. A join condition is a relationship among some columns in the data tables that take part in Sql join. Basically data tables are related to each other with keys. We use these keys relationship in sql joins. Inner Join Outer Join Cross Join Cross Join

Change Key Dynamically in Web.Config

System.Xml; private void SetConfigSettings() { string path = Server.MapPath("Web.config"); string newConnectionString = @"Server=local;Database="+txtDatabaseName.Text+";Trusted_Connection=true"; XmlDocument xDoc = new XmlDocument(); xDoc.Load(path); XmlNodeList nodeList = xDoc.GetElementsByTagName("appSettings"); XmlNodeList nodeAppSettings = nodeList[0].ChildNodes; XmlAttributeCollection xmlAttCollection = nodeAppSettings[0].Attributes; xmlAttCollection[0].InnerXml = txtKey.Text; // for key attribute xmlAttCollection[1].InnerXml = newConnectionString; // for value attribute xDoc.Save(path); // saves the web.config file }