473,511 Members | 10,974 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trying to understand...

I'm trying to understand how to implement logic I
currently have in an ASP application in an ASP.NET
application.

In ASP I have an entry application that draws an html
table for a specified week. The columns are the days for
the week and the rows are activities. The day being
currently modified has textboxes and textareas in each
cell.

Currently, the ASP application uses javascript to iterate
through recordsets returned via traditional ado to create
the necessary tags.

According to my understanding of ASP.NET, it would be
better to move the tag creation logic to a code behind
file instead of using javascript in the page.

My question is:

If I do move the code to a code behind file, how do I
access the buffer containing the code? Using COM I could
just create the object and have the object return the
buffer, but I want to use managed components. It
occurred to me that I could just do all of the page
creation code in the code behind files, but that approach
seems kind of...weird.

Any help would be greatly appreciated!

Paul K
Nov 18 '05 #1
2 1410
One possible solution is to just query the database and bind the result to a
datagrid. The datagrid takes care of the rendering so you don't need any
javascript. To enter information you will need to add an edit button to take
care of editing. You can find a lot of information on this very straight
forward approach at www.dotnet247.com
regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Paul K" <an*******@discussions.microsoft.com> wrote in message
news:0e****************************@phx.gbl...
I'm trying to understand how to implement logic I
currently have in an ASP application in an ASP.NET
application.

In ASP I have an entry application that draws an html
table for a specified week. The columns are the days for
the week and the rows are activities. The day being
currently modified has textboxes and textareas in each
cell.

Currently, the ASP application uses javascript to iterate
through recordsets returned via traditional ado to create
the necessary tags.

According to my understanding of ASP.NET, it would be
better to move the tag creation logic to a code behind
file instead of using javascript in the page.

My question is:

If I do move the code to a code behind file, how do I
access the buffer containing the code? Using COM I could
just create the object and have the object return the
buffer, but I want to use managed components. It
occurred to me that I could just do all of the page
creation code in the code behind files, but that approach
seems kind of...weird.

Any help would be greatly appreciated!

Paul K

Nov 18 '05 #2
Alvin,

I figured out what I needed to do. I didn't realize
at first that I could just call a method in the code
behind file from javascript.

Paul K
-----Original Message-----
One possible solution is to just query the database and bind the result to adatagrid. The datagrid takes care of the rendering so you don't need anyjavascript. To enter information you will need to add an edit button to takecare of editing. You can find a lot of information on this very straightforward approach at www.dotnet247.com
regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Paul K" <an*******@discussions.microsoft.com> wrote in messagenews:0e****************************@phx.gbl...
I'm trying to understand how to implement logic I
currently have in an ASP application in an ASP.NET
application.

In ASP I have an entry application that draws an html
table for a specified week. The columns are the days for the week and the rows are activities. The day being
currently modified has textboxes and textareas in each
cell.

Currently, the ASP application uses javascript to iterate through recordsets returned via traditional ado to create the necessary tags.

According to my understanding of ASP.NET, it would be
better to move the tag creation logic to a code behind
file instead of using javascript in the page.

My question is:

If I do move the code to a code behind file, how do I
access the buffer containing the code? Using COM I could just create the object and have the object return the
buffer, but I want to use managed components. It
occurred to me that I could just do all of the page
creation code in the code behind files, but that approach seems kind of...weird.

Any help would be greatly appreciated!

Paul K

.

Nov 18 '05 #3

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

Similar topics

9
1888
by: Chad Lupkes | last post by:
Here is the code I found: <script language="JavaScript"> <!-- if (parent.frames.length > 0) { parent.location.href = location.href; } --> </script>
2
2686
by: Crimsonwingz | last post by:
Trying again for understanding and comprehension. Simple database. Name, birthday, age. Name and birthday are provided. From a form (yes, I need to do it this way), I would like to click a...
51
2501
by: Richard Hengeveld | last post by:
Hi all, I'm trying to understand how pointers for function parameters work. As I understand it, if you got a function like: void f(int *i) { *i = 0; }
10
1498
by: Tom | last post by:
Hello, I've recently started trying to learn C (for the fun of it!). I have been using Perl and other languages for many years, but they were always very high level, this is giving me quite a...
4
1901
by: Garry Freemyer | last post by:
I'm trying to convert this macro to a c# function but I have a big problem. It's on the LEFT side of an assignment statement and I am extremely flustered over this one because I'm a little rusty...
0
1022
by: Bill Borg | last post by:
Hello all, I've read through the posts out here, mostly get it, but am still trying to understand the relationship among the ticket, the cookie, and their expirations. I understand that the...
13
1294
by: cj | last post by:
Stephany Young provided me with the following code to count threads created by my program. Public Class MyThreadCount Private Shared m_lock As New Object Private Shared m_threadcount As Int32...
17
1498
by: Sam Malone | last post by:
I am trying to get details from a database. I really want to use only native VS.NET managed code "stuff" (just cuz I want to) and avoid any interop stuff. So, I'm trying to do this without using...
3
1271
by: sam | last post by:
I'm trying to better understand the relationship between unmanaged dlls and accessing them from a managed language such as vb.net.... 1-As I understand it, a DLL created in C++ as a win32 dll can...
12
10869
by: thegman | last post by:
Hi all, I'm trying to get list of JavaScript methods/functions in a script file in much the same a good text editor will, the difference being that I need to output it to a file or stdout, or some...
0
7245
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
7427
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...
1
7085
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
5671
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,...
1
5069
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
3227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.