» Publishers, Monetize your RSS feeds with FeedShow: More infos (Show/Hide Ads)
Date: Friday, 08 Jan 2010 18:28
Instantly Create and Deliver a Nearly Limitless Number of End-User Reports by Simply Rendering Your Delphi and C++ Builder User Interface
DevExpress.com is proud to announce the immediate availability of the ExpressPrinting System v4 - the DevExpress Printing and Control Rendering Library for the VCL. With this release, we've extended the market-leading capabilities of our Delphi and C++Builder Printing System with the following new features:
PDF Export
With v4, reports can be exported to PDF files. Various export, pagination, security, and document settings can be customized by end-users via a built-in PDF Export Options dialog.
New Print Preview Dialog Style Options
Previously, to specify the Print Preview dialog style, you had to manually add a corresponding unit to the ‘uses’ clause and make sure it was in effect by promoting the unit within the unit list. With this release, you can use a single TdxPSEngineController.PreviewDialogStyle option to select one of the following ...
Date: Friday, 08 Jan 2010 15:02
Build your Site Map - will help build your sitemap for all small websites containing 500 pages online.
Many friends upload their pages but not add the urls to google, they should add their websites to Google.com/addurl and verify, add sitemap to their websites to get top in search engines.
For Procedure I will write in resources of DNS & on
http://siaargroup.blogspot.com soon.
Date: Friday, 08 Jan 2010 11:49
Create one User Control name Called testUC.ascx
============
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="testUC.ascx.cs" Inherits="testUC" %>
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">LinkButton</asp:LinkButton>
And In User Control Code Behind
Write a Code in testUC.ascx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class testUC : System.Web.UI.UserControl
{
public event EventHandler T;
protected void LinkButton1_Click(object sender, EventArgs e)
{
T(this, e);
}
}
Create One .ASPX Page Named as eventtest.aspx
<%@ Page Language="C#" AutoEventWireup="true" ...
Date: Friday, 08 Jan 2010 11:35
Create one User Control Called Person.ascx
In Person.ascx
===============
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Person.ascx.cs" Inherits="Person" %>
<div style="background-color: #eeffc4; border: 1px solid #c0c0c0;">
<div style="margin: 10px;">
This is the User Control text.
<hr />
First Name:
<asp:Label ID="lblFirstname" runat="server" Font-Bold="true"></asp:Label>
<br />
Last Name:
<asp:Label ID="lblLastname" runat="server" Font-Bold="true"></asp:Label>
<br />
Age:
<asp:Label ID="lblAge" runat="server" Font-Bold="true"></asp:Label>
</div>
</div>
And
In Person.ascx.cs
=================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using ...
Date: Friday, 08 Jan 2010 10:52
Below is my article based on SEO.
Hope it helps and useful article for everone.
<H2> <B> Search engine optimization (SEO) </B> </H2> is important for any publically facing web-site. A large percentage of traffic to sites now comes from search engines, and improving the search relevancy of your site will lead to more user traffic to your site from search engine queries (which can directly or indirectly increase the revenue you make through your site).
ASP.NET 4 includes a bunch of new runtime features that can help us to further optimize our site for SEO. Some of these new features include:
• New Page.MetaKeywords and Page.MetaDescription properties
• New URL Routing support for ASP.NET Web Forms
• New Response.RedirectPermanent() method
In below Article I am explaining only Page.MetaKeywords and Page.MetaDescription to improve our search engine relevancy.
<H2> <B> Page.MetaKeywords and Page.MetaDescription ...
Date: Friday, 08 Jan 2010 08:53
Uploading Images using FileUpload Control and save in SQL Server database in using with C#.net
Database is having a table named Images with three columns.
1. ID Numeric Primary key with Identity Increment.
2. ImageName Varchar to store Name of Image.
3. Image Image to store image in binary format.
ASPX Code Sample
-----------------
[code]
<form; id="form1" runat="server">
<div;>
<asp;:TextBox ID="txtName" runat="server" Width="95px">
</asp:TextBox>
<asp;:FileUpload ID="FileUpload1" runat="server"/>
<asp;:Label ID="lblMessage" runat="server">
</asp:Label>
<asp;:Button ID="btnUpload" runat="server"
OnClick="btnUpload_Click" Text="Upload"/>
</div>
</form>
[/code]
CS Code sample
[code]protected void btnUpload_Click(object sender, EventArgs e)
{
string strImageName = txtName.Text.ToString();
if (FileUpload1.PostedFile != null &&
FileUpload1.PostedFile.FileName != "")
{
byte[] imageSize = new byte
...
Date: Friday, 08 Jan 2010 08:01
Latest versions of Quality tools:
Sandcastle 2.4, Released May 2008
Sandcastle Help File Builder (GUI) - 1.8 Beta May 2009
FxCop 1.36 RTM
Style Cop 4.3.1.3
Xenu 1.3c from April 25th, 2009
CAT.NET 1.1.1.9 Beta
SQL Cop 0.9.5.0
W3C Validator http://validator.w3.org/ Version of the tool 0.8.5
Date: Friday, 08 Jan 2010 07:15
Those who don’t have VS Code analysis can integrate FxCOP in the VS.
Assumes you have FxCop 1.36 installed in the default folder. If you haven’t done this yet, you can do it now as it will help in code review.
Follow the steps below to set this up.
In Solution Explorer, right-click on your project and choose Properties
For C# projects, in the Project Properties window, select the Build Events tab
For Visual Basic projects, in the Project Properties window, select the Compile tab, and click Build Events
In the Post-build event command-line text box, enter the following (assuming you installed FxCop to the default location):
"%ProgramFiles%\Microsoft FxCop 1.36\FxCopCmd.exe" /file:"$(TargetPath)" /console
In Solution Explorer, right-click on your project and choose Build
Any FxCop violations will now appear as build warnings:
Date: Friday, 08 Jan 2010 07:00
<h2>Application Life Cycle in Asp.Net</h2>
1. When ever a request is generated from webbrowser request is sent to the server thru IIS. At IIS we have ISAPI extensions (ISAPI extensions are nothing but dll’s which will recognize the request based on the filename extension)
For ex: If the page requested has .asp extension its processed by ASP.dll ISAPI extension.
All the ASP.NET extensions like .aspx,.ascx etc are handled by ASP.NET ISAPI Extension. This extension checks also checks the authentication and authorization of the Browser request.
2. For every first browser request for a particular application an Application domain is created. Application Manager class creates the ApplicationDomain. Each application has individual Appdomain.
3. Once Application domain is established a HttpContext class is created. HttpContext creates HttpRequest and HttpResponse objects
• HttpRequest object contains information about the current request, including cookies and ...
Date: Friday, 08 Jan 2010 06:55
<h2>Page Events</h2>
<b>PreInit:</b>
All the values from view state are reset , In this event we set a masterpage/Profile/Theme/Properties. We can create/Recreate dynamic controls. Make decisions based on time/geographic locations.
<b>Init:</b>
We can read or write the props of those controls , Controls are initialized Skin properties are set prior to this event.
<b>InitComplete:</b> This event is fired after all Initializations take place. Implementation of logic which depends on the controls to be initialized can be done here.
<b>PreLoad:</b>
View state gets initialized and all post back data gets initialized from the request objects.(Viewstate gets reconstiated).
<b>Load:</b>
Along with page load event all Onload events for child controls gets fired.
For ex: Textbox onload event+ textbox event handler and any properties defined gets fired.
<b>LoadComplete:</b>
Controls are ...
Date: Friday, 08 Jan 2010 06:35
<h2>Description</h2>
Create a windows form of desired dimensions.Add a label lblTime to display current time,date picker dtpTime,timer control tmrNewTime and a check box
chkAlarm.If the check box is checked and current time displayed in label lblTime matches with the time displayed in date picker dtpTime then play a
sound.The code is as,
[CODE]
Public Class frmAlarmClock
Private Sub tmrNewTime_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrNewTime.Tick
lblTime.Text = DateTime.Now.ToLongTimeString
If chkAlarm.Checked = True Then
If dtpTime.Text = lblTime.Text Then
My.Computer.Audio.Play(My.Resources.ringout, AudioPlayMode.BackgroundLoop)
End If
Else
My.Computer.Audio.Stop()
End If
End Sub
Private Sub frmAlarmClock_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
...
Date: Friday, 08 Jan 2010 06:11
<h2>Description</h2>
Binding data in the dataset to Combo Box
[Code]
OracleConnection cn = new OracleConnection("user id=scott;password=tiger;data source=ganesh1");
OracleDataAdapter da = new OracleDataAdapter("select * from dept", cn);
DataSet ds = new DataSet();
da.Fill(ds, "temp");
comboBox1.DataSource = ds.Tables[0];
comboBox1.DisplayMember = "deptno";
[/Code]
Explanation:
The code snippet develops the connection with database. Create data adapter object with select statement. Fill the data adapter .using data source bind the dataset data. Using display member bind the required column.
Date: Thursday, 07 Jan 2010 18:33
[code]
if (Request.QueryString["type"] == "button")
{
txt="<p><input type='button' style="+'"'+ "font-family:"+ DropDownfontfamily.Text+ ";font-size:"+ DropDownfonts.Text +";background-color:"+ dropdownbc.SelectedValue +";width:"+ txtwidth.Text +";height:"+txtheight.Text +";top:"+txttop.Text +";left:"+txtleft.Text + ";color:"+ DropDownfc.SelectedValue +";position:"+ DropDownpos.Text + ";" +'"'+ "value='"+ txtvalue.Text + "'/></p>" ;
}
else if (Request.QueryString["type"] == "label")
{
txt += "<span style=" + '"' + "font-family:" + DropDownfontfamily.Text + ";font-size:" + DropDownfonts.Text + ";background-color:" + dropdownbc.Text + ";width:" + txtwidth.Text + ";height:" + txtheight.Text + ";top:" + txttop.Text + ";left:" + txtleft.Text + ";position:" + DropDownpos.Text + ";" + '"' + "'>" + txtvalue.Text + "</span>";
}
else if (Request.QueryString["type"] == ...
Date: Thursday, 07 Jan 2010 17:39
Chapter 1 Introducing ASP.NET - 32
Q: What do I need to get my scripts up and running?
A:You will need a Windows 2000 server or Windows XP development machine, IIS configured, and the .NET Framework SDK downloaded and installed from www.asp.net.
Q:Will I have to recode my old ASP Scripts?
A: Classic ASP pages will happily run alongside ASP.NET scripts.
Q: Can I rename my ASP files to ASPX files?
A: If you want to upgrade your scripts to run under .NET, you will first need to make some syntactical changes to your code.
Q: Will my existing investment in third-party components be wasted?
A: Not necessarily,ASP.NET pages can use COM components to give you a transition period, but many of the functions you previously looked to bought-in components to perform, you can now achieve within the .NET framework for free.
Q: Will I be able to deploy on non-Windows platforms?
A: Currently ASP.NET requires IIS. Having said that, several Open Source projects are under way ...
Date: Thursday, 07 Jan 2010 14:29
Asp.Net Dynamic data is a new feature intoduced in .net 3.5 Framework. Its is basically to provide Rapid Application Development (RAD) refers to a type of software development Methodology. Asp.Net Dynamic data is a framework that lets you create data-driven ASP.NET Web applications easily.
Dynamic data Framework inludes the following features.
1. DataModelling
2. Scaffolding
3. Templating
4. Customization
Data Modelling: It is a method used to define and analyze data requirements needed to support the business porcess of an organization. The data requirements are recorded as a conceptual data model with associated data definitions.
Dynamic Data supports the LINQ-to-SQL data model and the ADO.NET Entity Framework data model. You can include multiple instances of data models in a Web application, but the models that are used in Dynamic Data must be of the same type.
Scaffolding: Scaffolding is a mechanism that enhances the existing ASP.NET page framework by dynamically ...
Date: Thursday, 07 Jan 2010 12:24
Here Below Given Code show How to Disable items in DropDownList.
If code is not properly shown in description then Click on source i attached below just see.
[CODE]
// aspx.cs page side
protected void Page_Load(object sender, EventArgs e)
{
DropDownList1.Attributes.Add("onchange", "change();");
}
// .aspx page side
<asp:DropDownList ID="DropDownList1" runat ="server" Width="235px" AutoPostBack="False">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
</asp:DropDownList>
<script type ="text/javascript" >
function change()
{
var dd=document.getElementById ('<%=DropDownList1.ClientID %>');
var value=dd.options[dd.selectedIndex].value;
if(value!="2") //supose you want to disable the item numbered 2
{
...
Date: Thursday, 07 Jan 2010 11:46
This code explaining the AutoFilter feature using the Country Field of the Customers table hence you’ll notice I have used a Template field for the Country column in GridView with a DropDownList in the header template which will be used to Filter the records by the country wise.
[CODE]
//.HTML Page
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns = "false"
AllowPaging = "true" PageSize = "10" Font-Names = "Arial"
Font-Size = "11pt" AlternatingRowStyle-BackColor = "#C2D69B"
HeaderStyle-BackColor = "green" OnPageIndexChanging = "OnPaging">
<Columns>
<asp:BoundField DataField="ContactName" HeaderText="Contact Name" /> <asp:BoundField DataField="City" HeaderText="City" />
<asp:TemplateField>
<HeaderTemplate> Country:
<asp:DropDownList ID="ddlCountry" runat="server"
OnSelectedIndexChanged = "CountryChanged" AutoPostBack = "true"
AppendDataBoundItems = "true">
<asp:ListItem Text = "ALL" Value = ...
Date: Thursday, 07 Jan 2010 11:23
Loading multiple tables into a dataset
[Code]
OracleConnection cn = new OracleConnection("user id=scott;password=tiger;data source=ganesh1");
OracleDataAdapter da = new OracleDataAdapter("select * from emp", cn);
OracleDataAdapter da1 = new OracleDataAdapter("select * from dept", cn);
DataSet ds = new DataSet();
da.Fill(ds, "table1");
da1.Fill(ds, "table2");
dataGridView1.DataSource = ds.Tables[0];
dataGridView2.DataSource = ds.Tables[1];
[/Code]
Explanation:
The code snippet establishes the connection with the database. using select statement data adapter objects (da,da1 ) are created. using fill data adapters(da,da1) are filled with data of tables using a single dataset.
Date: Thursday, 07 Jan 2010 11:18
<h2>Description</h2>
Loading multiple tables into a dataset .
[Code]
OracleConnection cn = new OracleConnection("user id=scott;password=tiger;data source=ganesh1");
OracleDataAdapter da = new OracleDataAdapter("select * from emp", cn);
OracleDataAdapter da1 = new OracleDataAdapter("select * from dept", cn);
DataSet ds = new DataSet();
da.Fill(ds, "table1");
da1.Fill(ds, "table2");
dataGridView1.DataSource = ds.Tables[0];
dataGridView2.DataSource = ds.Tables[1];
[/Code]
Explanation:
The code snippet establishes the connection with the database. using select statement data adapter objects (da,da1 ) are created. using fill data adapters(da,da1) are filled with data of tables using a single dataset.
Date: Thursday, 07 Jan 2010 10:35
Refactoring changes an internal code structure without changing the external code behaviour
Code Refactoring operations
On right clicking the IDE you get the refactoring operations
1) Rename
Select a variable and click "Rename" it renames the variable and all variables that references to it.
2) Extract Method
Extract a selected lines of code and creates a new method with those lines of code and replaces those lines of code with that method.
3) Encapsulate Field
On selecting a variable and clicking on Encapsulate Field it creates a property on the same variable
4) Extract Interface
Based on existing class defintion it generates an interface
5) Promote Local variable to Parameter
You can select a local variable and change it to a parameter
6) Removes parameters
Removes parameters
7) Reorder Parameters
Reorder parameters
» © All content and copyrights belong to their respective authors.«
» © FeedShow - Online RSS Feeds Reader







