Click here to Skip to main content
15,911,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL anyone ? Pin
Jim MacDonald19-Sep-03 10:29
Jim MacDonald19-Sep-03 10:29 
Generalhtml to image component Pin
shaiotz115-Sep-03 7:07
shaiotz115-Sep-03 7:07 
GeneralRe: html to image component Pin
Jasper4C#15-Sep-03 8:28
Jasper4C#15-Sep-03 8:28 
GeneralRe: html to image component Pin
shaiotz115-Sep-03 22:53
shaiotz115-Sep-03 22:53 
GeneralRe: html to image component Pin
Jasper4C#16-Sep-03 5:17
Jasper4C#16-Sep-03 5:17 
Questioncalling API dll functions - types? Pin
Tym!15-Sep-03 7:02
Tym!15-Sep-03 7:02 
AnswerRe: calling API dll functions - types? Pin
gmhanna15-Sep-03 15:18
gmhanna15-Sep-03 15:18 
GeneralRe: calling API dll functions - types? Pin
Tym!16-Sep-03 10:27
Tym!16-Sep-03 10:27 
GeneralCounting num words in richtext Pin
Ista15-Sep-03 6:22
Ista15-Sep-03 6:22 
GeneralRe: Counting num words in richtext Pin
Donald_a16-Sep-03 0:11
Donald_a16-Sep-03 0:11 
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 

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.