TechSapphire Monday, 2024-12-30, 8:48 PM
Site menu
Login form
News
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Main » Programming

    ASP.NET Dynamic Data is used to create data-driven web applications with minimal coding. ASP.NET Dynamic Data have the advantage of using all capabilities of the Dynamic Data Framework. You can also add specific capabilities of Dynamic Data to an existing Web application, such as:
    • Web scaffolding, which is a mechanism to enhance the existing ASP.NET page Framework by dynamically display webpages based on the data model. Web scaffolding involves running a Web Application by reading the underlying database schema. Dynamic Data Scaffolding can generate a standard user interface(UI) from the data model.
    • Full access to data operations (such as CREATE, DELETE, UPDATE, REMOVE and DISPLAY), relational operations, and data validation.
    • Support for foreign-key relationships that allows Dynamic Data to detect the relationships among tabl ... Read more »
    Category: Programming | Views: 27274 | Added by: Admin | Date: 2012-11-06 | Comments (3)


    XSLT is very simple but powerful way to handle dynamic transform. In this example i have used XML datasource and XSLT file for generating dynamic nested menu. The menu source is an SQL server database. The script for generating SQL table is also provided with solution.

    Download source code of dynamic nested menu using XSLT
    Category: Programming | Views: 26783 | Added by: Admin | Date: 2012-11-02 | Comments (1)

    Create Excel (xls) from gridview, XSLT from XML using c#, ASP.NET or .NET

    In this example i have covered 2 ways of generating XLS:

    1. From Gridview
    2. Using XLST file

    Code for Gridview to XLS:

    Download code for Gridview to Excel


    Code for XLS using XSLT:

    Download code for generating excel using XSLT

    Note:
    • Better way is using XSLT.
    • XSLT is fast resource for generating XSL
    • Can be used with any datasource taking XML in between.

    Category: Programming | Views: 7710 | Added by: Admin | Date: 2012-11-02 | Comments (0)

    Generating HTML from XML, Database, Dataset

    HTML from XML file source is generated, but you can use dataset to generate HTML from database by generating XML using dataset. In this example i have used XSLT file to transform XML to HTML file.

    Download source code

    Code:
            string source = Server.MapPath("~") + "//XMLFile.xml";
            string style = Server.MapPath("~") + "//XSLTFile.xslt";
            string destination = Server.MapPath("~") + "//a.html";
            XslTransform transfor=new XslTransform();
            transfor.Load(style);
            transfor.Transform(source,destination);

    XSLT:

    <xsl:stylesheet version="1.0" xmlns:xsl="htt ... Read more »
    Category: Programming | Views: 13632 | Added by: Admin | Date: 2012-11-02 | Comments (2)

    Read html, text or content between HTML tag c#. .NET

    It is very easy to read content between HTML tag using c#. Steps for reading HTML content are as follows:

    • Using namespace System.Xml
    • Code:

            XmlDocument a=new XmlDocument();
            a.Load(Server.MapPath("~") + "//a.html");
            XmlNode n = a.SelectSingleNode("/html/body");
            TextBox1.Text = n.InnerXml;

           Note:

    • Be sure about case sensitivity of tag example (/HTML/BODY) in place of (/html/body).

    Download source

    Category: Programming | Views: 2822 | Added by: Admin | Date: 2012-11-02 | Comments (0)


    ASP.NET Security Lecture 1
    Authentication: Checks user identity
    Authorization: Check Permissions
     4 type of security:
    1. Windows Authentication
    2. Forms Authentication: Can be customized
    3. Passport Authentication
    4. None
    Web.config

    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
        <system.web>
            <compilation debug="true" targetFramework="4.0"/>
            <authentication mode="Forms">
                <forms name="abc" defaultUrl="Default.aspx" loginUrl="Login.aspx">
       ... Read more »
    Category: Programming | Views: 2423 | Added by: Admin | Date: 2012-08-18 | Comments (2)

    Multi language Website using ASP.NET



    Their are 3 Methods for developing multi-language websites:

    1. Replication
    2. Generalized approach
    3. Using Concept of Localization and Globalization

    Replization: This is basic approach used in static websites. In this approach you need to

    create replica of each web page in different languages. Suppose you have 100 web pages in

    your web site and you want to provide same content in 3 languages then you have to create

    300 pages for it.

    This is totally incorrect approach.


    Generalized approach: This approach is supported in ASP.NET version 1.1, 2.0, 3.5 and

    4.0. Means this approach is supported by all version of  ASP.NET.

    Localization and Globalization: This approa ... Read more »
    Category: Programming | Views: 21515 | Added by: Admin | Date: 2012-08-11 | Comments (1)

    These are secial program which are not supposed to be practiced by normal programmer. Even these question are asked during interviews and quizs.
    Some question are:
    How to print 0 if input is even and 1 if input is odd?
    How to divide any number with 256 without using arithmetic operator?
    Category: Programming | Views: 2067 | Added by: Admin | Date: 2011-10-06 | Comments (0)

    Creating BarCode using VB.Net. or Barcode and Vb.Net.

    In this project we used font which is added to font at run time. It is barcode font it convert entered text in form of Barcode value. There is file name "rmad " this must be copied into Debug folder of project so that font could be at installed run time. After generation of Barcode equivalent value and image would be created in Debug folder automatically containing Barcode value. You could download whole project as well as rmad file if need it explicitly otherwise it is already in project Debug folder.

    I am using visual studio 2010. I have converted this project compatible to framework version 2.0 but still if it doesn’t work. Then just follow the steps and create your own project. This code is acceptable to all ... Read more »

    Category: Programming | Views: 3355 | Added by: Admin | Date: 2011-10-05 | Comments (0)

    Writing Text to image using Vb.Net Or writing text to image .net Or writing to image file .Net
    You can write text to image pro grammatically using VB.Net. This is sample code in VB.Net.
    Solution:
    Namespace required:

    Imports System.Drawing

    Imports System.Drawing.Imaging

    Source Code:

           Dim objBitmap As New Bitmap(100, 50)

            Dim objGraphics As Graphics = Graphics.FromImage(objBitmap)

            Dim objPoint As New PointF(5.0F, 5.0F)

    ... Read more »

    Category: Programming | Views: 1931 | Added by: Admin | Date: 2011-10-05 | Comments (1)

    « 1 2 3 »
    Categories
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SQL SERVER
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2024