Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 7th, 2005, 02:21 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default Post Back Required For Drop Down List

Hi Prog,

I Put DropDownList On A WebForm And I Set The PostBack Property To True So I Do PostPack When Value of The Drop DownList Changed

When I change It's Value Using Client Script No PostPack Happen
Is There A way To Call The PostBack Action If I change the DropDownList Using Client Script.




Ahmed Ali
Software Developer
__________________
Ahmed Ali
Senior Software Developer
 
Old March 8th, 2005, 04:12 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Yes you can do it using Client Side also.In OnChange event of DropDownList call this javascript function named FormSubmit()

<script language="javascript">
function FormSubmit()
{
document.frmName.submit();
}
</script>
 
Old March 8th, 2005, 08:18 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

I Still Change The Value Of The DropListList Using Client Script And The Onchange Does Not Fired :(

Ahmed Ali
Software Developer
 
Old March 9th, 2005, 12:13 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Can you post your code?I will try to help you where the problem lies.

 
Old March 14th, 2005, 01:15 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

i have found that i should change the dropdown list value then do submit separately
i was submiting from inside the onchange event

thx Santhi


Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
post back SKhna ASP.NET 2.0 Basics 1 March 10th, 2008 09:23 AM
Drop down list text value not posting back with co binici ASP.NET 2.0 Basics 0 December 12th, 2006 08:38 PM
Post Back rngrmn VB.NET 2002/2003 Basics 2 April 6th, 2006 01:14 PM
Dynamic List Box Post Back Problem rstelma ASP.NET 1.0 and 1.1 Professional 12 March 2nd, 2006 05:55 PM
Retrive values to Drop down list from DB when Back choudhmh Pro VB.NET 2002/2003 0 January 12th, 2005 10:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.