asp.net/JavaScript

  • Thread starter Thread starter DotNetJunkies User
  • Start date Start date
D

DotNetJunkies User

Hi all,

I need help.

I have two text boxes in asp.net. One with multiline is True say text box name is s1. In s1 I have around 10 values. Another text box I have a string like 1212<Test>Value. I need to drag and drop the value from the s1 text box in the place of <Test>. I need to delete Test and place the value from the s1 text box. Please help me. I am new to asp.net


Thanks alot in advance
 
You might want to consider a lighter alternative:

Clicking on an element in the multiline, s1, sets the value of the other
text box to it.

So you would take the onClick event of s1, determine the selectedValues and
put those into the .Text= of the text box.

If you really want "drag and drop" then you will have to implement some type
of javascript layers outside the scope of basic webform programming.
 
PS--

Here is a neat page about drag and drop in javascript with some examples
right on the page...anything is possible ( and remember, most ASP.NET
controls are really just code generators for javascript inside the
WebForm's HTML. There is no reason you couldn't code up what you want --
but basic VS is not going to help you much ... )

http://www.walterzorn.com/dragdrop/dragdrop_e.htm
 
Back
Top