473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Simpler Way to Input Text

Greetings,

I have a site where the users manages a number of items. I've added commands
to create a new item, rename an existing item, copy an existing item, and
delete an existing item.

For each command, I need the user to either enter an item name or confirm
deletion. I'm looking at creating four additional pages that simply have a
prompt and an edit control (or a confirmation button).

Isn't there an easier way? I know that ASP.NET allows in-place editing of
GridView items. Is there a simple way to take that approach rather than
creating four additional pages?

Thanks for any tips!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jun 27 '08 #1
1 926
One way is to use the JavaScript prompt function. See this link for more
details: http://www.htmlgoodies.com/primers/j...le.php/3478471

To use it on an ASP.NET application you will need to write a JavaScript
function that calls the prompt function and stores the user input into an
HtmlHiddenField (a standard <input type="hidden"tag with a runat="server"
attribute), so that you can access the value on the server. Then on your set
the onclick attribute of you command control to call this function. You can
also make the function return false if the user doesn't enter any imput or
enters invalid input so that the postback gets cancelled.

That's IMO the easiest way, it's not the nicest or more professional one. I
would prefer using a floating DHTML popup.

Hope that helps,
Fernando L Rodriguez, MCP

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:e9****************@TK2MSFTNGP05.phx.gbl...
Greetings,

I have a site where the users manages a number of items. I've added
commands to create a new item, rename an existing item, copy an existing
item, and delete an existing item.

For each command, I need the user to either enter an item name or confirm
deletion. I'm looking at creating four additional pages that simply have a
prompt and an edit control (or a confirmation button).

Isn't there an easier way? I know that ASP.NET allows in-place editing of
GridView items. Is there a simple way to take that approach rather than
creating four additional pages?

Thanks for any tips!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gotcha | last post by:
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change...
3
by: david | last post by:
HI! Im trying to make "HTML form" into automatic. 1. If I get 18 numbers like: A B C D E F . . . . 2. How can I put those 18 numbers automatically into 6 numbers format like: A B C D E F
2
by: not | last post by:
Hello All, I am trying to develop a relatively simple self-quiz form in javascript, but I'm having no luck getting it to work. What I am looking for is a script that allow the user to select...
12
by: Susan Cranford | last post by:
Please forgive, I have looked at so much info I can't figure out how to put it together even though I know it must be fairly simple. I have an array of input text boxes (txtDOBn) where n is...
20
by: Fred Hebert | last post by:
I am trying to learn VC.NET and convert some Borland C++ applications. The syntax differences are killing me... Is there an easy way to convert a hex string, entered by the user, to a binary...
5
by: Alex Nitulescu | last post by:
Hi. Because I'm a beginner in creating controls, I spent more than two *&^#$ hours to create this "login" as a custom control and to make it work properly: ...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
25
by: tmallen | last post by:
I'm parsing some text files, and I want to strip blank lines in the process. Is there a simpler way to do this than what I have here? lines = filter(lambda line: len(line.strip()) 0, lines) ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.