473,804 Members | 3,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Record Update Inside of a Masterpage

I am very new to asp.net (I know asp better) and have hit a road block.

I have a master page that links to a content page. The purpose of the
content page is to edit the database record. I have decided to not use
gridview or details view because I need to do some manipulation of the data
and control the look alittle more.

I have a few textboxes on the contentpage and an update button.
When the page loads the textboxes are loaded with the data from the onload
event.

This is my goal:
When a person edits the data and click on the editbutton an onclick event
would read the textbox and get the changed text then display the changes back
to a label.
(if I can display it back to a label then I can execute the store procedure
to do the actual update)
I have tried:
1.
placing the textboxes inside of a <formtag
but i get a nested form error (I am using a masterpage)

I have also tried:
2.
dim mynewname as string = tbname_tx.text
but that does not get the changed data

2a.
--Is the reason why this is not working because I need a ispostback
statement on the page load event?

Can someone please send me a sample vb code that will read the textboxes and
return the changes values like a request.form would?



Jan 3 '07 #1
1 1173
"Chad T" <Ch***@discussi ons.microsoft.c omwrote in message
news:9D******** *************** ***********@mic rosoft.com...
I have a master page that links to a content page.
In fact, it's the other way round...
This is my goal:
When a person edits the data and click on the editbutton an onclick event
would read the textbox and get the changed text then display the changes
back
to a label.
(if I can display it back to a label then I can execute the store
procedure
to do the actual update)
Why is this necessary? The changed text in the textbox will be retained
during postback - no need to write it to a label...
Is the reason why this is not working because I need a ispostback
statement on the page load event?
Almost certainly but, without seeing your code, it's impossible to tell for
sure...
Can someone please send me a sample vb code that will read the textboxes
and
return the changes values like a request.form would?
Show us your code first...
Jan 3 '07 #2

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

Similar topics

2
6031
by: Mark | last post by:
Hi all, I have a WYSIWYG editor which allows people to insert a form into a page. This information is stored in a database and at run-time is displayed inside a content placeholder (I'm using MasterPages). The problem I am having is that because .NET places a form tag wth runat=server my nested HTML tag posts back to the .NET form instead of the HTML page declared in the action tag of the HTML form.
22
18818
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4. The system is client/server, multiusers based. The MDBs are using record locking. Here is part of the code: Dim wkSpace As Workspace, db As Database Dim rstTrans As DAO.Recordset Set wkSpace = DBEngine.Workspaces(0)
4
3519
by: Noah | last post by:
Hi, I bet the question below has been answered many times before, but I have not found an answer. If someone could point me to one that would be great! I have the following table: num run 1 1
0
3103
by: =?Utf-8?B?Qm9i?= | last post by:
I have a GridView control in page called which is inheriting from a MasterPage. The normal code to export to GridView does not work and gives me an error - "Control of type GridView must be placed inside form tag with runat = server". I understand that this is because my Masterpage has the formtag and not the eventslisting page, but cannot figure a workaround. I have tried overriding VerifyRenderingInServerForm and everything else I can...
1
1666
by: pierre | last post by:
Hi, I have a DataList inside a UserControl, which I use on a MasterPage. My ContentPage lists items which a user can add to his/her shopping basket. Can someone PLEASE let me know how I can "refresh" the datalist, contained within a usercontrol (which is on the MasterPage), from the ContentPage. Thanks in advance, Pierre
7
11603
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi everybody, I'm using a system.timers.timer object like this: Dim aTimer As New System.Timers.Timer() In my page_load event I use this: aTimer.Interval = 5000 aTimer.Enabled = True AddHandler aTimer.Elapsed, AddressOf OnTimedEvent .....
6
3863
by: Sunfire | last post by:
Is there a way you can test what page is loaded from inside a master page? What I need to do is test to see what page is loaded inside the master page and then gray out the root item linked to that page in the Menu control. I.e. I have a root item called home. When a person is on the home page I want it to be disabled. Any way to do this?
1
4615
by: javediq143 | last post by:
Hi All, This is my first post in this forum. I'm developing a CMS for my latest website. This CMS is also in PhP & MySQL. I'm done with the ADD section where the Admin can INSERT new records in Database but I'm stuck in the EDIT. I'm getting 2 problems over here. Below is the description: 1)The FIRST page will list all the records from the table which Admin can EDIT with CHECKBOX for each record to select. He can select one or more than one...
1
4593
by: splendid9 | last post by:
Update panel and masterpage problem i hav a problem with updatepanel on the page. i have 2 update panels on the page which are wortking fine, but there is a display which is on masterpage used by the page which is not displaying as it is partial postback...and i cannot place it in other update panel as it is getting error display from masterpage which i cannot change as it is usde by lot of other pages, anyone hav ny idea how can i get the...
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9588
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7625
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.