PC Review


Reply
Thread Tools Rate Thread

asp.net/JavaScript

 
 
DotNetJunkies User
Guest
Posts: n/a
 
      6th May 2004
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.
 
Reply With Quote
 
 
 
 
John Bailo
Guest
Posts: n/a
 
      7th May 2004
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:

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


--
W '04 <:> Open
 
Reply With Quote
 
John Bailo
Guest
Posts: n/a
 
      7th May 2004

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



John Bailo wrote:

> You might want to consider a lighter alternative:
>
> DotNetJunkies User wrote:
>
>> 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


--
W '04 <:> Open
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Generated JavaScript vs. Manually Created JavaScript: Which one comes first? Nathan Sokalski Microsoft ASP .NET 4 8th Nov 2007 07:24 AM
C# and javascript? Or C# and Javascript + IE?! I really dont know... porter Microsoft C# .NET 1 5th Oct 2007 08:31 PM
How to fire Javascript events from a .NET winforms user control back to Javascript in IE jonathan.beckett Microsoft Dot NET 0 13th Jul 2006 02:51 PM
application/x-javascript vs. text/javascript. Peter Rilling Microsoft ASP .NET 1 14th Mar 2004 03:41 PM
Javascript:void(null); or Javascript:; -problem clicking certain js action items chribjor Windows XP Internet Explorer 1 21st Jan 2004 11:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:33 AM.