HighTechTalks DotNet Forums  

fill two droplist

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss fill two droplist in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old   
Gaurav Vaish \(EduJini.IN\)
 
Posts: n/a

Default Re: fill two droplist - 05-29-2006 , 05:33 AM






Quote:
Would be able to for an example?
Yes... u just need to be patient for a while.. am travelling.
It's actually simple... but will give u an example.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------




Reply With Quote
  #12  
Old   
Frank Dulk
 
Posts: n/a

Default Re: fill two droplist - 05-29-2006 , 06:34 PM






Everything well, I am going trying to seek something that helps me.

I am in I await .
Thank you.

"Gaurav Vaish (EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com> escreveu
na mensagem news:%23VkdatwgGHA.3496 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Would be able to for an example?

Yes... u just need to be patient for a while.. am travelling.
It's actually simple... but will give u an example.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------





Reply With Quote
  #13  
Old   
Gaurav Vaish \(www.EduJini.IN\)
 
Posts: n/a

Default Re: fill two droplist - 05-30-2006 , 12:07 PM



Frank,

Here's what you can start with...

<input id='box1' type='text' onchange='validateValue(this)'
onkeypress='return checkKey(this, event)' ... />

JavaScript initialization of the text box (for last validated value):
var box1 = getElementById('box1');
box1.validValue = -1; //Initial value

Javascript functions:

function checkKey(sender, e)
{
// Use this if you want to validate each key-press
// Return true if you accept the character typed, false if you don't
want to be accepted
return true;
}

function validateValue(tb)
{
var value = tb.value;
var setVal = tb.validValue; // The last stored valid value
try
{
var intval = int.Parse(value);
if(intval >= -170 && intval <= 170)
{
setVal = intval;
}
} catch { }
tb.validValue = setVal; // This is for internal use
tb.value = setVal; // This is what keeps changing as
user types
}

For exact and advanved javascript, you may like to go to flashy places
like www.dynamicdrive.com etc.

--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------


"Gaurav Vaish (EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com> wrote in
message news:%23VkdatwgGHA.3496 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Quote:
Would be able to for an example?

Yes... u just need to be patient for a while.. am travelling.
It's actually simple... but will give u an example.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------





Reply With Quote
  #14  
Old   
Frank Dulk
 
Posts: n/a

Default Re: fill two droplist - 05-30-2006 , 07:57 PM



Does excuse, but where do I glue that code?
My knowledge is very limited.


"Gaurav Vaish (www.EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com>
escreveu na mensagem news:Of3SYuAhGHA.1520 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Quote:
Frank,

Here's what you can start with...

input id='box1' type='text' onchange='validateValue(this)'
onkeypress='return checkKey(this, event)' ... /

JavaScript initialization of the text box (for last validated value):
var box1 = getElementById('box1');
box1.validValue = -1; //Initial value

Javascript functions:

function checkKey(sender, e)
{
// Use this if you want to validate each key-press
// Return true if you accept the character typed, false if you
don't want to be accepted
return true;
}

function validateValue(tb)
{
var value = tb.value;
var setVal = tb.validValue; // The last stored valid value
try
{
var intval = int.Parse(value);
if(intval >= -170 && intval <= 170)
{
setVal = intval;
}
} catch { }
tb.validValue = setVal; // This is for internal use
tb.value = setVal; // This is what keeps changing as
user types
}

For exact and advanved javascript, you may like to go to flashy places
like www.dynamicdrive.com etc.

--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------


"Gaurav Vaish (EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com> wrote
in message news:%23VkdatwgGHA.3496 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Would be able to for an example?

Yes... u just need to be patient for a while.. am travelling.
It's actually simple... but will give u an example.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------







Reply With Quote
  #15  
Old   
Gaurav Vaish \(www.EduJini.IN\)
 
Posts: n/a

Default Re: fill two droplist - 05-30-2006 , 09:19 PM



Quote:
Does excuse, but where do I glue that code?
My knowledge is very limited.
He he. :-)
This code can be added directly in the ASPX page.
Where you need the ID, use it from the code-behind since it is there that
you have access to the ClientID.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------




Reply With Quote
  #16  
Old   
Frank Dulk
 
Posts: n/a

Default Re: fill two droplist - 05-31-2006 , 07:12 PM



I tried to copy and to glue in the it paginates for testing and gave
mistake.
Excuse, but I didn't get.

"Gaurav Vaish (www.EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com>
escreveu na mensagem news:%23LYL$iFhGHA.4708 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
Quote:
Does excuse, but where do I glue that code?
My knowledge is very limited.

He he. :-)
This code can be added directly in the ASPX page.
Where you need the ID, use it from the code-behind since it is there that
you have access to the ClientID.


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------





Reply With Quote
  #17  
Old   
Gaurav Vaish \(www.EduJini.IN\)
 
Posts: n/a

Default Re: fill two droplist - 06-01-2006 , 02:35 PM



Hi Frank,

Quote:
Excuse, but I didn't get.
Do a thorough study on HTML elements and events.

If you still don't get, mail me (my email is in From header, remove the
"nospam" parts)... but do study thoroughly for at least a couple of days.

That would help you in the long run as well. It's actually very simple
to study than to write a whole specific code for it. :-)


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------




Reply With Quote
  #18  
Old   
Frank Dulk
 
Posts: n/a

Default Re: fill two droplist - 06-01-2006 , 05:46 PM



I am going of the a glance yes. I really need.

But if wants me it orders a small page example I am thanked.


"Gaurav Vaish (www.EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com>
escreveu na mensagem news:u77CqKbhGHA.4404 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
Hi Frank,

Excuse, but I didn't get.

Do a thorough study on HTML elements and events.

If you still don't get, mail me (my email is in From header, remove the
"nospam" parts)... but do study thoroughly for at least a couple of days.

That would help you in the long run as well. It's actually very simple
to study than to write a whole specific code for it. :-)


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------





Reply With Quote
  #19  
Old   
Frank Dulk
 
Posts: n/a

Default Re: fill two droplist - 06-01-2006 , 05:56 PM



I don't have idea of how to work with scripts. A small sample page in vb.net
would be an initial point.


"Gaurav Vaish (www.EduJini.IN)" <gaurav.vaish.nospam (AT) nospam (DOT) gmail.com>
escreveu na mensagem news:u77CqKbhGHA.4404 (AT) TK2MSFTNGP05 (DOT) phx.gbl...
Quote:
Hi Frank,

Excuse, but I didn't get.

Do a thorough study on HTML elements and events.

If you still don't get, mail me (my email is in From header, remove the
"nospam" parts)... but do study thoroughly for at least a couple of days.

That would help you in the long run as well. It's actually very simple
to study than to write a whole specific code for it. :-)


--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------





Reply With Quote
  #20  
Old   
Gaurav Vaish \(www.EduJini.IN\)
 
Posts: n/a

Default Re: fill two droplist - 06-02-2006 , 02:17 AM



Quote:
I don't have idea of how to work with scripts. A small sample page in
vb.net would be an initial point.
I'll try to see if I can manage some time out for the help for you.


--
Happy Hacking,
Gaurav Vaish | http://www.mastergaurav.org
http://www.edujini.in | http://webservices.edujini.in
-------------------




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.