It can be done in two ways.
1) If you want to turn off cookies at application level, set in web.config file.
cookie state= false
2) At page level use the Cookie.Discard property. |
In UDDI. If you want to share your web service over the internet, you need to register it in UDDI server.
UDDI is the server which holds the list of web services. |
No, it is not true that web services can only be written in .net. It can be written in any language, because web service is the concept of XML, so that it can be written in any platform. |
An indexer is a member which enables an object to be indexed in the same way as an array.
Example:
namespace ConsoleApplication
{
using System;
class Employee
{
private string[]name = new string[10];
public string this[int index]
{
get
{
return name[index];
}
set
{
name[index] = value;
}
}
}
class Test
{
public static void Main()
{
Employee emp = new Employee();
emp[0] = "Joydip";
emp[1] = "Manashi";
emp[2] = "Jini";
Console.WriteLine("The namesare:--");
for (int i = 0; i < 3;Console.WriteLine(emp[i++]))
;
Console.ReadLine();
}
}
}
The output is as follows:
The names are:--
Joydip
Manashi
Jini |
View State data is stored in a hidden field called " __VIEWSTATE " on a web page.
Example :-
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTQ" />
Thanks and Regards
Akiii |
<meta http-equiv="refresh" content="15">
The above code will refresh your page after every 15 seconds.
Note :- sites like www.espncricinfo.com apply this mechanism to refresh there page.
Thanks and Regards
Akiii |
(1) Hide the page extension. From security aspect, it is always better to not show the extension (this concept is shown in ASP.NET MVC).
(2) Dynamic url's increase the rank of the page.
(3) It would make the url simple and more readable.
Thanks and Regards
Akiii |
|
We can access master page controls from the content pages.For examples :-
TextBox txtbx = (TextBox)Master.FindControl("txtMaster");
txtbx .Text = "DotnetFunda";
In the above code, FindControl is a method which is taking name of the control which is in the master page. Then it is casting in the textbox. Now, with the help of the text property we can assign any property.
Thanks and Regards
Akiii |
(1) Security -- The view state is stored in a hidden field on the page. Although view state stores data in a hashed format, it can easily be tampered.
(2) Performance -- The view state is stored in the page itself, so increases the page size. Hence the performance is decreased if you store loads of information in the viewstate.
Thanks and Regards
Akiii |
Code Metrics generally belong to the Code Re-factoring group. Its a measures of some property of a piece of software that provides developers better insight into the code they are developing.
Thanks and Regards
Akiii |
Maintainability Index calculates an index value between 0 and 100 that represents the relative ease of maintaining the code. A higher value means better maintainability.
20 to 100 --- good maintainability
10 to 19 --- moderately maintainable
0 to 9 --- low maintainability
Thanks and Regards
Akiii |
Cyclomatic Complexity refers to the structural complexity of the code. Here, different code paths in the flow of the program are calculated.
A complex control flow requires a more tests to achieve good code coverage. hence, the code will be less maintainable.
Thanks and Regards
Akiii |
Depth of Inheritance shows the number of class definitions that extend to the root of the class hierarchy. The deeper the hierarchy the more difficult it might be to understand where particular methods and fields are defined or/and redefined.
Thanks and Regards
Akiii |
Class Coupling measures the coupling to unique classes through parameters, local variables, return types, method calls, generic or template instantiations, base classes, interface implementations, fields defined on external types, and attribute decoration.
A Good software design dictates that types and methods should have high cohesion and low coupling.
High coupling indicates a design that is difficult to reuse and maintain because of its many inter-dependencies on other types.
Thanks and Regards
Akiii |
The steps are :-
(1) Open the url for example(www.testing.com)
(2) Login page opens.
(3) User enters user name and password and submits these to the server.
(4) Server validates the credentials and if valid, creates an authentication cookie and sends it back to the user browser.
(5) With valid cookie, user no longer needs to enter a user name and password to access the site on each page request.
(6) From next time he/she is simply redirected to the default page.
Thanks and Regards
Akiii |