Click here to Skip to main content
15,896,453 members
Home / Discussions / C#
   

C#

 
GeneralRe: qns in asp.net with csharp Pin
Paul Conrad26-Dec-07 4:45
professionalPaul Conrad26-Dec-07 4:45 
GeneralRe: qns in asp.net with csharp Pin
dhans30-Dec-07 19:09
dhans30-Dec-07 19:09 
GeneralRe: qns in asp.net with csharp Pin
dhans30-Dec-07 19:20
dhans30-Dec-07 19:20 
Generalthe PC current Calender Pin
Ahmad Adnan23-Dec-07 21:49
Ahmad Adnan23-Dec-07 21:49 
Generalautopostback property Pin
chithra.r23-Dec-07 21:39
chithra.r23-Dec-07 21:39 
GeneralRe: autopostback property Pin
Kristian Sixhøj23-Dec-07 22:01
Kristian Sixhøj23-Dec-07 22:01 
GeneralRe: autopostback property Pin
rah_sin23-Dec-07 22:17
professionalrah_sin23-Dec-07 22:17 
GeneralRe: autopostback property [modified] Pin
dhans30-Dec-07 20:59
dhans30-Dec-07 20:59 
For understanding AutoPostBack, we need to know , what a PostBack
Then, what is AutoPostBack, Autopostback is the mechanism, by which the page will be posted
Back to the server automatically based on some events in the web controls. In some of the web controls, the property called auto post back, which if set to true, will send the request to the server when an event happens in the control

For example.

Dropdown Box (Combo box) web control has the property autopostback, if we set the property to true, when ever user selects a different value in the combo box, and event will be fired in the server. i.e. a request will be send to the server.

Why we need to send a request to the server in this case?
Consider this scenario where the web page is used for entering the user information. The page contains two combo box controls State and Town. When user selects the state, the appropriate towns should be filled in the town combo box which is loaded from the database. For achieving this requirement, we can set the autopostback property of state combo box to true. If we do that we can handle the event in the server side and write code to populate the town combo box with the values from the database.

This is how we use the autopostback property. I will give another example for the autopostback usage with another control which will give much better understanding.

Consider a login page, which contains text fields User ID, User Name and Password fields. User name text box will not be editable. So the requirement will be like this, when user enters the user id and clicks tab, his name should be displayed in the User Name text field. For achieving this we have to make autopostback property of the user id textfield to true and handle the event in the server side, In the event handler, we have to write code to fetch the user name from the database for the user id ,which we will be getting from the user id text box

dhans

modified on Friday, January 04, 2008 2:07:23 AM

QuestionHow to get the linked url from a document? Pin
sduhd23-Dec-07 21:30
sduhd23-Dec-07 21:30 
AnswerRe: How to get the linked url from a document? Pin
That's Aragon24-Dec-07 0:21
That's Aragon24-Dec-07 0:21 
Generaltexturing by a bmp file Pin
Member 470189823-Dec-07 21:29
Member 470189823-Dec-07 21:29 
GeneralRe: texturing by a bmp file Pin
Anthony Mushrow23-Dec-07 23:01
professionalAnthony Mushrow23-Dec-07 23:01 
GeneralRe: texturing by a bmp file Pin
GuyThiebaut23-Dec-07 23:14
professionalGuyThiebaut23-Dec-07 23:14 
Questionhow can i get the real IPAddress of a client that use a share internet Pin
amin_ramin888623-Dec-07 20:55
amin_ramin888623-Dec-07 20:55 
GeneralRe: how can i get the real IPAddress of a client that use a share internet Pin
Michael Sync23-Dec-07 21:13
Michael Sync23-Dec-07 21:13 
GeneralRe: how can i get the real IPAddress of a client that use a share internet Pin
amin_ramin888624-Dec-07 20:11
amin_ramin888624-Dec-07 20:11 
GeneralNew Activex Control Pin
Thaer Hamael23-Dec-07 19:49
Thaer Hamael23-Dec-07 19:49 
Generalcatching browser action Pin
balakpn23-Dec-07 19:18
balakpn23-Dec-07 19:18 
GeneralRe: catching browser action Pin
Michael Sync23-Dec-07 21:14
Michael Sync23-Dec-07 21:14 
GeneralRe: catching browser action Pin
balakpn23-Dec-07 22:03
balakpn23-Dec-07 22:03 
QuestionHow i can show the data in the Crystal Report Horizantly Pin
wasimsharp23-Dec-07 19:14
wasimsharp23-Dec-07 19:14 
GeneralDrawing 2D lines using c# Pin
ramyanaidu23-Dec-07 18:56
ramyanaidu23-Dec-07 18:56 
GeneralRe: Drawing 2D lines using c# Pin
Anthony Mushrow23-Dec-07 21:25
professionalAnthony Mushrow23-Dec-07 21:25 
GeneralRe: Drawing 2D lines using c# Pin
GuyThiebaut23-Dec-07 23:21
professionalGuyThiebaut23-Dec-07 23:21 
QuestionRegarding Deployment Pin
sindhutiwari23-Dec-07 18:24
sindhutiwari23-Dec-07 18:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.