How the server side identifies button click event
if i have placed the button control with the OnClick event like
and some other controls(buttons, textboxes) in .aspx page. When i run the page, the button displays in the page source of the browser likeCode
<asp:Button ID="mybutton" runat="server" Text="Insert" onclick="mybutton_Click" />
here, it does not display the onclick event, then how the page calls the button click on the server side, how the server side identify which button cause the submit, and how this page moves to the server side.Code
<input type="submit" name="mybutton" value="Insert" id="mybutton" />
, control renders by default an input of type="submit", which submits the form, using the browsers default mechanism. ASP .Net identifies which button was clicked, by checking the posted values. Whe...
The secret is in the Tag and the hidden field "id="__EVENTVALIDATION", as you know that the form element supports the Event Attributes "means the abillity to fire scripts when an action happened like...
Encrypt connection string in web.Config
How to encryption and decryption connection string in web.Config ? Explain with example ?
methods for Encrypting and decrypting connectionStrings section in web.config you can use encryption configuration model " Rsa," it is feasible to change this to DataProtectionConfigurationProv...
You can use server.EncryptUrl , Server.DecryptUrl Functions.
How do u get the file name from a particular path using Javascript?
"javascript function getFileName() { //this gets the full url var url = document.location.href; //this removes the anchor at the end, if there is one url = url.substring(0, (url.in...
use indexOf
indexOf(path)
What is the main role of view state?
What is the main purpose of view sate.. Like we can maintain value by session and etc but still we used view state why..???
View state is used to maintain the state of server controls during page postbacks.
Viewstate is a Page label hidden variable which is used to maintain state of the control between postback. The values will be lost as soon as you move to new page. It is a client side state management...
Dotnet framework on iis server
Is it require to install dotnet framework on iis server?
If your are running ASP.NET application. Make sure ASP.NET handlers/extensions are registered in IIS Handler Mapping section.
Yes
What is webcombo box in ASP.Net2.0
Waiting 4 ans
n .NET2.0 ComboBox and TextBox has the facility. Just set the Autocomplete property to any of the following {Suggest,Append,SuggestAndAppend} And the Autocomplete DataSource to any one of the followin...
A web combo box is used to manipulates the dataset rather than query the database everytime, to shorten the resulting resultants.
I will be taking a skills test for an ASP.Net developer position and I was wondering what concepts would be on the test? What can I expect to see?
Hi!
At first I would like to know r u a fresher or experienced in .NET.If fresher,u need to know about the basics like
OOPs Concepts
What are the different types of sessions in ASP.Net? Name them.
Types of sessions state mode in ASP.NET
1. In process mode
2. Out process mode
3. SQL Server mode
4. Cookieless session
They are two type of sessions
1. Session
2. Cookieless session
This is the concept of memory management and it is handled by garbage collector(GC) of CLR. GC cleans up the unused managed objects and for this it performs collections and the objects will be placed...
Common Language Runtime which responsible of convert Microsoft Intermediate language to Machine Language by run the Just In Time Compiler.
What events will occur when a page is loaded?
PreInit -> Theme Init, MasterPage Applied, Control Skins Applied Init -> All controls initialized and skins applied, Read/Write control properties InitComplete -> Implement logic that depends on the p...
Events available during page load are:
1.Pre-Init
2.Init
3.Initcomplete
4.PreLoad
5.Load
6.Loadcomplete
7.PreRender
8.Render
One application can have only one web config file - true or false
Answered by: Harit Pandya
Answered On : Oct 10th, 2006An asp.net application is a virtual directory that you make on a web server. This application will take the settings of machine.config file if a web.config file is not available in that directory. Now if you create a sub directory inside a virtual directory and place another web.config file in the sub directory then the sub directory will take the settings of the web.config file in that particular directory.
So my answer is that an application can have more than one web.config file but they should be in different directories of that web application and also the sub directory that uses it should be a virtual directory
False,Yes... A Project can have multiple web.config files, but they resides in separate folders...
True
What is the main difference between external and inline style sheet.
The CSS file better than the inline style because if you have a change request for anything in the style you dont have to go through every line you edit style inline you have just go to file then edit and it will update the style wherever you use the class of CSS file.
Actually there exists three types of styles Inline, Internal and External. Inline CSS is defined within the style property of any element/control Can be used only by that element Internal CSS is def...
Asmx web service and wcf web service
What is the difference between asmx web service and wcf web service? How is wcf better than asmx?
WCF vs. ASMX Protocols Support WCF •HTTP •TCP •Named pipes •MSMQ •Custom •UDP ASMX •HTTP only Hosting ASMX •Can be hosted only with HttpRuntime on IIS. WCF •A WCF componen...
WCF web service provides a complete solution for the WS* specification. asmx does not.
Web service as non-web serviced component
Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .Net component
This is the tricky one but i feel it would be appropriate to use web service only when you are trying to receive data or send data to some one. I hope this helps.
What must be done before you can consume a web service?
Build a proxy library by using the wsdl.Exe utility
One way is We must hard code to convert the request and response into SOAP format . Better way is to use wsdl.exe tool to build a proxy that will take care of conversion of response and request into S...
There are 2 ways one can consume a webservice. 1) By creating a proxy manually 2) By adding web reference Creating Proxy manually: 1) Browse the webservice 2) Add ?wsdl at the end of the URL ...
Use of focus() method in ASP.Net
The focus() method sets focus to the current window.When web page is loaded you can use a BODY onload event and javascript client code to set focus method(). Example The above example assumes a web ...
Boxing permits any value type to be implicitly converted to type object or to any interface type implemented by value type.
Unboxing is vice verse of boxing operation where the value is copied from the instance into appropriate storage location.
EX:-
Dim X As Integer
Dim Y As Object
X=10<--BOXING PROCESS-->
Y=X<--UNBOXING PROCESS-->
Boxing
Value Type -----> Reference Type
Un Boxing
Reference Type ------> Value Type
What is ispostback method in ASP.Net? Why do we use that?How can we use pointers in ASP.Net?
Why we use postback method in c# .net?
IsPostBack is a property which returns boolean value. It checks weather the page is postedback or not."c# protected void Page_Load(object sender, EventArgs e) { ...
reflection is the bending of light
Reflection is the feature of C# that enables you to obtain the information about a type.
A master page and themes are also applied to the page if applicable during Preinitialization event and order of events occuring in page life cycle are same as in page life cycle without master page. 1...
SILVER-U
S --> START
I --> INITIALIZE
L --> LOAD
V --> VALIDATE
E --> EVENT HANDLING
R --> RENDERING
U --> UNLOAD