- Accessibility Controls – access.cpl
- Accessibility Wizard – accwiz
- Add Hardware – Wizardhdwwiz.cpl
- Add/Remove Programs – appwiz.cpl
- Administrative Tools control – admintools
- Adobe Acrobat (if installed) – acrobat
- Adobe Designer (if installed)- acrodist
- Adobe Distiller (if installed)- acrodist
- Adobe ImageReady (if installed)- imageready
- Adobe Photoshop (if installed)- photoshop
- Automatic Updates – wuaucpl.cpl
- Bluetooth Transfer Wizard – fsquirt
- Calculator – calc
- Certificate Manager – certmgr.msc
- Character Map – charmap
- Check Disk Utility – chkdsk
- Clipboard Viewer – clipbrd
- Command Prompt – cmd
- Component Services – dcomcnfg
- Computer Management – compmgmt.msc
- Control Panel – control
- Date and Time Properties – timedate.cpl
- DDE Shares – ddeshare
- Device Manager – devmgmt.msc
- Direct X Control Panel (If Installed)- directx.cpl
- Direct X Troubleshooter- dxdiag
- Disk Cleanup Utility- cleanmgr
- Disk Defragment- dfrg.msc
- Disk Management- diskmgmt.msc
- Disk Partition Manager- diskpart
- Display Properties (w/Appearance Tab Preselected)- control color
- Display Properties- control desktop
- Display Properties- desk.cpl
- Dr. Watson System Troubleshooting Utility- drwtsn32
- Driver Verifier Utility- verifier
- Event Viewer- eventvwr.msc
- File Signature Verification Tool- sigverif
- Files and Settings Transfer Tool- migwiz
- Findfast- findfast.cpl
- Firefox (if installed)- firefox
- Folders Properties- control folders
- Fonts- control fonts
- Fonts Folder- fonts
- Free Cell Card Game- freecell
- Game Controllers- joy.cpl
- Group Policy Editor (XP Prof)- gpedit.msc
- Hearts Card Game- mshearts
- Help and Support- helpctr
- HyperTerminal- hypertrm
- Iexpress Wizard- iexpress
- Indexing Service- ciadv.msc
- Internet Connection Wizard- icwconn1
- Internet Explorer- iexplore
- Internet Properties- inetcpl.cpl
- Internet Setup Wizard- inetwiz
- IP Configuration (Delete DNS Cache Contents)- ipconfig /flushdns
- IP Configuration (Display Connection Configuration) – ipconfi/all
- IP Configuration (Display DHCP Class ID)- ipconfig/showclassid
- IP Configuration (Display DNS Cache Contents)- ipconfig /displaydns
- IP Configuration (Modifies DHCP Class ID)- ipconfig /setclassid
- IP Configuration (Release All Connections)- ipconfig /release
- IP Configuration (Renew All Connections)- ipconfig /renew
- IP Configuration(RefreshesDHCP&Re-RegistersDNS)-ipconfig/registerdns
- Java Control Panel (If Installed)- javaws
- Java Control Panel (If Installed)- jpicpl32.cpl
- Keyboard Properties – control keyboard
- Local Security Settings – secpol.msc
- Local Users and Groups – lusrmgr.msc
- Logs You Out Of Windows – logoff…..
- Malicious Software Removal Tool – mrt
- Microsoft Access (if installed) – access.cpl
- Microsoft Chat – winchat
- Microsoft Excel (if installed) – excel
- Microsoft Frontpage (if installed)- frontpg
- Microsoft Movie Maker – moviemk
- Microsoft Paint – mspaint
- Microsoft Powerpoint (if installed)- powerpnt
- Microsoft Syncronization Tool – mobsync
- Microsoft Word (if installed)- winword
- Minesweeper Game – winmine
- Mouse Properties – control mouse
- Mouse Properties – main.cpl
- Nero (if installed)- nero
- Netmeeting – conf
- Network Connections – control netconnections
- Network Connections – ncpa.cpl
- Network Setup Wizard – netsetup.cpl
- Notepad – notepad
- Nview Desktop Manager (If Installed)- nvtuicpl.cpl
- Object Packager – packager
- ODBC Data Source Administrator- odbccp32.cpl
- On Screen Keyboard – osk
- Opens AC3 Filter (If Installed) – ac3filter.cpl
- Outlook Express – msimn
- Paint – pbrush
- Password Properties – password.cpl
- Performance Monitor – perfmon.msc
- Phone and Modem Options – telephon.cpl
- Phone Dialer – dialer
- Pinball Game – pinball
- Power Configuration – powercfg.cpl
- Printers and Faxes – control printers
- Printers Folder – printers
- Private Character Editor – eudcedit
- Quicktime (If Installed)- QuickTime.cpl
- Real Player (if installed)- realplay
- Regional Settings – intl.cpl
- Registry Editor – regedit
- Registry Editor – regedit32
- Remote Access Phonebook – rasphone
- Remote Desktop – mstsc
- Removable Storage – ntmsmgr.msc
- Removable Storage Operator Requests – ntmsoprq.msc
- Resultant Set of Policy (XP Prof) – rsop.msc
- Scanners and Cameras – sticpl.cpl
- Scheduled Tasks – control schedtasks
- Security Center – wscui.cpl
- Services – services.msc
- Shared Folders – fsmgmt.msc
- Shuts Down Windows – shutdown
- Sounds and Audio – mmsys.cpl
- Spider Solitare Card Game – spider
- SQL Client Configuration – cliconfg
- System Configuration Editor – sysedit
- System Configuration Utility – msconfig
- System File Checker Utility (Purge File Cache)- sfc /purgecache
- System File Checker Utility (Return to Default Setting)- sfc /revert
- System File Checker Utility (Scan Immediately)- sfc /scannow
- System File Checker Utility (Scan On Every Boot) – sfc /scanboot
- System File Checker Utility (Scan Once At Next Boot)- sfc /scanonce
- System File Checker Utility (Set Cache Size to size x)-sfc/cachesize=x
- System Information – msinfo32.
- System Properties – sysdm.cpl
- Task Manager – taskmgr
- Task Manager – taskmgr
- TCP Tester – tcptest
- Telnet Client – telnet
- Tweak UI (if installed) – tweakui
- User Account Management- nusrmgr.cpl
- Utility Manager – utilman
- Windows Address Book – wab
- Windows Address Book Import Utility – wabmig
- Windows Backup Utility (if installed)- ntbackup
- Windows Explorer – explorer
- Windows Firewall- firewall.cpl
- Windows Magnifier- magnify
- Windows Management Infrastructure – wmimgmt.msc
- Windows Media Player – wmplayer
- Windows Messenger – msmsgs
- Windows Picture Import Wizard (need camera connected)- wiaacmgr
- Windows System Security Tool – syskey
- Windows Update Launches – wupdmgr
- Windows Version (to show which version of windows)- winver
- Windows XP Tour Wizard – tourstart
- Wordpad – write
This Blog is created and maintained for personal use. If any of these posts are useful to other, then i am very happy. Please share your thoughts and ideas to improve this blog.
Wednesday, March 30, 2011
Windows XP Run Command List
Tuesday, March 29, 2011
GRID VIEW BINDING WITH TEMPLATE FIELDS DYNAMICALLY - ASP.NET with C#
using System;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.UI;
namespace SomeName.Classes
{
public class GridViewTemplate : ITemplate
{
private DataControlRowType templateType;
private string columnName;
private string columnNameBinding;
private string controlType;
private int ctrllength;
public GridViewTemplate(DataControlRowType type, string colname, string colNameBinding, string ctlType,int length)
{
templateType = type;
columnName = colname;
columnNameBinding = colNameBinding;
controlType = ctlType;
ctrllength = length;
}
public void InstantiateIn(System.Web.UI.Control container)
{
switch (templateType)
{
case DataControlRowType.Header:
Literal lc = new Literal();
lc.Text = columnName;
container.Controls.Add(lc);
break;
case DataControlRowType.DataRow:
if (controlType == "Label")
{
Label lb = new Label();
lb.ID = "lbl_" + columnNameBinding;
lb.DataBinding += new EventHandler(this.ctl_OnDataBinding);
container.Controls.Add(lb);
}
else if (controlType == "TextBox")
{
TextBox tb = new TextBox();
tb.ID = "tb" + columnNameBinding;
tb.DataBinding += new EventHandler(this.ctl_OnDataBinding);
tb.Width = ctrllength;
container.Controls.Add(tb);
}
else if (controlType == "CheckBox")
{
CheckBox cb = new CheckBox();
cb.ID = "cb1" + columnNameBinding;
cb.DataBinding += new EventHandler(this.ctl_OnDataBinding);
container.Controls.Add(cb);
}
else if (controlType == "HyperLink")
{
HyperLink hl = new HyperLink();
hl.ID = "hl1";
hl.DataBinding += new EventHandler(this.ctl_OnDataBinding);
container.Controls.Add(hl);
}
else if (controlType == "HiddenField")
{
HiddenField hf = new HiddenField();
hf.ID = "hf" + columnNameBinding;
hf.DataBinding += new EventHandler(this.ctl_OnDataBinding);
container.Controls.Add(hf);
}
break;
default:
break;
}
}
public void ctl_OnDataBinding(object sender, EventArgs e)
{
if (sender.GetType().Name == "Label")
{
Label lb = (Label)sender;
GridViewRow container = (GridViewRow)lb.NamingContainer;
lb.Text = ((DataRowView)container.DataItem)[columnNameBinding].ToString();
}
else if (sender.GetType().Name == "TextBox")
{
TextBox tb = (TextBox)sender;
GridViewRow container = (GridViewRow)tb.NamingContainer;
tb.Text = ((DataRowView)container.DataItem)[columnNameBinding].ToString();
}
else if (sender.GetType().Name == "CheckBox")
{
CheckBox cb = (CheckBox)sender;
GridViewRow container = (GridViewRow)cb.NamingContainer;
cb.Checked = Convert.ToBoolean(((DataRowView)container.DataItem)[columnNameBinding].ToString());
}
else if (sender.GetType().Name == "HyperLink")
{
HyperLink hl = (HyperLink)sender;
GridViewRow container = (GridViewRow)hl.NamingContainer;
hl.Text = ((DataRowView)container.DataItem)[columnNameBinding].ToString();
hl.NavigateUrl = ((DataRowView)container.DataItem)[columnNameBinding].ToString();
}
else if (sender.GetType().Name == "HiddenField")
{
HiddenField hf = (HiddenField)sender;
GridViewRow container = (GridViewRow)hf.NamingContainer;
hf.Value = ((DataRowView)container.DataItem)[columnNameBinding].ToString();
}
}
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////Place the above class seperately and
//////////////Use the Following code in aspx.cs,
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
string strColName="Some DaField Column Name";
string strColLabel = "Header text";
TemplateField tField = new TemplateField();
tField.HeaderText = strColLabel;
tField.HeaderTemplate = new GridViewTemplate(DataControlRowType.Header, strColLabel, strColName, "", 0);
if (Some Condition)
tField.ItemTemplate = new GridViewTemplate(DataControlRowType.DataRow, "", strColName, "Label", 100);
else
tField.ItemTemplate = new GridViewTemplate(DataControlRowType.DataRow, "",strColName, "TextBox", 100);
grdMapValues.Columns.Add(tField);
}
if (dtMapData.Rows.Count > 0)
{
grdMapValues.DataSource = dtMapData;
grdMapValues.DataBind();
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////In Code Behind, the Gridview is like this
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<asp:GridView ID="grdname" runat="server"
CssClass="GridStyle" ShowHeader="true" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField><ItemTemplate></ItemTemplate></asp:TemplateField>
</Columns>
</asp:GridView>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////In Code Behind, the Gridview is like this
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<asp:GridView ID="grdname" runat="server"
CssClass="GridStyle" ShowHeader="true" AutoGenerateColumns="false">
<Columns>
<asp:TemplateField><ItemTemplate></ItemTemplate></asp:TemplateField>
</Columns>
</asp:GridView>
Subscribe to:
Posts (Atom)