This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" /> | |
| <asp:RegularExpressionValidator ID="valPassword" runat="server" | |
| ControlToValidate="txtPassword" | |
| ErrorMessage="Minimum password length is 5" | |
| ValidationExpression=".{5}.*" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// gvObjectElement as ASPxGridView | |
| /// <dx:ASPxGridView ID="gvObjectElement" runat="server" AutoGenerateColumns="False" | |
| /// DataSourceID="dsObjectElement" KeyFieldName="C_OBJECT_ELEMENT" | |
| /// OnDetailRowExpandedChanged="gvObjectElementDetailRowExpandedChanged"> | |
| protected void gvObjectElementDetailRowExpandedChanged(object sender, ASPxGridViewDetailRowEventArgs e) | |
| { | |
| var grid = (ASPxGridView) sender; | |
| Session[GRID_DETAIL_INDEX] = Convert.ToInt32(grid.GetRowValues(e.VisibleIndex, grid.KeyFieldName)); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Visible='<%# Eval("DMR")=="Yes" %>' | |
| --ну и с сервака | |
| ImageUrl="<%# GetIconImageUrl(Container) %>" | |
| protected string GetIconImageUrl(GridViewDataItemTemplateContainer container) { | |
| Quote quote = (Quote)grid.GetRow(container.VisibleIndex); | |
| return String.Format("Images/{0}.gif", quote.Change > 0 ? "Up" : "Down"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* begin table creation */ | |
| create table department | |
| (dept_id smallint unsigned not null auto_increment, | |
| name varchar(20) not null, | |
| constraint pk_department primary key (dept_id) | |
| ); | |
| create table branch | |
| (branch_id smallint unsigned not null auto_increment, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ALTER TABLE [D_USER] ADD [PWD] uniqueidentifier NOT NULL DEFAULT newid() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT [SC].[NAME] | |
| FROM sysobjects AS [SO] | |
| JOIN syscolumns AS [SC] ON ([SO].[ID] = [SC].[ID]) | |
| AND ([SO].[XTYPE] = 'U') | |
| AND ([SO].[NAME] = 'D_OBJECT') -- 'D_OBJECT' имя таблицы | |
| WHERE ([SC].[ISNULLABLE] = 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dx:GridViewDataTextColumn Caption="Текущие цены" FieldName="COST_EXPL_NOW" FixedStyle="None" | |
| SortOrder="None" UnboundType="Bound" VisibleIndex="5"> | |
| <PropertiesTextEdit DisplayFormatString="{0:C2}" /> | |
| </dx:GridViewDataTextColumn> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DataTable usedKeys; | |
| DataTable allKeys; | |
| // … | |
| // Here you must fill <allKeys> and <usedKeys> | |
| // add PrimaryKey | |
| allKeys.PrimaryKey = new[] { usedKeys.Columns["FIELD_NAME"] }; | |
| // processing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type | |
| TMyLang = record | |
| key, ru, kz:string; | |
| end; | |
| TArrMyLang = array of TMyLang; | |
| TfrxReport.OnGetValue ->VarName:string |
NewerOlder