Click here to Skip to main content
15,888,264 members
Home / Discussions / C#
   

C#

 
GeneralGetting the height of a main menu Pin
CyberKewl14-Sep-03 15:58
CyberKewl14-Sep-03 15:58 
GeneralRe: Getting the height of a main menu Pin
James T. Johnson15-Sep-03 4:17
James T. Johnson15-Sep-03 4:17 
GeneralRe: Getting the height of a main menu Pin
CyberKewl15-Sep-03 5:47
CyberKewl15-Sep-03 5:47 
GeneralMemory in .NET Pin
Dave Kerr14-Sep-03 8:12
Dave Kerr14-Sep-03 8:12 
GeneralRe: Memory in .NET Pin
Nick Parker14-Sep-03 11:18
protectorNick Parker14-Sep-03 11:18 
GeneralRe: Memory in .NET Pin
Dave Kerr15-Sep-03 8:04
Dave Kerr15-Sep-03 8:04 
GeneralRe: Memory in .NET Pin
James T. Johnson15-Sep-03 8:54
James T. Johnson15-Sep-03 8:54 
GeneralUsing IsPostBack with LoadControl Pin
Jay Pal14-Sep-03 8:03
Jay Pal14-Sep-03 8:03 
I've an xxx.aspx page which has couple buttons. Based on button click I'm loading ascx files using

Case 1
Page.LoadControl("xxx.ascx")
Case 2
Page.LoadControl("yyy.ascx")
...
...

In my xxx.ascx and yyy.ascx files, I've a grid control which I want to populate using "BindGrid()" method only

if (!Page.IsPostBack)

But it appears to me when I use "if (!Page.IsPostBack)", the binding doesn't happen and if I remove it it works fine. In simple words, looks like there's no PostBack when it comes to LoadControl.

I want to use "if (!Page.IsPostBack)" because for everything I'm doing with grid calls the PageLoad eachtime like if I click on "Next Page" (i've paging enabled for the grid), it calls PageLoad and same PageLoad is called when "Prev Page" is clicked.

Somehow I want the ascx PageLoad to appear once rather than each time.

Any Suggestions? Comments?

I really need some help.

GeneralRe: Using IsPostBack with LoadControl Pin
Nick Parker14-Sep-03 11:38
protectorNick Parker14-Sep-03 11:38 
GeneralDRawable Panel, Resize and Scrollbars ! Pin
Frank Olorin Rizzi14-Sep-03 4:46
Frank Olorin Rizzi14-Sep-03 4:46 
GeneralRe: DRawable Panel, Resize and Scrollbars ! Pin
Frank Olorin Rizzi14-Sep-03 14:39
Frank Olorin Rizzi14-Sep-03 14:39 
GeneralActiveX and C# Pin
Robert_14-Sep-03 2:40
Robert_14-Sep-03 2:40 
GeneralRe: ActiveX and C# Pin
Mazdak14-Sep-03 4:14
Mazdak14-Sep-03 4:14 
QuestionLet property builder generate code? Pin
Johan de Koning14-Sep-03 1:22
Johan de Koning14-Sep-03 1:22 
GeneralHTML editor in C# Pin
Jasper4C#13-Sep-03 22:24
Jasper4C#13-Sep-03 22:24 
GeneralRe: HTML editor in C# Pin
James T. Johnson15-Sep-03 4:26
James T. Johnson15-Sep-03 4:26 
GeneralRe: HTML editor in C# Pin
Jasper4C#15-Sep-03 8:08
Jasper4C#15-Sep-03 8:08 
GeneralMain Form Control Pin
dbetting13-Sep-03 14:17
dbetting13-Sep-03 14:17 
GeneralRe: Main Form Control Pin
mcgahanfl14-Sep-03 14:15
mcgahanfl14-Sep-03 14:15 
GeneralRe: Main Form Control Pin
dbetting14-Sep-03 15:12
dbetting14-Sep-03 15:12 
GeneralRe: Main Form Control Pin
mcgahanfl15-Sep-03 3:03
mcgahanfl15-Sep-03 3:03 
GeneralScreen Coordinates Pin
Paul Silvernail13-Sep-03 7:32
Paul Silvernail13-Sep-03 7:32 
GeneralRe: Screen Coordinates Pin
leppie13-Sep-03 8:12
leppie13-Sep-03 8:12 
GeneralRe: Screen Coordinates Pin
Paul Silvernail13-Sep-03 8:25
Paul Silvernail13-Sep-03 8:25 
GeneralRe: Screen Coordinates Pin
leppie13-Sep-03 8:40
leppie13-Sep-03 8:40 

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.