The following META
tag can be used as a trigger to automatically refresh the page every n seconds:
meta http-equiv="Refresh" content="nn"
This element can be used only within the
The following META
tag can be used as a trigger to automatically refresh the page every n seconds:
meta http-equiv="Refresh" content="nn"
This element can be used only within the
maxRequestLength
attribute of Machine.config's
element.
1. System/Information Engineering and Modeling
As software is always of a large system (or business), work begins by establishing the requirements for all system elements and then allocating some subset of these requirements to software. This system view is essential when the software must interface with other elements such as hardware, people and other resources. System is the basic and very critical requirement for the existence of software in any entity. So if the system is not in place, the system should be engineered and put in place. In some cases, to extract the maximum output, the system should be re-engineered and spruced up. Once the ideal system is engineered or tuned, the development team studies the software requirement for the system.
2. Software Requirement Analysis
This process is also known as feasibility study. In this phase, the development team visits the customer and studies their system. They investigate the need for possible software automation in the given system. By the end of the feasibility study, the team furnishes a document that holds the different specific recommendations for the candidate system. It also includes the personnel assignments, costs, project schedule, target dates etc.... The requirement gathering process is intensified and focussed specially on software. To understand the nature of the program(s) to be built, the system engineer or "Analyst" must understand the information domain for the software, as well as required function, behavior, performance and interfacing. The essential purpose of this phase is to find the need and to define the problem that needs to be solved .
3. System Analysis and Design
In this phase, the software development process, the software's overall structure and its nuances are defined. In terms of the client/server technology, the number of tiers needed for the package architecture, the database design, the data structure design etc... are all defined in this phase. A software development model is thus created. Analysis and Design are very crucial in the whole development cycle. Any glitch in the design phase could be very expensive to solve in the later stage of the software development. Much care is taken during this phase. The logical system of the product is developed in this phase.
4. Code Generation
The design must be translated into a machine-readable form. The code generation step performs this task. If the design is performed in a detailed manner, code generation can be accomplished without much complication. Programming tools like compilers, interpreters, debuggers etc... are used to generate the code. Different high level programming languages like C, C++, Pascal, Java are used for coding. With respect to the type of application, the right programming language is chosen.
5. Testing
Once the code is generated, the software program testing begins. Different testing methodologies are available to unravel the bugs that were committed during the previous phases. Different testing tools and methodologies are already available. Some companies build their own testing tools that are tailor made for their own development operations.
// Creates a TextInfo based on the "en-US" culture. |
TextInfo TI = new CultureInfo("en-US",false).TextInfo; |
Response.Write (TI.ToTitleCase( myString )); |
private void ShowPdf(string strS)
{
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition","attachment; filename=" + strS);
Response.TransmitFile(strS);
Response.End();
//Response.WriteFile(strS);
Response.Flush();
Response.Clear();
}
Use top keyword to fetch the first 20 records from sql server.
for example:
select top 20 * from emp.
you can also use Set Rowcount keyword to fetch the records from sql server.
ex:
Set Rowcount 20
Select Empname from emp
Set RowCount 0
How to retrieve range of 10th rows to 20 th rows from total rows from a database table.? (Not from Dataset)
select top 10 ID from table1 where ID not in (select top 10 ID from table1)
using row_number() function
SELECT customerid,customername
FROM (SELECT ROW_NUMBER() OVER (ORDER BY customerid ASC)
AS Row, customerid, customername FROM tbl_customermaster)
AS customermasterWithRowNumbers
WHERE Row >= 10 AND Row <= 20
Control myForm = Page.FindControl("Form1");
foreach (Control ctl in myForm.Controls)
if (ctl.GetType().ToString().Equals("System.Web.UI.WebControls.TextBox"))
((TextBox)ctl).Text = "";
For this concept, visualize the following table.
employee_name | admin |
Ted | 0 |
Terry | 0 |
Trish | 1 |
As you can see, we have a list of a few employees and then an admin column with boolean (true/false) values for their administration rights (admin). A zero means they are not an admin a 1 mean they are.
Using case logic, we can present this information in a better form.
SELECT employee_name
CASE admin
WHEN 1 THEN 'yes'
ELSE 'no'
END 'admin'
FROM employees;
employee_name | admin |
Ted | no |
Terry | no |
Trish | yes |
In short all we really did is replace 1's and 0's with the words 'yes' and 'no'.
Case functions additionally allow for the updating of records within your table. For example, we could update the prices of items in our online store, but more importantly we could update very specific records because of the conditional logic allowed by case.
Let's use the following table for this next example.
item | quantity | price |
goldfish | 12 | 1.00 |
guppy | 24 | 0.50 |
blow fish | 1 | 5.00 |
Let's say we wanted to have a sale to clean out some of our overstock. We'll go ahead and take 25% off of all our items that we currently have 20 or more of (>20). Then we'll take 10% off the items that we have 10-20 of (between 10 and 20) and everything else we will discount only 5%.
UPDATE inventory SET price = price *
CASE
WHEN quantity > 20 THEN 0.75
WHEN quantity BETWEEN 10 AND 20 THEN 0.90
ELSE 0.95
END;
item | quantity | price |
goldfish | 12 | .9 |
guppy | 24 | 0.375 |
blow fish | 1 | 4.75 |
Each price has automatically been reduced by the appropriate percentages.
//The RowCreated event is used to create the list.
// In the event first check for the footer row.
// Once, the footer row is found run a loop from 65 to 92 and convert each number into the character representation.
// The number 65 stands for “A”, 66 for “B” and so on till 92 for “Z”. Inside the loop create a LinkButton and set the Text property to the alphabet. Finally, the control is added to the cell collection.
//Creating the Alphabetical List:
//The next task is to create an alphabetical list and display it in the GridView control.
//The best place to display the list is the GridView footer.
//Fetching the Records Based on the Alphabet:
//In the last section we created the alphabets and displayed them in the footer of the GridView control.
//The next task is to capture the event generated by the alphabets when we click on them and fetch the results based on the alphabet. The RowCommand event is fired whenever you click on any alphabet.