"ViewData vs ViewBag vs TempData vs Session"
There are following four ways to pass data from controller to view in Asp .Net MVC:-
ViewData
ViewBag
TempData
Session
Overview:
Let us see them in more detail...
Hello all,
Mainly prefixes are used for css3 properties which is experimental or non standard CSS properties, this tells to different browser
Mostly we avoid the prefix but sometimes if you are not using prefix, your css3 properties will no...
If you are creating web forms then you need to put the validation in your form. We are here to discuss the validation for email. We know email address has its own structure. For eg. anytext@domain-main.com or anytext@domain-name.co etc
We are g...
Hello Readers,
I will show you how to copy text in clipboard without using ctrl+c.
<html>
<head>
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script src="jquery.zclip.js"></scri...
Draw circle in HTML: In this article I will show you how we can draw circle in HTML canvas. To draw circle in web page we will use Canvas API, we will draw the circle on canvas using the arc() method. Following is the simple example to draw circl...
Now a days, the trend of browsing has changed a lot. Earlier, we use to sit on the system and perform various activities but now in this modern era the trend has been changed and we use to do all the internet related activities on our mobile devi...
If you want to merging data from older database to new database in PostgreSQL or want to merge data from other database(db1) to another database(db2), follow these below steps:
from db1, export all the necessary tables to csv using:
copy ...
If you want to assign task in project management follow the below mentioned steps: -
Step-1 Install Project Management module.
Step-2 Go to Project Menu and click it.
Step-3 Go to Project-> Tasks->Create->Fill in the followin...
Step-1 install the account_invoice_copy module.
Step-2 After that customize .py file in account_invoice_copy module.
In below example, I have custmozied .py file. You can directly copy the below python code in your .py file -
def cop...
"Finalization Queue in .Net Garbage Collection"
In this article we will see the detailed working of the Garbage Collector and the Finalization Queue.
For reading about the Garbage Collector please go to the following link:
Garbage Colle...
It is very painful to use pagination in other framework but In laravel 4.x. It is very easy to implement pagination in laravel 4.x. By using configuration option in
app/config/view.php
file. Pagination option specifies that which view fi...
In the example given below, I have used ng -repeat for dynamically creating input boxes. I have also used ng-form directive that allows the nesting of forms that can also be used for partial validation .
<form name="mainForm" ng-submit=...
In laravel 4.x we can easily integrate the mail functionality. Laravel provide a simple API over popular SwiftMailer. We can simply configure our mail credential by using
app/config/mail.php
which allow you to change your SMPT host, por...
Social media... Now a days social media is a part of life or requirement of time. We are here to discuss integration of twitter with magento. We all have twitter account. Am I right?. We can integrate twitter to magento with different ways. Like ...
Welcome to this blog.
Today we are going to discuss non-default themes in magento. We all knows magento is a powerful eCommerce platform where you can easily build your stores. If you want to work on magento then you need to understand it's fil...
I have to use basic authorisation in my https request. I am using the following code :
NSString *authStr = [NSString stringWithFormat:@"%@:%@", @"p5\test", @"password"];
NSData *authData = [authStr dataUsingEncoding:NSUTF8StringEncoding];
NS...
Hi all,
An interesting CSS trick is the creation of circles navigation, sometimes we need this type of navigation, mainly for mobile. Hence it can be useful.
You need to know about pseudo elements for better understanding of this type nav...
There are many options to locate the element but the easiest way to locate an element is by its id. In webpages we can easily locate the element by its id but on mobile its very tricky to locate the element by id.
I am automating an Android app...
Hello reader!
If you want to send the value from one div to another div in your same webpage, you can do this by help of JavaScript function.
Lets do this with example-
This is the div from which the value is taken
<div id='td1'>T...
Broken Links:
Links for which pages are not found or there is a change in main URL that's why it is showing broken.
Dead hyperlinks on websites are not just infuriating , but there presence may do some serious vandalization to your online bus...
Hello Readers,
If you want to resolve the Issue of Invalid token in Joomla while login then use the some basic points which are given below:
1.Clear all cache and cookies from your browser.
2.Disable apache mod_cache.
3.Disable the server...
Here I am giving a brief idea of creating a custom module for newbie.
For taking an example, I am creating a list of contents of my custom content type.
However for creating custom pages, we can use Views module and it is highly customizabl...
The TIMESTAMP data type is the only data type which is used to have MySQL automatically set the time when a row is inserted and/or updated. DATETIME columns cant do this.
We can define more than one TIMESTAMP column in a table, but only one TI...
Hello Readers,
If you want to make the custom HTML module in Joomla from admin side and show on frontend then follow the below lines:
1.Go to the Module Manager (Extension Section) in Joomla administrator (backend).
2.Select the New button ...
PHPExcel library is basically used for creating reports in Excel format. But if we are using Drupal then there is list of contributed modules to achieve this feature and build on top of PHPExcel library.
You can use one of the following module...
Taxonomy Token module is very useful for this purpose but only in Drupal 6. As In Drupal 7 The core Taxonomy and Token core modules already offer similar features.
In Drupal 7 Taxonomies are related to nodes through fields of the type Term re...
Drupal in it's core have lots of tokens which are basically shortcode or placeholder for any kind of information related to Node, User or System itself. Get a complete list of available tokens in Drupal from:
https://www.drupal.org/node/390482...
We are going to process ajax request in wordpress shortcode on button click. First of all you need to add the shortcode in wordpress. Kindly write below code in function.php
<?php
function callback_listing($atts, $content = null)
{
e...
For creating a customer payment against an invoice through Customer Payments, follow these steps:
Go to Accounting/Customers/Customer Payments and create.
Select the Partner, you will see all the invoices in the Payment Information tab.
Fi...
Jquery .attr():
Get the value of an attribute for the first element in the set of matched elements.
An attribute value may only be a string.
The attributes contains basic information along with some additional information about...
To Creating Outgoing Mail Server in openerp-6.1
Follow these step given below:-
1. Go to Setting->Configuration->Email->Outgoing Mail Servers, and create
2. In Description field, give an appropriate name, example: localhost
3. SMTP ...
We are here to discuss OAuth 2.0 Authentication in wordpress. Do you know about OAuth?. What is OAuth?. OAuth is nothing but a open protocol which is useful to allow authorization by easy and secure methods from web/mobile/software applications.
...
If you want to use OpenERP(Odoo) mobile application follow the below mentioned steps:
Step-1 Go to Google play or App Store.
Step-2 Install it
Step-3 Connect to server and Account Setup
Step-3 Enable sync services
Step-4 check message
...
"Different ways for returning a view in ASP.NET MVC"
In this article we are going to learn about different ways that can be used to return a View in Asp .Net MVC.
There are different ways for returning a view in As...
Workforce diversity is the factor that examines the management of workforce (i.e., understanding the differences among the existing employees, and these differences, if properly managed, are an asset to work effectiveness).
Factors that basicall...
During your first attempt of installing Liferay with eclipse, if you were unable to set your database configuration as MYSQL and it still shows the default database.Then there is a quick solution to this problem.
Steps that should be followed ...
If you want to rename the file name at the time of upload, it is a right place to know the solution. Let's discuss this requirement.
We all know there are many hooks available in Wordpress. We will use the filter named sanitize_file_name. You ...
jQuery $(document).ready() is a basic part of using jQuery. Document ready event is a self-executing function which fires after the page elements have loaded. jQuery document ready is used to initialize jQuery/JavaScript code after the DOM is rea...
In web development field we face different situations in order to fulfil the requirements. Sometimes we have to customize the well managed CMS/frameworks. Today we are going to take an sample example of wordpress plugin development. There is one ...
WebView is a special control that has a capability to display a webpage inside your application.
Watch this Video tutorial to know how to implement WebvView inside your Activity.
We can create custom Struts action in Liferay by using Hooks, these type of Hook is called as Liferay Struts Action Hook.
Follow the below steps to create a Struts Action:
Create Liferay Plugin Project of type Hook.
Write the below cod...
Hi,
Are you still working with Image Loader or Universal Loader library for lazy loading of images in listview. if yes then you should know that sometimes these libraries could give out of memory exception if you are fetching lots of images o...
Hello Guys,
Liferay provide default auto log-out functionality when you are inactive 30 minutes on website, it will log-out from website. You can change this functionality according requirement.
Auto log-out functionality depends on ses...
Hello all,
Working with AngularJS, we can create our own custom directives that helps us to put our common html code in a separate html file and later on we can use it as a html tag, this helps us to make our code much more organizable and reu...
PHP has three types of modules which are as following.
A) Core PHP : This modules handles requests, error handling as well as file streams.
B) Zend Engine: It convert the php code into machine tokens or opcode and it will execute it in a vi...
If we need to use foreach loop in javascript then we can use jQuery $.each() function:
var data = [];
data[1] = "Mike";
data[2] = "Tom";
data[5] = "Harry";
data[12] = "John";
$.each(data, function( index, value ) {
alert( index + ": " ...
Hello Readers,
This post helps you to create a ZIP file using PHP.
<form name="zip" method="post">
<input type="checkbox" name="files[]" value="book.pdf" />
<input type="checkbox" name="files[]" value="doc.pdf" />
<i...
Hi All,
Today we will discuss about "$scope in Angularjs".
First of all what is $scope ?
A $scope is an object instance of a controller. When ng-controller directive is encountered at that time $scope gets created.
For example:
In the bel...
Before calculating the defect leakage we have to understand that what defect leakage means.
What is Defect Leakage?
After the delivery of application or product or we can say after the release, if end user or Customer find any defect by usi...