473,462 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CAN YOU PLEASE HELP ME OUT W/ My FORM REFRESH PROBLEM???

Hi guys i'm back again!!
i'm having a small problem with refreshing my form after saving data
in my database! here's what i'm trying to do:
* In my UpdateDB.asp form i display my database records and the user
can make changes on whatever record he wants;
* after he'll have to save changes by hitting the save button on the
form;
* when i receive the "save" action, i update the database; set a
session variable that i'll use later to true ( Session("UpdateDB")=
TRUE) and DISABLE the Save Button.
*once i'm done with it i reset my session variable to false (
Session("UpdateDB")= FALSE); and WOULD LIKE to "ENABLE" the save
button; but i can't.

Everything works just fine but i can't "ENABLE" my save button???? how
can i refresh the page and get back the save button ?? i thought that
after resetting my session variable to false would help me but i don't
know how to use it??

Can you please help me with it???

Thanks!
Jul 19 '05 #1
2 3737
Could you post some code.
"HolaGoogle" <ho*****@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
Hi guys i'm back again!!
i'm having a small problem with refreshing my form after saving data
in my database! here's what i'm trying to do:
* In my UpdateDB.asp form i display my database records and the user
can make changes on whatever record he wants;
* after he'll have to save changes by hitting the save button on the
form;
* when i receive the "save" action, i update the database; set a
session variable that i'll use later to true ( Session("UpdateDB")=
TRUE) and DISABLE the Save Button.
*once i'm done with it i reset my session variable to false (
Session("UpdateDB")= FALSE); and WOULD LIKE to "ENABLE" the save
button; but i can't.

Everything works just fine but i can't "ENABLE" my save button???? how
can i refresh the page and get back the save button ?? i thought that
after resetting my session variable to false would help me but i don't
know how to use it??

Can you please help me with it???

Thanks!

Jul 19 '05 #2
You need to put a bit of code in to alter the Save button's disabled
property on the load event of the page such as...

<script type="text/javascript">
function initPage() {

document.form1.cmdSave.disabled="<%=LCase(Not(Sess ion("UpdateDB")))%>
}
</script>

<body onLoad="initPage();">

If you get any probs with type Just alter Session("UpdateDB") to
CStr(CBool(Session("UpdateDB")))

Make sense?

Peter.

"Jai Aggarwal" <do************************@youknow.com> wrote in message
news:aC********************@news.easynews.com...
Could you post some code.
"HolaGoogle" <ho*****@yahoo.com> wrote in message
news:cd**************************@posting.google.c om...
Hi guys i'm back again!!
i'm having a small problem with refreshing my form after saving data
in my database! here's what i'm trying to do:
* In my UpdateDB.asp form i display my database records and the user
can make changes on whatever record he wants;
* after he'll have to save changes by hitting the save button on the
form;
* when i receive the "save" action, i update the database; set a
session variable that i'll use later to true ( Session("UpdateDB")=
TRUE) and DISABLE the Save Button.
*once i'm done with it i reset my session variable to false (
Session("UpdateDB")= FALSE); and WOULD LIKE to "ENABLE" the save
button; but i can't.

Everything works just fine but i can't "ENABLE" my save button???? how
can i refresh the page and get back the save button ?? i thought that
after resetting my session variable to false would help me but i don't
know how to use it??

Can you please help me with it???

Thanks!


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Oliphant | last post by:
I now have graphics being drawn in the Paint event of my form (yeah, and it's very cool). Problem was that it only updated any changes to these graphics when Paint was called. So, I then made it...
17
by: Jim Little | last post by:
Hello, I'm driving myself crazy either because I'm missing something about ASP.NET, or what I'm trying to do simply can't be done. First, I am not using session variables to track state. My...
8
by: Nathan Sokalski | last post by:
I have a form that submits data to a database. If I click the browser's refresh button after submitting the form once, the form is submitted a second time. How can I avoid this problem? Thanks. --...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
7
by: Mat | last post by:
I am developping multi-user windows application. i use Access database. user edit, add and delete data from database. Request: when an item is deleted ,added or modified by an user, all others...
5
by: jobi | last post by:
Hi, I'm trying to develop this vb.net application which gathers info. When I start the gathering process, I refresh text-fields in the form to see progress and to see where it gets. This works...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
0
by: Niuh | last post by:
We've been using the following line of code in our VB.NET apps to refresh our Web forms that are pulling real-time data from a SQL database: Response.AppendHeader("Refresh", "10") But when this...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.