What is ispostback method in ASP.Net? Why do we use that?How can we use pointers in ASP.Net?
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 a .net mechanism preserves the control & state on a webpage when user enter data page re-display view state for you by storing the appreciate information in hidden field on a form ;do not have to write code 2 implement viewsate;
View State is used to store the values in the current page.
Session is similar,but can hold values across the pages.
reflection is the bending of light
Reflection is the feature of C# that enables you to obtain the information about a type.
When a session is expiring in ASP.Net page?
Please help me to answer when the session is expiring in a ASP.Net page?Is it in page closing?
Session of an asp page expires when it reaches the time out set in the web config or the idle time out in IIS whichever comes first. Default is 20 minutes if I am not wrong
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?
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
One application can have only one web config file - true or false
False
One application can have more than one WEB.config file but application root has only one. And any folder then we can add config file inside.
If we define same key in both config file then the config file inside the folder overrides the value of root config file.
Is it possible in repeater control to do a functionality of edit, update, delete as gridview,listview and etc data binding control?
No.The Repeater control is used to display a repeated list of items that are bound to the control. The Repeater control may be bound to a database table, an XML file, or another list of items.
Yes, repeater also have that capability to edit,delete and update the record.
We have to explicitly write the code for that, as we write for the binding of db.
What is the difference between the repeater and the datalist?
Datalist is used to just read only purpose where data in table format. where a repeater has no such format to store the data. In repeater we can put data in any where in random format. The Repeater ...
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" />
Encrypt connection string in web.Config
How to encryption and decryption connection string in web.Config ? Explain with example ?
You can use server.EncryptUrl , Server.DecryptUrl Functions.
What are the different types of sessions in ASP.Net? Name them.
client side session
server side session
1. Inproc
2. Out Proc
3. StateServer
What events will occur when a page is loaded?
Events available during page load are:
1.Pre-Init
2.Init
3.Initcomplete
4.PreLoad
5.Load
6.Loadcomplete
7.PreRender
8.Render
We are having 11 Page life cycle events.Below are the events occures during page load.1) Page_PreInit2) Page_Init3) Page_InitComplete4) Page_PreLoad5) Page_Load6) Page_LoadComplete7) Page_PreRender8)R...
How to get listview data key on button click
How to find a datakey value on image button click in listview without using any listview event ???
if you want to Get Data Key value on Click of ImageButton/LinkButton, you can set the DataKey value to CommandArgument property of your control and then in Click handler you can get the value from CommandArgument property
Code
<asp:ImageButton ID="ibtn" runat="server" CommandArgument=<%# Eval("DataKeyName")%> ImageUrl="~/Images/edit.png"></asp:ImageButton>
Basically this is the concept of control hierarchy works just the same with a DataGrid.
The passing of the control from the child to the parent is called as bubbling. Controls like DataGrid, Datalist, Repeater, etc can have child controls like Listbox, etc inside them. An event generated is passed on to the parent as an ItemCommand.
What is caching? What are different ways of caching in ASP.Net?
Caching on the web is that it avoids a roundtrip to the origin web server each time a resource is requested and instead retrieves the file from a local computers browser cache or a proxy cache closer to the user.
1. output caching
2. fragment caching
3. data caching
To Imporve the performance of Web Pages, we use Caching. Caching is a used for persisting data in memory for immediate acces to the program calls. It has three types : 1. Output Caching - to fetch ...
Why is multiple inheritance not allowed in c#?
One reason is to avoid name collision or avoid the problem of Identity which can lead to collision in method overriding. However, please note that absolute multiple inheritance is not possible in C# but C# partially supports multiple inheritance via Interfaces.
Where do the cookie state and session state information be stored?
Cookie is stored in client machine
Session is stored in server
Cookies : are stored in client side (User's browser) , Ideally suits for tiny data to be stored to be remembered by the browser where as Sessions : are variables stored in the web server to store data.
How to create chat room application using ASP.Net and vb
Hi all,i am a beginner in vb programming, so I need to write web based chat room application using ASP.Net and visual basic 2005. The application will save all comments on database.Can someone please help me achieve this.Thank you in advance
This is simple web chat application which will be used by people to talk about any job opening and interview related questions. It has two modules the login and the chat module. Login module consists ...
You can use socket programming for that.
If we remove web.Config or machine.Config from the application then, is this application will works?
Without web.config file, the application will be run but you cant debug.
Without machine.config file, you wont be run application because by default asp.net application used machine.config file settings.
If you remove web.config file the app will work provided that no connection string setting etc and other dependant dll. references is configured.
if you remove machine.config the app will not run
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) { ...