473,395 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Databound control does not appear upon entry

When a user logs into my site, a row for order info is inserted into
an MDB table. The next page uses a databound control that references
the quantity in that newly created row. Is it possible the second
event is happening too fast after the first created the row?

The reason I ask is, when I first enter the page the databound control
does not appear. After I do a page refresh it is there.

This is how the field is being displayed:

<asp:FormView ID="fNumOriginals" runat="server"
DataSourceID="AccessDataSource2">
<ItemTemplate>
<asp:textbox ID="tNumOriginals" Width="30" MaxLength="10"
runat="server" cssclass="tbForm" Text='<%# Eval("NumOriginals") %>'>
</asp:textbox>
</ItemTemplate>
</asp:FormView>

Is there a way to make sure this field appears even if the database is
busy or for whatever reason?

Jun 18 '07 #1
1 1109
On Jun 18, 6:29 pm, Dave <onlinef...@gmail.comwrote:
When a user logs into my site, a row for order info is inserted into
an MDB table. The next page uses a databound control that references
the quantity in that newly created row. Is it possible the second
event is happening too fast after the first created the row?

The reason I ask is, when I first enter the page the databound control
does not appear. After I do a page refresh it is there.

This is how the field is being displayed:

<asp:FormView ID="fNumOriginals" runat="server"
DataSourceID="AccessDataSource2">
<ItemTemplate>
<asp:textbox ID="tNumOriginals" Width="30" MaxLength="10"
runat="server" cssclass="tbForm" Text='<%# Eval("NumOriginals") %>'>
</asp:textbox>
</ItemTemplate>
</asp:FormView>

Is there a way to make sure this field appears even if the database is
busy or for whatever reason?
Sorry, my mistake. In the login page I wall doing a
Response.Redirect(...) before calling Conn.Close(); instead of after.
Problem solved.

Jun 19 '07 #2

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

Similar topics

2
by: MLH | last post by:
A form named frmVehicleEntryForm has a number of textbox controls who's OnGotFocus property setting is an expression... =Change2Green() Change2Green() looks something like this... Dim MyControl...
2
by: Michael Wendel | last post by:
Ok. I have been banging my head against the wall trying to figure out how this piece of display logic can be implemented: <% if (DataBinder.Eval(Container.DataItem, "SomeItem") != "SomeValue")...
10
by: Grumpy Aero Guy | last post by:
I teach VB.Net at a local community college. Upon adding a menu control to a form, the menu will not appear on the form upon compiling/running. I am unable to reproduce the behavior on my home...
11
by: Hoku | last post by:
I am using dual monitors on a dual head ATI AGP4x video card. I installed the Nov 11 2005 release of ATI's catalyst control center with Hydravision to manage the dual monitor setup. I recently...
9
by: Jakob Lithner | last post by:
1) I have a DataGridView with edit capability. But in some columns I want to limit the input with a DropDownList. There is no inbuilt column for DropDownLists so I intended to add one myself. I...
5
by: clickon | last post by:
This is driving me nuts, it is such a simply thing to do but i cannot for the life of me work out how you are suposed to do it. I want to update the data in DropDownListB based on what is...
1
by: DJ | last post by:
I have a DropDownList in Visual Web Developer that is databound to a SQL Database. Whenever the web page is opened the DropDownList is automatically filled with the first item in the table. My...
1
by: Owen Blacker | last post by:
I've spent loads of time Googling to try to work this one out and I'm sure it's something obvious. I get an InvalidOperationException reading "Databinding methods such as Eval(), XPath(), and...
55
by: Zytan | last post by:
I see that static is more restricted in C# than in C++. It appears usable only on classes and methods, and data members, but cannot be created within a method itself. Surely this is possible in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.