Click here to Skip to main content
15,892,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Gridview inside dropdownlist selected index change load the other control values Pin
Reza Ahmadi8-Apr-12 0:37
Reza Ahmadi8-Apr-12 0:37 
QuestionData control of this Discussions page Pin
samathabheemanathini5-Apr-12 20:30
samathabheemanathini5-Apr-12 20:30 
QuestionImages not appearing with httpwebrequest and firewall Pin
Kamal Rayaguru5-Apr-12 18:57
Kamal Rayaguru5-Apr-12 18:57 
QuestionStarting with Asp.net website Pin
Atefjob5-Apr-12 14:18
Atefjob5-Apr-12 14:18 
AnswerRe: Starting with Asp.net website Pin
Abhinav S5-Apr-12 20:09
Abhinav S5-Apr-12 20:09 
AnswerRe: Starting with Asp.net website Pin
Syed Zoheb Ali Sumair16-Apr-12 5:51
Syed Zoheb Ali Sumair16-Apr-12 5:51 
QuestionListView Control loosing all items in it Pin
indian1435-Apr-12 11:52
indian1435-Apr-12 11:52 
AnswerRe: ListView Control loosing all items in it Pin
jkirkerx5-Apr-12 12:43
professionaljkirkerx5-Apr-12 12:43 
You do the initial load of data on page.load if not postback - The example is vb, but you should be able to change it to c# with ease. The update panel doesn't matter, because the principals are the same.
Sub Protected Page.Load( ffdfgdffg )

     if Not Page.IsPostback Then
          Load Dropdowns with countries 
     End If

End Sub


Make sure autopostback is set to true on the Country ddl

Then on postback when the user selects a country
Protected Sub onCountry_Changed( fsdfsdf )
     if Page.IsPostBack Then
          iSelect = ddlCountry.SelectedValue
          Load States Dropdown List( iSelect )
          
     End If
End Sub


When a page first loads, the page lifecycle is called load. The page can only load once upon first creation.

When the page is sent back to the server, it's called a postback. The the server sends the page back again to reflect the change. The page can post back many times, and the markup will remain the same.
GeneralRe: ListView Control loosing all items in it Pin
vvashishta24-Apr-12 19:33
vvashishta24-Apr-12 19:33 
QuestionDatabinding Ajax Control Toolkit Rating Control Pin
Mahesha9995-Apr-12 9:40
Mahesha9995-Apr-12 9:40 
QuestionHiding values on page Pin
MacIntyre5-Apr-12 7:05
MacIntyre5-Apr-12 7:05 
QuestionRe: Hiding values on page Pin
Eddy Vluggen5-Apr-12 8:20
professionalEddy Vluggen5-Apr-12 8:20 
AnswerRe: Hiding values on page Pin
MacIntyre5-Apr-12 8:55
MacIntyre5-Apr-12 8:55 
AnswerRe: Hiding values on page Pin
jkirkerx5-Apr-12 10:44
professionaljkirkerx5-Apr-12 10:44 
AnswerRe: Hiding values on page Pin
vvashishta24-Apr-12 19:37
vvashishta24-Apr-12 19:37 
QuestionHow to retrieve photos from album from picassa in asp.net Pin
premagavarawad5-Apr-12 2:14
premagavarawad5-Apr-12 2:14 
Questiondevexpress and webmodalanchor Pin
tomorrow_ft5-Apr-12 2:07
tomorrow_ft5-Apr-12 2:07 
QuestionPlz tell me solution for it Pin
Swamytrva5-Apr-12 1:06
Swamytrva5-Apr-12 1:06 
AnswerRe: Plz tell me solution for it Pin
V.5-Apr-12 1:52
professionalV.5-Apr-12 1:52 
QuestionError solution Pin
Swamytrva5-Apr-12 1:04
Swamytrva5-Apr-12 1:04 
AnswerRe: Error solution Pin
V.5-Apr-12 1:58
professionalV.5-Apr-12 1:58 
QuestionFacing issue in jquery in Asp.net MVc application Pin
vnr5-Apr-12 1:01
vnr5-Apr-12 1:01 
Questionillegal characters in path : system.argumentException Pin
ausia195-Apr-12 0:18
ausia195-Apr-12 0:18 
AnswerCross post from C# forum. Pin
Pete O'Hanlon5-Apr-12 0:55
mvePete O'Hanlon5-Apr-12 0:55 
QuestionExport to Excel and Microsoft Jet Pin
biop.codeproject4-Apr-12 21:43
biop.codeproject4-Apr-12 21:43 

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.