CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: Date Entered: 4/30/2006 7:32:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 45 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
"rmclean" <>
NewsGroup User
Web user control added from Catalog Zone4/30/2006 7:32:16 PM

0

Oh boy, my first post here, what fun . . .

Hello all, here is my question: I have web user controls into a catalog zone. I would like the databind the controls when they are first added to the web part zone, but not necessarily on every subsequent postback. What is the best way to accomplish this? I could be doing something fundamentally wrong in my design, if something is blaring, please let me know :)

Your insight is appreciated,
Ryan

"augustwind" <>
NewsGroup User
Re: Web user control added from Catalog Zone4/30/2006 8:22:59 PM

0

if not Page.IsPostback then
' populate controls
end if

??


David Wier
MVP/MCP/ASPInsider
ASPNet101.com - where to look first!
iWrite Pro - doc/rtft to HTML/One Click PDF & much more
"rmclean" <>
NewsGroup User
Re: Web user control added from Catalog Zone4/30/2006 8:39:08 PM

0

HAHA, true enough, that would be great. I am trying to avoid the overhead of re-binding the control every time a different control has a postback, for every control in all the web part zones thinks it's their postback. Does that make sense? I could reload the data every time, that just seems inefficient . . . maybe I want my cake and to eat to . . .


Thanks for the post/input,
Ryan

"rmclean" <>
NewsGroup User
Re: Web user control added from Catalog Zone4/30/2006 9:00:17 PM

0

Oh, I need to add to clarify my ramblings, the control thinks the postback is true every time is added to the web part zone, so if I have the ole ?if not page.ispostback then? in there, it never fires until the page is reloaded completely. I could very well be missing something obvious . . .

Thanks again,
Ryan

"rmclean" <>
NewsGroup User
Re: Web user control added from Catalog Zone5/1/2006 6:34:25 PM

0

I determined a way that would cut down the processing overhead . . .

If ((Page.IsPostBack _
                    AndAlso (Request.Form("__EVENTARGUMENT") = "add" _
                    And Request.Form("__EVENTTARGET").IndexOf("czMain") > -1) _
                Or Not Page.IsPostBack) _
                ) Then

Seems to load the data when the control is added, but not in every subsequent postback . . .

The argument has a value of add when a control is  . . . added to a web part zone; czMain is the catalog zone the control is coming from . . . could have been left off I guess.

Thanks,
Ryan
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:













dnn 3.1.1 - an unhandled error has occured

disapearing references, build woes

comparevalidator, multilanguage and dotnetnuke/shaun walker blog

stuck in seabury tutorial

open source

how do i change the color of the text for the dropdown menus?

testing process for new skins?

what's up with www.dotnetnuke.com website

3.0.6 container min max issue?

how to change port nr in connectionstring in 3.x

new page not showing correctly - help

porblem with submit by linkbutton

exceptions in dnn 3.0.13

re: transforming section headcontrol into rendered control with clientapi

new site

installing dnn on a remote host?

installing a language pack

new install - where are the sql server tables, procs...etc?

login first and then view all modules

getting error on brinkster

multiple module page refresh

european payment processor

social networking module/project

newsfeed rss 2.0

dnnactionbutton1 doesn't show up ..

unable to use newsfeed(rss) module

versioning issues - in core updates and custom modules

where to comment out the <hr> under the title of module

cant login using https

is this possible with solpart??

how shold i change the datetime format?

random streaming video clips in dnn2

new dotnetnuke site

child portal creation error for dnn 3.0.13

forums/blog using non-standard calls

changing information

help - 3.1.1 went down - i don't understand error

building module dnn2

admin | site settings - skin preview possible bug / issue

french terms and privacy statements

3.0.11 demo signup and site wizard

4.0 installation problems

is there a c# version

q: personalization

import utilities? infopop to dnn?

timeline for 4.01?

donations no mas?

any dnn shops or people in oklahoma city

which source file(s) should i need to modify when i got the following error?

why target schema ie3.02 ?

   
  Privacy | Contact Us
All Times Are GMT