How to restrict the user for "drag and drop" text from the form to textbox

i have a textBox which is used to enter only numbers, ok

i used a javascript to restrict to enter only numbers

but the user can drag and drop the text from the form (either textbox name, label name...etc) to that textbox

now i want to restrict the user to drag and drop the text.....

its very urgent, please help me

With Regards

 

 

 

 

0
satisha_n
3/15/2006 5:36:22 AM
asp.net.client-side 24353 articles. 2 followers. Follow

1 Replies
528 Views

Similar Articles

[PageSpeed] 9

Hi,

preventing drag & drop or copy & paste would only cause the enduser to get unsatisfied, if at all possible to do so. Actually it's up to you to prevent unallowed content to be put in a textbox. You can use the validation controls for this.

Grz, Kris.


Read my blog. Handy Firefox plugins for web developers.


Workaround for non working Mark as answer buttons.
0
XIII
3/15/2006 5:44:05 AM
Reply:

Similar Artilces:

Request.Form["Label1.Text"]; and ((TextBox)PreviousPage.FindControl("TextBox1")).Text;
Hi I am using request.form[]; to retrive Default.aspx  data in Welcome.aspx page, It works better.But when I am trying to retrive the same data of Welcome.aspx page in the ChangePassword.aspx  page using request.from[]; I am getting blank output, Here is the snippet using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.OleDb;...

HttpContext.Current.Session["xx"]=textbox.text and Session.Add("ss",textbox.text)
hi,what is the main difference between HttpContext.Current.Session["xx"]=textbox.text and Session.Add("ss",textbox.text) .i have to use session value in html tagNew In .NET World The Add method actually defers to the Item methodPublic Sub Add(ByVal name As String, ByVal value As Object)      Me._container.Item(name) = valueEnd Sub So setting an Item to a value is slightly more efficient than using Add as it skips the extra function call.Mike Banavige~~~~~~~~~~~~Need a site code sample in a different language? Try converting it with: ...

would like to create script which check if login.Text (from textbox "login") equals "szmitek" and passwod.Text equals "password"
I would like to create script which check if login.Text (from textbox "login") equals "szmitek" and passwod.Text equals "password". I have done it in this way: protected static void Main(string[] args) { string clogin = "szmitek"; string cpassword = "password"; } protected void SubmitBtn_Click(object sender, EventArgs e) { if (HttpUtility.HtmlEncode(login.Text) = (clogin)) if (HttpUtility.HtmlEncode(password.Text) = (cpassword)) { Response.Redirect("admin.aspx"); } else { Response.Redirect("fail.aspx"); } else { Response.Redirect("fail.aspx"); } } But it i...

superreview requested: [Bug 130462] "null" or "" is displayed in drop-down search text in URL bar : [Attachment 204198] process URL bar value when user hits DOWN
Andrew Schultz <ajschult@verizon.net> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@bluebottle.com> for superreview: Bug 130462: "null" or "" is displayed in drop-down search text in URL bar https://bugzilla.mozilla.org/show_bug.cgi?id=130462 Attachment 204198: process URL bar value when user hits DOWN https://bugzilla.mozilla.org/attachment.cgi?id=204198&action=edit ------- Additional Comments from Andrew Schultz <ajschult@verizon.net> I had a working patch to invoke processInput from onLocationChange, but this is a lot simpler. ...

superreview granted: [Bug 130462] "null" or "" is displayed in drop-down search text in URL bar : [Attachment 204198] process URL bar value when user hits DOWN
neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@bluebottle.com> has granted Andrew Schultz <ajschult@verizon.net>'s request for superreview: Bug 130462: "null" or "" is displayed in drop-down search text in URL bar https://bugzilla.mozilla.org/show_bug.cgi?id=130462 Attachment 204198: process URL bar value when user hits DOWN https://bugzilla.mozilla.org/attachment.cgi?id=204198&action=edit ------- Additional Comments from neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@bluebottle.com> I like this. ...

How to insert a row of data from "Textbox form" into a "Gridview"
Hi friends, I searched google also, but really couldnt find a solution to my problem. I got a gridview named PersonGridView which lists the datas that are stored in one the table of my database. Selecting, Updating and Deleting properties of my gridview works successfully. But I couldnt add the last property: INSERT For this, I coded nice input form made of Textboxes and Labels like below: .   . <tr> <td><asp:Label ID="Label1" runat="server" Text="Name" Font-Names="Verdana" Font-Size="Small" Height=&q...

