Posts

Showing posts from 2012

custom modal in ext.net

in ext.net you can use window for modal http://examples.ext.net/#/Window/Basic/Show/ but also sometimes this is handy :p     var winPanel = Ext.getCmp('panelWindowId');     if (!winPanel) {         winPanel = new Ext.Window({             title: 'SLA-Einhaltung gesamt in % nach Onsite Gruppen', //Title of the Window             id: 'panelWindowId', //ID of the Window Panel             autoHeight: true, //Height of the Window will be auto             width: 450, //Width of the Window             x: 400,             y: 120,             resizable: true, //Resize of the Window, if false - it cannot be resized             closable: true, //Hide close button of the Window         ...

get all the drop down list id and value from place holder c#

            // Retrieve the selected product options             string options = "";             foreach (Control cnt in Place.Controls)             {                 /*                 if (cnt is Label)                 {                     Label attrLabel = (Label)cnt;                     options += attrLabel.Text;                 }                 */                 if (cnt is DropDownList)                 {                     ...

dynamic dropDown

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.dropdownlist.dropdownlist.aspx

well c# data query site

http://coderscooler.com/2011/02/09/programmatically-querying-ms-sql-in-c/

ajax loader c#

Page: <% @ Page Title = "" Language = "C#" MasterPageFile = "~/RoseindiaMaster.master" AutoEventWireup = "true" CodeFile = "UpdateProgress.aspx.cs" Inherits = "UpdateProgress" %> < asp : Content ID = "Content1" ContentPlaceHolderID = "head" runat = "Server" > </ asp : Content > < asp : Content ID = "Content2" ContentPlaceHolderID = "ContentPlaceHolder1" runat = "Server" > < div > < h2 style = "color: Green" > UpdateProgress in ASP . NET 4 , C #</ h2 > < asp : ScriptManager ID = "ScriptManager1" runat = "server" > </ asp : ScriptManager > < asp : UpdateProgress ID = "UpdateProgress1" runat = "server" AssociatedUpdatePanelID = "UpdatePanel1" > < ProgressTemplate > < img alt = "" src = "Images/...

asp code standard

Nice .net coding standard tutorial Site Click Here

some network command

Host Name: hostname NetWork address: ipconfig

master new

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Net; using System.Text.RegularExpressions; namespace FusionChartTest {     public partial class SiteMaster : System.Web.UI.MasterPage     {         protected void Page_Load(object sender, EventArgs e)         {             string current_file = Path.GetFileName(Request.Path); ///Path.GetFileName(Request.Path);             if (current_file == "default.aspx" || current_file == "Default.aspx")             {                 //string inputString;        ...

like php

Image
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.IO; using System.Net; using System.Text.RegularExpressions; namespace FusionChartTest {     public partial class SiteMaster : System.Web.UI.MasterPage     {         protected void Page_Load(object sender, EventArgs e)         {             string current_file = Path.GetFileName(Request.Path);             System.Diagnostics.Debug.WriteLine("filename: " + current_file);             string[] lines = System.IO.File.ReadAllLines(Server.MapPath("~") + @"\sitemap.ini").Where(s => s.Trim() != string.Empty).ToArray();           ...