CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 AutoPostBack=true

Print topic Send  topic

Author Message
rready1

Posts: 7
Posted: 11/04/2004, 9:09 AM

How do you force an autopostback=true on a search box on a form? I'am prefilling the searchbox with an application variable then I need it to do a postback and filter my grid with the resutls, it works exept I have to click the submit button on the search form after the page loads.
_________________
Ron Ready
View profile  Send private message
rready1

Posts: 7
Posted: 11/04/2004, 9:09 AM

Oh! btw the search box is a listbox looking up values in a static user file.
_________________
Ron Ready
View profile  Send private message
Tuong Do
Posted: 11/04/2004, 2:24 PM

If it a radio button I will do an onclick event
onclick="document.YOURFORM.YourSubmitButton.click();"
eg
onclick="document.EMPLOYERSearch.DoSearch.click();"

If it is a list box I will do an onchange event
onchange="document.YOURFORM.YourSubmitButton.click();"



"rready1" <rready1@forum.codecharge> wrote in message
news:8418a623f38beb@news.codecharge.com...
> How do you force an autopostback=true on a search box on a form? I'am
> prefilling
> the searchbox with an application variable then I need it to do a postback
> and
> filter my grid with the resutls, it works exept I have to click the submit
> button on the search form after the page loads.
> _________________
> Ron Ready
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

rready1

Posts: 7
Posted: 11/05/2004, 5:06 AM

What I'm really trying to do is populate a search field on a form that is my default for my web site. This field is username and when a client comes into the web site it will automatically filter to the user name because I'm populating the search field user name with the login value of Application("UserLoggedIn") = DBUtility.UserLogin This works ok but when the page is opened the value is not there until I press the F5 button, but still I have to click the submit button before the lookup will work.
Any Ideas???
_________________
Ron Ready
View profile  Send private message
Tuong Do
Posted: 11/07/2004, 2:14 PM

Make the grid where parrameter
(Use default value if parameter is empty)
DBUtility.UserLogin


"rready1" <rready1@forum.codecharge> wrote in message
news:8418a623f38beb@news.codecharge.com...
> How do you force an autopostback=true on a search box on a form? I'am
> prefilling
> the searchbox with an application variable then I need it to do a postback
> and
> filter my grid with the resutls, it works exept I have to click the submit
> button on the search form after the page loads.
> _________________
> Ron Ready
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

hudson
Posted: 07/05/2005, 9:35 PM

In my program
I set the TextBox
ID=txtName
text =Name
Autopostback=true
here I have a problem when I was run the program and when I Click this textbox that the form is not in the possition .
what to do.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.