Showing posts with label lists. Show all posts
Showing posts with label lists. Show all posts

Wednesday, March 28, 2012

Linked Drop Down Lists

Hi,

I want to use Atlas to create a couple of linked drop down lists. So when you change one it will automatically fill another. Can anyone give me an example of how to do this using Atlas?

With the December release you could just use 2 DropDownList (ASP.NET) controls, and set AutoPostBack="true" on the first one. Handle its SelectedIndexChanged event and inside the handler populate the 2nd dropdown... Both dropdowns should be placed inside an Atlas UpdatePanel server control, and you should enable partial rendering (which is a property on the ScriptManager control). This should perform a callback when you change the selection in the first dropdown...

Saturday, March 24, 2012

load external url in page?

I have a treeView that lists SQL Reports available to the user. What I'd like to do is put the treeView into an Update Panel, and some other control that can display an external url, next to the treeView so that when a user clicks on a report, it fetches the contents of the url and displays it without doing a postback. So my question is, are there samples of this out there (I couldn't find any) and if so, what control would allow me to load external content into it (like an iframe)? I realize I could do the same thing with a div or iframe using javascript, but I'd like to use ajax if possible...

Thanks!

eddie

Chao,

I would put the iframe inside the UpdatePanel and the Trigger controling the URL's ID from the treeview. This is similar to having a gridview or any view inside an UpdatePanel with a trigger controlling a button. The button is of course outside the UpdatePanel.

WS

p.s. not responsible for not working ... hihihi ... but that's how i see it.