"Open", "Open in new window", "Open in new tab" are greyed-out after drag&drop operation
Name: Dmitriy Email: dadotivanovathotmaildotcom Product: Firefox Release Candidate Summary: "Open", "Open in new window", "Open in new tab" are greyed-out after drag&drop operation Comments: Steps to Reproduce: 1. Drag&drop a bookmark from the Bookmarks Menu or Bookmarks Toolbar to the Tab bar. 2. Right-click on any bookmark (from the same folder, if darged from Menu, or from the visible part of Bookmarks Toolbar) Result: "Open", "Open in new window", "Open in new tab" are greyed-out Browser Details: Moz...

How to handle "Node select" event at client side for "TreeView" ?
Hi, I need to handle "TreeView" "Node select" event at client side (using javascript). On sever side ,"OnSelectedNodeChanged" is available.However, I need to handle it at client side as well, so that I can hide something. Is there any wasy , i can do it Thanks, Vijay...

Me.placeholder1.Page.Request.Form.Set("textbox", "test")
hi,   i need to pass some value from the masterpage to a control in the contentplaceholder, i have tryed this and i think thats the way to do it but i get an error: read-only   my code:   Me.placeholder1.Page.Request.Form.Set("textbox", "test")-ande--rap-***.net--ande.somee.com-- Request.Form is a collection of the values that were POST:ed to the page, and it's read only, since it's too late to change what was posted.Dim textbox as TextBox=TryCast(Me.placeholder1.FindControl("textbox"),TextBox)If Not textbox is Nothing Then &...

pls help: how to get client-side HTML "text field" value from a server side button
i copy some javascript from somewhere so user can choose pick up a date from a calendar and display the date onto a HTML text field. I have no knowledge in writing client side script(i.e. write code in html) can i write some code in a server-side button to get the value in the HTML text field??? i tried: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click textbox1.text = document.getElementById("htmltext").value End Sub but "document" is highlighted, and say isn't declar yet. and...

Precedence of "where" ("of", "is", "will")?
Nobody on #perl6 today could answer this one. Is: Str | Int where { $_ } the same as: (Str | Int) where { $_ } or: Str | (Int where { $_ }) ? Followup questions, Mr. President: What kind of operators are "where", "of", "is", and "will"? Is there a reason that S03 doesn't list them? What are their precedence(s)? -- Chip Salzenberg - a.k.a. - <chip@pobox.com> Open Source is not an excuse to write fun code then leave the actual work to others. Chip Salzenberg writes: &...

.ALLCOL("%COLUMN%", " ", ", ", ", ")
Do you know anyway for me to exclude a subset of columns returned by this function. We have two columns (rec_user and rec_datetime) which are in all of our tables, but when generating triggers I want automatically generate a script which does not include those two columns but does include all other columns in that table. Bruce I should add that I am using PD 9.0.0.580. Bruce "Bruce Lamb" <lamb.bruce@mayo.edu> wrote in message news:6HgI315nCHA.155@forums.sybase.com... > Do you know anyway for me to exclude a subset of columns returned by this > function. ...

Formview1.Textbox .text = "text"
hii...how can i get/set the value of Formview1.Textbox ??i tried with this script<Script runat=server> Sub Test(obj As Object, ea As EventArgs)  formview1.box.text = DateTime.Now End Sub</script> but it gives me an Error ! "box" is not a member of "System.Web.UI.WebControls.FormView" ??any idea why??thxkrishi   <Script runat=server> Sub Test(obj As Object, e As EventArgs)Dim tb As TextBox = CType(FormView1.FindControl("TextBox1"), TextBox)  tb.Text = DateTime.Now.ToString() End Sub</script>Fi...

How can I access < input type="hidden" name="objHidden" id="objHidden" > from a .net server side function
Topic says it all..please help!! Right Click the control in the design view and select run as server control. ...

Web resources about - How to restrict the user for "drag and drop" text from the form to textbox - asp.net.client-side

Resources last updated: 12/29/2015 9:41:54 PM