Web server controls run on the server.
Search This Blog
Wednesday, November 5, 2014
ASP.NET Hyperlink OnClick Code Behind
ASP.NET > System.Web > Web Controls > > onClick
Script
<script br="" gt="" language="javascript" type="text/javascript">
function onClick(obj) {
}
lgt;/script>
C# Code behind
HyperLink1.Attributes.Add("onclick", "return onClick(this)");
Script
<script br="" gt="" language="javascript" type="text/javascript">
function onClick(obj) {
}
lgt;/script>
C# Code behind
HyperLink1.Attributes.Add("onclick", "return onClick(this)");
Etichete:
asp.net
Tuesday, November 4, 2014
Transact-SQL SQL Server
SQL Server > Transact-SQL
Transact-SQL is Microsoft's proprietary extension to SQL (Structured Query Language).
All applications that communicate with SQL Server use Transact-SQL to send statements to the server, regardless of the user interface of the application.
SET Statements
Mnagements Commands
Transact-SQL is Microsoft's proprietary extension to SQL (Structured Query Language).
All applications that communicate with SQL Server use Transact-SQL to send statements to the server, regardless of the user interface of the application.
SET Statements
Mnagements Commands
Etichete:
SQL Server
Code Collaborator Add Changes To Review Number
Code Collaborator > Add changes to review
addhgdiffs - Uploads diffs generated by hg diff command
Example
Upload from Mercurial
Example
Upload from Mercurial
3883 is the review number
-r difference from revision 0 to 1
ccollab addhgdiffs 3883 -r 0 -r 1
-c specific revision id
ccollab addhgdiffs codereviewid -c revisionid
Etichete:
Code Collaborator
Monday, November 3, 2014
PARSE SQL Server Example
SQL Server > Built-in Functions > PARSE
Translates an expression to the requested data type.
Example
Translates an expression to the requested data type.
Example
SELECT PARSE('3-11-2014' AS datetime USING 'en-US') AS Result_En
Result_En
2014-03-11 00:00:00.000
SELECT PARSE('3-11-2014' AS datetime USING 'de-DE') AS Result_De
Result_De
2014-11-03 00:00:00.000
Etichete:
SQL Server
Friday, October 24, 2014
Telerik Reporting Binding C# Example
Telerik > Reporting > ObjectDataSource
ObjectDataSource component represents the middle-tier object and provides data retrieval capabilities.
Example
Example
var ods = new Telerik.Reporting.ObjectDataSource();
ods.DataSource = GetData();
ods.DataMember = "Products"; //table to bind to
Telerik.Reporting.Report report = new Telerik.Reporting.Report();
report.DataSource = ods;
Telerik.Reporting.InstanceReportSource reportSource = new Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = report;
reportViewer1.ReportSource = reportSource;
reportViewer1.RefreshReport();
Etichete:
Telerik
Thursday, October 23, 2014
Get Computer Name C#
C# > System > Environment Class > MachineName
Returns the computer's name. This is established at system start up when the name is read from the registry.
Example
Returns the computer's name. This is established at system start up when the name is read from the registry.
Example
string _name = Environment.MachineName;
Etichete:
c#
Subscribe to:
Posts (Atom)