Showing posts with label omg. Show all posts
Showing posts with label omg. Show all posts

Friday, March 16, 2012

OMG please help. Parent UpdatePanel refreshing with nested UpdatePanel

Angry I have two update panels, lets call them A & B

B is nested inside A

B has a trigger registered to a timer so it updates every 30 seconds. A is updating too, why?

Both are set to conditional update, all other options are at default. Scriptmanager PartialPageRendering=true

Please help, I'm going insane.

Then a lesser worry for me, if you know,, how can I give a textbox located in A focus (cursor) after an update?

Set the ChildrenAsTriggers of UpdatePanel A to FALSE

Thanks


I did that and I'm still getting it.

Panel A's Page_load event also gets fired before B's. and the tmr is definitely registered only to B. the tmr is also located inside the B panel. The is a UpdateProgress control inside A and it triggers with B and A.

anything else anyone cant think of...

thanks in advance for any tips.


did you ever figure out this issue?

I did, however it was one of those things where I just kept moving things around and it eventually worked. But I will say that my panel A's (the parent) will still have its page_load event fired when b is updated, I just have to test to see if the timer is what caused the postback and if so run my code to change what I need to in B and change nothing in A.

Panel A (parent) is set to conditional and children as triggers False,

Panel B (nested) is set to update always with children as triggers set to true.

the timer is inside B but is NOT registered is a trigger.

OMG Tables!

OK, so this really shouldn't be causing as much trouble as it is...but it is! :(

I have a table layout template, header, footer, side. Nice and simple.

Of course the default layout is cr@dotnet.itags.org.p when it inserts the table, so *all* I want to do is resize the table so everything is nice.

In fact, I want it to look like the preview picture when you create the damn thing!

I have tried absolute and relative sizes, but you change one, and the rest go out. Some won't resize, some will!

Is there some trick to laying out tables, that I don't know? What's the best method absolute or relative and can you mix them?

Help! It's driving me insane!Heheheh :)

Don't use tables for layout. Use CSS instead - you can avoid all this crap.

If all you want is a two column layout then it's easy - each component a <div> :
- Both columns float:left with a percentage width each
- Footer clear:both.

Couldn't be simpler :)
OK, so this really shouldn't be causing as much trouble as it is...but it is! :(

I have a table layout template, header, footer, side. Nice and simple.

Of course the default layout is cr@.p when it inserts the table, so *all* I want to do is resize the table so everything is nice.

In fact, I want it to look like the preview picture when you create the damn thing!

I have tried absolute and relative sizes, but you change one, and the rest go out. Some won't resize, some will!

Is there some trick to laying out tables, that I don't know? What's the best method absolute or relative and can you mix them?

Help! It's driving me insane!

Heh, that's why I've given up on table layouts. Maybe it is because I come from a desktop programming background and not a web developer background, but trying to get tables to look right drives me absolutely insane. If you are using VS 2005, there is a Basic Personal Website (or Starter Website or something like that it is called) sample that you can chose when you are creating a website. it is full of great stuff for helping to figure out things like master pages, skins/CSS, menus and sitemaps and anyways all sorts of useful stuff for righting ASP.NET 2.0.