Showing posts with label database. Show all posts
Showing posts with label database. Show all posts

Wednesday, March 28, 2012

control extender for drag and drop - help

I am trying to get drag and drop to work with data dynamically populated from a database. The basic structure layout of the page is based on the work done by Garbin at:

http://aspadvice.com/blogs/garbin/archive/2006/01/17/14730.aspx

I have a master page and some user controls to populate different areas of the page. One of the user controls gets the data from the database and then creates the HTML of the form:

<div id="content1" class="item"> <div id="content1Handle" class="itemHandle">Content 1</div> <div class="itemContent"> <asp:Login ID="myLogin" runat="server" CssClass="centered"></asp:Login> </div> </div> <div id="content2" class="item"> <div id="content2Handle" class="itemHandle">Content 2</div> <div class="itemContent"> <asp:TextBox ID="myTextBox" runat="server"></asp:TextBox> <asp:Button ID="myButton" runat="server" Text="ClickMe" /> </div> </div>

This works OK, but to create the drag and drop behavior, I need to add the following after the end of the </form> tag …

</form> <script type="text/xml-script"> <page> <components><!-- Left Area --> <control id="leftArea"> <behaviors> <dragDropList dataType="HTML" acceptedDataTypes="'HTML'" dragMode="Move" direction="Vertical"> <dropCueTemplate> <template layoutElement="dropCueTemplate" /> </dropCueTemplate> <emptyTemplate> <template layoutElement="emptyTemplate" /> </emptyTemplate> </dragDropList> </behaviors> </control><!-- Right Area --> <control id="rightArea"> <behaviors>

BUT, I do not know how … it has been suggested that I use a control extender, but having viewed the ATLAS vids on the MS website, I cannot understand how a control extender will be able to dynamically create this code after the </form> tag ?

Any ideas anyone ?

Thanks

anyone ? please ... Crying

Connecting DragPanelExtender to a Database(SqlServer2005)

Is it possible to connect a DragPanelExtender to a database

Please Help

kartik

Hi Kartik,

vki:

Is it possible to connect a DragPanelExtender to a database

What's this really mean?T he DragPanel extender allows users to easily add "draggability" to their controls. So it has no direct way to connect to a Database. But I think you can put a data control in the Panel which is associated with the DragPanelExtender. The DataControl can bind to a Dataset etc.

I hope this help.

Best regards,

Jonathan


Thanks for ur concern

We got another alternative so we implemented that

For the time being I am struggling with some javascript code which I posted

can u help me for that


Hi Vki,

vki:

We got another alternative so we implemented that

For the time being I am struggling with some javascript code which I posted

can u help me for that

Yes. But what's your problem? If it is directly related to this thread, please post a simple sample here. Or it would be best if you open up a new thread for your new question.This will make the answer search in the forum easier and be beneficial to other community memebers as well.

Thanks for your understanding.

Best regards,

Jonathan


Hi Vki,

I think you want to restore something from client to Database when dragging. Please see my threadhere and I think they are similar issues.

Best regards,

Jonathan

Monday, March 26, 2012

confirmbuttonextender-advanced

I am using a confirm button extender to fire before the user updates a database. What I would like to do is gather all of the "changes" that will be made and display them in the alert...

Example:

--button 1 sub--

confirmbuttonextender1.confirmtext = textbox1.text & textbox2.text & dropdown1.selectedvalue etc.


Here is the problem... the string is not persisted until a postback takes place... so before someone says use a partial page update or anything that triggers an update... don't... ;)

so basically I need a way to gather the information from the objects BEFORE a postback takes place so that when the user clicks the button the alert will tell the user what changes are about to be made.

Thanks for the help!

You're right, it won't work with server-side script. It would be very simple to write your own javascript confirm and forget about the extender.

------------------
When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


yeah... not quite so simple....

anymore help would be great