Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

PiyushBha

@PiyushBha
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Auto refresh without timer
    P PiyushBha

    GridView Auto Refresh In this tutorial i will let you know how to auto refresh or update GridView using AJAX Timer and UpdatePanel in asp.net. In this it is described that how a GridView is update after a specific time set in timer control.

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:Timer ID="Timer1" Interval="10000" runat="server" ontick="Timer1_Tick">
    </asp:Timer>
    <div>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    </div>
    <asp:Label ID="update" runat="server" Text="Label"></asp:Label>
    </ContentTemplate>
    </asp:UpdatePanel>

    </form>
    

    </body>
    </html>

    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Data.SqlClient;
    using System.Configuration;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public partial class _Default : System.Web.UI.Page
    {

    protected void Page\_Load(object sender, EventArgs e)
    {
    
    }
    protected void Timer1\_Tick(object sender, EventArgs e)
    {
        databind();
        update.Text = " Gridview Was Last Updated at " + DateTime.Now;
    }
    
    public void databind()
    {
        string strcon = ConfigurationManager.ConnectionStrings\["con"\].ConnectionString;
        SqlConnection conn = new SqlConnection(strcon);
        conn.Open();
        string str = "select \* from dept";
        SqlCommand cmd = new SqlCommand(str, conn);
        SqlDataAdapter da = new SqlDataAdapter(cmd);
        DataTable dt = new DataTable();
        da.Fill(dt);
        GridView1.DataSource = dt;
        GridView1.
    
    ASP.NET css database

  • How to implement themes based on User in Sharepoint 2010
    P PiyushBha

    I don't know how extensive you want your re-theming to be. However if it could be CSS-only you could use this approach: Store the CSS files for the different themes in the Style Library or in 14 Hive. Create a list/table that stores the user and their chosen theme. Write a feature and custom application page to allow the user to change their theme. Write a control that does a lookup on the list against the current user and obtains the a reference to the corresponding CSS file in the Style Library or in 14 hive. The control would then output the CssRegistration and CssLink controls to the page for this file. Add this control to the master page so it executes on every page (caching should be added). I can't see why this wouldn't be supportable by Microsoft as you're only changing CSS. If you need to do more than that then another option is to write an HTTP module that changes the HTML output. Or of course JavaScript. With these two options you may have supportability issues (it depends on how extensive your changes are).

    SharePoint sharepoint help tutorial

  • WebPart?
    P PiyushBha

    Web Parts is a highly customizable windows that shows information within SharePoint website or helps you to write your own code as per your business logic. Web Parts are located within the web part zones. There are many different built-in web parts categories and types. Can display data from various sources such as Lists,forms, your database

    SharePoint question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups