Skip to main content

Posts

whats the difference between == and === ?

The difference between == and === is that: 1. == converts the variable values to the same type before performing comparison. This is called type coercion. 2. === does not do any type conversion (coercion) and returns true only if both values and types are identical for the two variables being compared. Example: var one = 1 ; var one_again = 1 ; var one_string = "1" ; // note: this is string console . log ( one == one_again ); // true console . log ( one === one_again ); // true console . log ( one == one_string ); // true. See below for explanation. console . log ( one === one_string ); // false. See below for explanation

SQL Server - Running large Sql files

When we try to open a large Sql file in SQl Server, it's gives the error "The operation could not be completed. not enough storage is available to complete this operation The template specified cannot be found. Please check that the full path is correct" Solution: use the  sqlcmd  tool to execute the file. To execute a SQL script: Start the Command Prompt Run the below command   sqlcmd -S DatabaseServer -d Database -i C:\Users\Administrator\Downloads\script.sql -x

Error "A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe"

Error "A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe" Solution: This is login authenticate problem. Please check the following things: In the SQL Server Properties, please check that "SQL Server and Windows Authentication Mode" is enabled, if not enable, please enable and restart the SQL Server.   Is Login have the permission to particular Database?   This might be a firewall issue as you mentioned it only happens when security agent installed. Please make sure you have properly configured security agent to allow Database Engine Services accesses.  

How to Update Private Nameserver / Child Nameserver in BigRock?

Register and Update Private Name Servers / Child Name Servers in Big Rock Login to your Bigrock Account and Select the domain for which you would like to update the nameserver details. Click on the ‘Child Name Servers’ link. You have to provide Appropriate Host Name and its appropriate IP address Go back to the main page and select the “Name Servers” option  Now, Enter the already registered private nameservers here and update name servers 

file upload not working in updatepanel asp.net

The Fileupload Control is not working in the UpdatePanel in asp.net. To use the FileUpload control in the Updatepanel. We need to add the Post back trigger to the UpdatePanel Like the below Code < asp : UpdatePanel ID = "UpnlFileUpload" runat = "server" > < ContentTemplate > < asp : FileUpload ID = "FlUpload" runat = "server" /> < asp : Button ID = "btnFileUpload" runat = "server" Text = "Upload" OnClick = "btnFileUpload_OnClick" /> </ ContentTemplate > < Triggers > < asp : PostBackTrigger ControlID = "btnFileUpload" /> </ Triggers > </ asp : UpdatePanel > Here we need to pass the Button Control ID in the PostBackTrigger Like the above code. Generally after adding the PostBackTrigger it works accurate but some time it will not work. In this case you need to add the below code in the  Page_Lo...

DataTable.js, Change the Color of Row based on the Cell Value

DataTable.js, Change the Color of Row based on the Cell Value Suppose you wants to change the color of Table Row on the bases of column value, then we have to use  rowCallback as the below code rowCallback: function (row, data, index) {             if (data[3] ==="some value") {                 $(row).css('color', 'red');             }                     } This code should be used like the below: var table = $('#TableName').DataTable( {         'paging': true,         'lengthChange': true,         'searching': true,         'ordering': true,         'info': true,         'autoWidth': false,         'ajax': 'JsonData.json',         'columnDefs': [{  ...

Why is my website URL blocked on Facebook? How can I unblock it?

Why is my website URL blocked on Facebook? How can I unblock it? My website link was blocked by the facebook and i have review my website at debugging/feedback/reporting tools and got the below message We can’t review this website because the content doesn’t meet our Community Standards. If you think this is a mistake, please let us know . And we were 100% certain that we were not violating any “community standards” but still, every effort returned the same message as above. Solution i have contacted facebook support and facebook support unblock my website, So, please reach the live support  by take these easy steps: visit Facebook for businesses click on support on the top right corner scroll down a bit until you come across “Find answers or contact support” and click on “Get Started” choose business pages scroll all the way down to the bottom and click on “Chat with a representative” and finally, describe your problem by choosing some predefined fields and h...

bootstrap, Modal - How to get Bootstrap Modal's invoke or source element?

How to get Bootstrap Modal invoke or source element? $('#your-modal').on('show.bs.modal', function (e) {   var $invoker = $(e.relatedTarget); }); Various events of modal popup are: show.bs.modal : fired just before the modal is open. shown.bs.modal : fired after the modal is shown. hide.bs.modal : fired just before the modal is hidden. hidden.bs.modal : fired after the modal is closed. How to open a Bootstrap modal window using jQuery? $('#myModal').modal('show') // initializes and invokes show immediately Bootstrap has a few functions that can be called manually on modals: $('#myModal').modal('toggle'); You can check more documentation here https://getbootstrap.com/docs/3.4/javascript/ $('#myModal').modal('show'); $('#myModal').modal('hide');