Click here to Skip to main content
15,921,793 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to "post " form variable to another windows ? Pin
enjoycrack6-Oct-05 10:21
enjoycrack6-Oct-05 10:21 
AnswerRe: How to "post " form variable to another windows ? Pin
Gavin Jeffrey6-Oct-05 23:42
Gavin Jeffrey6-Oct-05 23:42 
AnswerRe: How to "post " form variable to another windows ? Pin
Guffa8-Oct-05 1:07
Guffa8-Oct-05 1:07 
QuestionJavascript Debugging Pin
hung_ngole5-Oct-05 15:37
hung_ngole5-Oct-05 15:37 
AnswerRe: Javascript Debugging Pin
minhpc_bk5-Oct-05 16:13
minhpc_bk5-Oct-05 16:13 
GeneralRe: Javascript Debugging Pin
hung_ngole5-Oct-05 18:37
hung_ngole5-Oct-05 18:37 
GeneralRe: Javascript Debugging Pin
minhpc_bk5-Oct-05 19:05
minhpc_bk5-Oct-05 19:05 
QuestionThere must be a better way Pin
wpcolleen5-Oct-05 0:36
wpcolleen5-Oct-05 0:36 
I have a numeric keypad on a panel and the number keys are pressed it populates the field that currently has focus. I think that I have done this in a rather clunky way, but can't think of anything else - can anyone help?

I store focus in a textbox field that will be hidden away.
In the pageload id do the following:

TextBox1.Attributes.Add("onFocus", "UpdateText('TextBox1','textBoxFocus')");
TextBox2.Attributes.Add("onFocus", "UpdateText('TextBox2','textBoxFocus')");

The aspx file is:-

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>





<title>Untitled Page





<asp:textbox id="TextBox1" runat="server"><asp:textbox id="textBoxFocus"
="" runat="server">

<asp:textbox id="TextBox2" runat="server" textmode="Password">







  

 <asp:panel id="Panel1" runat="server" height="154px" width="185px" cssclass="panel">

















function numClicked(elem) {
try {
if (document.getElementById("textBoxFocus").value == "TextBox1")
if (document.getElementById("TextBox1").value.length < document.getElementById("TextBox1").getAttribute('maxlength'))
document.getElementById("TextBox1").value+=elem.value;
if (document.getElementById("textBoxFocus").value == "TextBox2")
if (document.getElementById("TextBox2").value.length < document.getElementById("TextBox2").getAttribute('maxlength'))
document.getElementById("TextBox2").value+=elem.value;
}

catch(e)
{
response.write(e);
}
}
function UpdateText(x, TxtCntrl2)
{
document.getElementById(TxtCntrl2).value = x;
}







Clueless
QuestionPrventing Some Html Tags being searched Pin
idreesbadshah4-Oct-05 21:35
idreesbadshah4-Oct-05 21:35 
QuestionError occur Pin
Chiari4-Oct-05 19:54
Chiari4-Oct-05 19:54 
AnswerRe: Error occur Pin
minhpc_bk4-Oct-05 22:46
minhpc_bk4-Oct-05 22:46 
GeneralRe: Error occur Pin
Chiari4-Oct-05 22:54
Chiari4-Oct-05 22:54 
QuestionHow to Display an empty String for DBNull Date Fields values in a GridView Pin
oneworld20024-Oct-05 8:08
oneworld20024-Oct-05 8:08 
Questioni need help Pin
ashishdubey19814-Oct-05 7:45
ashishdubey19814-Oct-05 7:45 
AnswerRe: i need help Pin
Vasudevan Deepak Kumar7-Oct-05 2:55
Vasudevan Deepak Kumar7-Oct-05 2:55 
Questionautopostback in &lt;iFrame&gt; Pin
Member 22985333-Oct-05 19:44
Member 22985333-Oct-05 19:44 
Questionusing iFrame to avoid flickering Pin
s091a3-Oct-05 15:10
s091a3-Oct-05 15:10 
AnswerRe: using iFrame to avoid flickering Pin
Dwane Wilters3-Oct-05 23:53
Dwane Wilters3-Oct-05 23:53 
QuestionRe: using iFrame to avoid flickering Pin
s091a4-Oct-05 8:08
s091a4-Oct-05 8:08 
QuestionHow to hide scrollbar in &lt;select&gt; box? Pin
bin_bin13-Oct-05 12:56
bin_bin13-Oct-05 12:56 
QuestionSecure data Pin
mtone3-Oct-05 4:47
mtone3-Oct-05 4:47 
QuestionHTML &lt;td&gt; and &lt;a&gt; Tag Pin
idreesbadshah2-Oct-05 23:20
idreesbadshah2-Oct-05 23:20 
AnswerRe: HTML &lt;td&gt; and &lt;a&gt; Tag Pin
Vasudevan Deepak Kumar3-Oct-05 2:15
Vasudevan Deepak Kumar3-Oct-05 2:15 
QuestionHTML ? Pin
hung_ngole2-Oct-05 19:38
hung_ngole2-Oct-05 19:38 
AnswerRe: HTML ? Pin
Vasudevan Deepak Kumar2-Oct-05 20:14
Vasudevan Deepak Kumar2-Oct-05 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.