Next Generation Technology Jamshedpur

Next Generation Technology Jamshedpur Next Generation Technology is an Indian based Software Development, Maintenance, Website Designing, Outsourcing company.

23/08/2013

Today I am discussing about validation.

Validation: Validation means restrict a user to enter any wrong data in your application. This is very important part in Software development. If you don’t use this, you application cannot give you the exact result.

In ASP. Net, there are different types of validation.
1. RequiredFieldValidator : This validator restrict or force user to enter value on the field, if it is Textbox or Dropdown.

How to Use This control on ASP.NET:
For textbox:

Select
Select
Pakistan


2. RegularExpressionValidator: This validator force user enter correct data, but it optional. It means you cannot enter any data on the field, it is not giving any error, but if put any data, information must be correct.
Like:
a. Email: must be like [email protected]
b. url: must be like http://www.abc.com
c. Phone: only digit
d. Name: must be Aphabets
e. Password: must be alphanumeric with special character.



3. CompareValidator: This validation is used for compare any data or info enter by user.
Like:
a. Date: must be of date type.
b. Retype Password: must be same as Password.


4. RangeValidator: This check value within the range, like must be beween 0-10

19/08/2013

Working on CMS, with ASP.NET and SQLSERVER,

I will discuss on different types of VALIDATION in 2-3 days, which we faced problem on CMS.

04/05/2013

How to Create Horizontal Menu in HTML using CSS:

Html Code:


Home
Products
Services
About
Contact


Css Code:

body {
background-color: #000;
}

* {
margin: 0;
padding: 0;
}

ul {
list-style-type: none;
background-image: url(navi_bg.png);
height: 80px;
width: 663px;
margin: auto;
}

li {
float: left;
}

ul a {
background-image: url(navi_bg_divider.png);
background-repeat: no-repeat;
background-position: right;
padding-right: 32px;
padding-left: 32px;
display: block;
line-height: 80px;
text-decoration: none;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 21px;
color: ;
}

ul a:hover {
color: ;
}

19/04/2013

Important points that programmers should remember while developing web application software.

I have tried to find out some points that every programmer should remember while coding in web application:

1. Do R&D about business logic and make a plan how you will implement it before you start writing code.
2. Should write code easy, understandable and maintainable way.
3. Make sure you are developing application wide consistent look and feel.
4. Should think in OOP way.
5. Try best practices that are established in the industry.
6. Maintain Naming convention
7. Transaction should be used properly and where necessary.
8. Remember concurrency issue while coding.
9. Validation should be checked properly. Validation should be done at client side so far possible.
10. User or role based permission should be implemented properly so that user can’t do anything if not permitted.
11. Should do comments where necessary.
12. Should be aware about security of application and database.
13. Write less code to do more jobs. Do re-factor where possible.
14. Think about performance of your code.
15. Make use of client side Ajax.
16. Be aware of hacking options like Sql Injection, Cross Site Scripting etc.
17. Should do paging on database end where data is more than 20 in grid.
18. Do less use of Session and ViewState.
19. Do caching where possible.
20. Always check existence of an object before accessing it.
21. Be careful about exception handling.
22. Write error log to identify errors.
23. Make sure you dispose large objects.
24. Grid should have a SL column.
25. Dropdown or combo values should be in a specific order.
26. Remove unnecessary code and comments from your page.
27. Set a title in each page. Don’t keep it like Untitled Page.
28. Include search option when data is more than 100 records in a page.
29. Use Namespace properly for pages and code files.
30. Show short and friendly error message to user but log error details.
31. Do not have more than one class in a single class.
32. Please write copy right and author information at the top of each file.
33. Avoid unnecessary round trip to database server. Use batch SQL statement to reduce round trip.
34. Use light weight controls. Choose controls carefully for your page.
35. Make your database normalized.
36. Make sure optimization of your queries.
37. Always deploy release build of your application.
38. Use release build and minimized version of any third party controls used.
39. Deploy your application on staging first and do all testing in staging.
40. Before deployment in production make sure necessary configuration and changes are done properly if needed. For example setting up new encryption key, encrypting sensitive information and setup application settings information etc.
41. Develop a way to notify users with friendly message while doing some changes or maintenance task after deployment.
42. Make sure to check all major functionality is working properly after deployment.

28/03/2013

Problem: How can I protect by asp.net button from click multiple time or double click at a time?

Solution:
When clicking in save or insert button a user can click multiple times very quickly that sometimes is similar to double click. If you do not protect users from double click while inserting data, it may insert multiple records at a time which is unexpected. Asp.net developers frequently face the problem.

To protect from this problem you need to add small java script function.


var crnt = 0;
function PreventClicks() {

if (typeof (Page_ClientValidate) == 'function') {
Page_ClientValidate();
}

if (Page_IsValid) {
if (++crnt > 1) {
alert(crnt);
return false;
}
return true;
}
else {
return false;
}
}


05/03/2013

Sqlserver: Major difference between VARCHAR2 and NVARCHAR is that, when you want to save a data of UNICODE like in HINDI, URDU, or ARABIC text in VARCHAR data type , after saving data in table when you see on table, it saved as question mark(??????????) so you need to make datatype of NVARCHAR so that you saved as what you wrote in HINDI, URDU or ARABIC, it saved as its actual format.

Address

Jamshedpur
832110

Alerts

Be the first to know and let us send you an email when Next Generation Technology Jamshedpur posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Next Generation Technology Jamshedpur:

Share