Advertisement

CSS Interview Questions and Answers

CSS Interview Questions and Answers Interview Questions and Answers

CSS (Cascading Style Sheet) is the core part of UI. CSS plays the major role for designing the page along with HTML/javascript/jQuery. CSS is the reusable styling component which can be implemented in any web technologies like ASP.NET, PHP, Ruby Rails, etc.,

Recent Updates

  • PowerShell script to set list threshold value at Web Application level
    Here is the script snippet on using Powershell how to update listview threshold value at web application level

    Step1: Open SharePoint powershell management window as administrator

    Step2: Type the below script one by one or execute as PS1 file.

    $wa = Get-SPWebApplication "http://servername:portno/"
    $wa.MaxItemsPerThrottledOperation = 10000
    $wa.MaxItemsPerThrottledOperationOverride = $true
    $wa.HttpThrottleSettings.Update()
    $wa.Update()

    Thats it..!!
  • How to show a element or control using CSS ?
    HTML Code
    <div id="divContainer" class="clsContainer">lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum </div>

    CSS
    css to hide the div element using ID is like below

    <style>
    #divContainer
    {
       display: block;
    }
    </style>

    css to hide the div element using class name is like below

    <style>
    .clsContainer
    {
       display: block;
    }
    </style>
  • How to hide a element or control using CSS ?
    HTML Code
    <div id="divContainer" class="clsContainer">lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum lorum epsum </div>

    CSS
    css to hide the div element using ID is like below

    <style>
    #divContainer
    {
       display: none;
    }
    </style>

    css to hide the div element using class name is like below

    <style>
    .clsContainer
    {
       display: none;
    }
    </style>
  • How to read SharePoint 2013 List Items using REST API and javascript ajax method?
    Here it is:

    //Main method to consume REST API
    function GetListDataUsingRESTapi() {

        var strListName = 'ListName';
        var listUrl = url + "/_api/lists/getbytitle('" + strListName + "')/Items?$top=10000";
        $.ajax({
            url: listUrl,
            method: "GET",
            headers: {
                "X-RequestDigest": $("#__REQUESTDIGEST").val(),
                "accept": "application/json;odata=verbose",
                "content-type": "application/json;odata=verbose"
            },
            success: retrieveSuccess,
            error: retrieveError
        });
    }

    //Success method to iterate retrieved items
    function retrieveSuccess(data) {
        var results = JSON.stringify(data.d.results);
        results = JSON.parse(results);
        if (results.length > 0) {
            for (var i = 0; i < results.length; i++) {
                var resultTitle = results[i].Title;
                var anotherCol1 = results[i].Colname1;
            }
        }
    }

    //failure method to get error message returned from REST API
    function retrieveError(request, status, error)
    {
        console.log(error);
    }
  • How to send Email in ASP.NET ?
    SmtpClient objEmail = new SmtpClient("mailserver.domainname.com", 27);

    objEmail.Credentials = new System.Net.NetworkCredential("mailid@domainname.com", "passwrd");
    //or
    //pass default credential
    objEmail.UseDefaultCredentials = true;

    //based on need
    objEmail.EnableSsl = true;

    //delivery method
    objEmail.DeliveryMethod = SmtpDeliveryMethod.Network;

    MailMessage mail = new MailMessage();
    mail.From = new MailAddress("admin@domainname.com", "Subject title");
    mail.To.Add(new MailAddress("testuser@anotherdomain.com"));

    objEmail.Send(mail);
 

Happy Reading.. Happy Programming :)