Skip to main content

Posts

Showing posts from March, 2016

Types and uses of CSS styles ...

Css types and there uses There are three ways  of using  CSS classes : 11.)     INTERNAL STYLE S  :    I nternal styles are defined in the <head > of current web page ·          Internal style are placedinside the <head> tag of a particular web page via style tag. ·          These styles can be used only for the page in which they are embedded. ·          You would need to create these styles again over again. ·           For example :  <style type =”text/css”></style> 22.)     INLINE STYLES :     Inline styles are defined within the HTML markup of particular web page.(Avoid) ·          Inline styles are placed directly inside an HTML in the code. ·     ...

Advantages of modal popup , creating modal popup and how can we call it from client side as well as server side using asp.net(C#) and MVC..

Create a modal popup and enabling it onclick event from server and client side both. Purpose: Advantages of modal PopUp over  simple PopUP :      è   More compatible, simple to create , flashy/pretty  and  jQueryUI-friendly. è   The modal content can be any hierarchy of controls and is displayed above a background that can have a custom style applied to it. è   You can  absolutely position a modal popup by setting the X and Y properties. By default it is centered on the page, however if just X or Y is specified then it is centered vertically or horizontally. è   When the user is done interacting with the modal content, a click of an OK/Cancel control dismisses the modal content and optionally runs custom script. è   The custom script will typically be used to apply whatever changes were made while the modal mode was active. Java Script:   Here I used modal popup for printing the selec...

How to display date and time through java script and C# code.

  Fetching  system’s date and next two months date and displaying it in two different text boxes. C#:      Through c# ‘DateTime’ function fetches system’s current date. In given scenario two strings are storing data in ‘mm/dd/yyyy’ format and second string stores todays next two months date.             string expiryDateFrom = DateTime .Now.ToString( "MM/dd/yyyy" );             string expiryDateTo =  DateTime .Today.AddMonths(2).ToString( "MM/dd/yyyy" ); Java Script:   Through java script ‘getDate’,’getMonth’,’getFullYear’ are responsible for respectively fetching data for day,month,and for year.here month month is fetching current month while month1 fetching todays next two month. For example if month =03 then month1 will be month1 = 05. function displayDate() {       ...