asp.net/JavaScript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DotNetJunkies User

    #1

    asp.net/JavaScript

    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

    ---
    Posted using Wimdows.net NntpNews Component -

    Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
  • John Bailo

    #2
    Re: asp.net/JavaScript

    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.



    DotNetJunkies User wrote:
    [color=blue]
    > 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
    >
    > ---
    > Posted using Wimdows.net NntpNews Component -
    >
    > Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup
    > engine supports Post Alerts, Ratings, and Searching.[/color]

    --
    W '04 <:> Open

    Comment

    • John Bailo

      #3
      Re: asp.net/JavaScript


      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 ... )

      Masuki dunia hiburan digital premium bersama RRQ88. Hadir dengan teknologi modern, akses instan, desain elegan, dan pengalaman online yang nyaman kapan saja.




      John Bailo wrote:
      [color=blue]
      > You might want to consider a lighter alternative:
      >
      > DotNetJunkies User wrote:
      >[color=green]
      >> 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[/color][/color]

      --
      W '04 <:> Open

      Comment

      Working...