Click here to Skip to main content
15,913,140 members
Home / Discussions / Web Development
   

Web Development

 
QuestionError while calling Web Service Pin
Sathiyaraj Ganesan17-Jul-06 22:45
Sathiyaraj Ganesan17-Jul-06 22:45 
AnswerRe: Error while calling Web Service Pin
Brent Lamborn19-Jul-06 5:30
Brent Lamborn19-Jul-06 5:30 
Questionproblem JS code on menu Pin
campbells17-Jul-06 19:07
campbells17-Jul-06 19:07 
AnswerRe: problem JS code on menu Pin
alexey N17-Jul-06 19:53
alexey N17-Jul-06 19:53 
GeneralRe: problem JS code on menu Pin
campbells17-Jul-06 20:21
campbells17-Jul-06 20:21 
Questionhow to format in regular expression tin no? Pin
uscodeproject17-Jul-06 10:00
uscodeproject17-Jul-06 10:00 
AnswerRe: how to format in regular expression tin no? Pin
minhpc_bk17-Jul-06 15:51
minhpc_bk17-Jul-06 15:51 
Questionajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah Pin
uscodeproject17-Jul-06 9:45
uscodeproject17-Jul-06 9:45 
this is the code : the aim is almost like an auto complete
when tin no exists in db
it automatically loads the name of establishment in text box
of establishment and make it readonly else allow input.

in add mode i don't have a problem since the tin no textbox
initially has no value but when i am in
edit mode where i retrieved from the db the tin no to
tin no text box. what happens is when i type like another
existing tin no it works but when i use last tin no that was
retrieved from db that's when the error occurs

any ideas?
---------------------------------------------
<form id="form1" method="post" runat="server">
<script type="text/javascript">
var Cbo = new CallBackObject();
Cbo.OnComplete = Cbo_Complete;
Cbo.OnError = Cbo_Error;

function CheckTin(strTin)
{
//var msg = document.getElementById('lblNameOfEstablishmentValue');
//var msgText = document.getElementById('txtEstablishment').value;

if (strTin.length > 0)
{
Cbo.DoCallBack('txtTIN', '');
}
else
{
Cbo.AbortCallBack();
msg.innerHTML = '';
//msgText.value = '';
//document.getElementById('txtEstablishment').value = '';
}
}

function Cbo_Complete(responseText, responseXML)
{
//var msg = document.getElementById('lblNameOfEstablishmentValue');
//var msgText = document.getElementById('txtEstablishment').value;

if( responseText.length == 0)
{
//msg.innerHTML = '';
//msgText.value = '';
document.getElementById('txtEstablishment').value = '';
document.getElementById('txtEstablishment').readonly=true;
}
else
{
//msg.innerHTML = responseText;
//msgText.value = responseText;
document.getElementById('txtEstablishment').value = responseText;
document.getElementById('txtEstablishment').readonly=false;

}
}

function Cbo_Error(status, statusText, responseText)
{
//alert(responseText);
document.getElementById('lblError').innerHTML = responseText;
}
</script>
<table>
<tr>
<td>
Tin:<asp:textbox id="txtTIN" tabIndex="6" runat="server" MaxLength="12" onkeyup="CheckTin(this.value);" OnTextChanged="txtTIN_TextChanged"></asp:textbox>
</td>
</tr>
<tr>
<td>
Establisment:<asp:textbox id="txtEstablishment" tabIndex="8" runat="server" Width="100%" MaxLength="100"></asp:textbox>
</td>
</tr>
</table>
</form>
-------------------------------

thanks

AnswerRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah Pin
Dustin Metzgar17-Jul-06 10:22
Dustin Metzgar17-Jul-06 10:22 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah Pin
uscodeproject18-Jul-06 6:43
uscodeproject18-Jul-06 6:43 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah Pin
uscodeproject18-Jul-06 7:25
uscodeproject18-Jul-06 7:25 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah [modified] Pin
uscodeproject18-Jul-06 6:50
uscodeproject18-Jul-06 6:50 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah Pin
uscodeproject18-Jul-06 8:06
uscodeproject18-Jul-06 8:06 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah Pin
Dustin Metzgar18-Jul-06 8:12
Dustin Metzgar18-Jul-06 8:12 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah [modified] Pin
uscodeproject18-Jul-06 8:20
uscodeproject18-Jul-06 8:20 
GeneralRe: ajax in asp.net 1.1: im getting error this is a potential malicius blah blah validateRequest blah blah [modified] Pin
uscodeproject18-Jul-06 9:58
uscodeproject18-Jul-06 9:58 
QuestionInternational character problems in access mdb file Pin
JUNEYT17-Jul-06 8:51
JUNEYT17-Jul-06 8:51 
Questionabt extension .ashx Pin
salimssss16-Jul-06 23:03
salimssss16-Jul-06 23:03 
AnswerRe: abt extension .ashx Pin
minhpc_bk17-Jul-06 15:51
minhpc_bk17-Jul-06 15:51 
QuestionHow can I treat button click in Visual Studio 2005? Help, please! Pin
HilSoft16-Jul-06 21:22
HilSoft16-Jul-06 21:22 
AnswerRe: How can I treat button click in Visual Studio 2005? Help, please! Pin
Paddy Boyd16-Jul-06 23:02
Paddy Boyd16-Jul-06 23:02 
AnswerRe: How can I treat button click in Visual Studio 2005? Help, please! Pin
HilSoft17-Jul-06 0:29
HilSoft17-Jul-06 0:29 
GeneralRe: How can I treat button click in Visual Studio 2005? Help, please! Pin
Paddy Boyd17-Jul-06 0:31
Paddy Boyd17-Jul-06 0:31 
GeneralRe: How can I treat button click in Visual Studio 2005? Help, please! Pin
HilSoft17-Jul-06 1:42
HilSoft17-Jul-06 1:42 
Questionpassing variable which is declared in SQL statement Pin
kooljug15-Jul-06 23:23
kooljug15-Jul-06 23:23 

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.