473,406 Members | 2,698 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,406 software developers and data experts.

Response.Write ignores the user control.

JT
I'm writing a webshop for my company. I created the user header control
and placed it at the top of my form. I have server controls underneath
(TextBox, Command Button, Dropdownlist) which search for products based
on criteria. I then use "Response.Write" to print the results to an
HTML table underneath everything. (The "Datagrid Control" isn't
customizable enough) When the page returns it prints the HTML table
first and then the header user control at the bottom. How can i get
around this?

I could use "Response.Write" to print the header aswell but that would
defeat the purpose of a user control.

Thanx.

Apr 24 '06 #1
1 1667
> I'm writing a webshop for my company. I created the user header control
and placed it at the top of my form. I have server controls underneath
(TextBox, Command Button, Dropdownlist) which search for products based
on criteria. I then use "Response.Write" to print the results to an
HTML table underneath everything. (The "Datagrid Control" isn't
customizable enough) When the page returns it prints the HTML table
first and then the header user control at the bottom. How can i get
around this?

I could use "Response.Write" to print the header aswell but that would
defeat the purpose of a user control.

Thanx.


Don't mix Respose.Write and "regular asp.net controls". If you want to
output literal text, use an <asp:Literal> where you can set the Text
property.

Hans Kesting
Apr 24 '06 #2

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

Similar topics

0
by: Nick Wright | last post by:
Hi, I have some business logic in a system that I can't change. The business logic returns a recordset containing HTML. I have an ASP.NET web page with two user controls one is a header, the...
3
by: Gav | last post by:
Hi all, I have created a user control and I am using Response.Write in the control to 'write' exactly what I want although it always goes to the top of the page (above <HTML><HEAD> etc). Can I...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
2
by: John Cosmas | last post by:
If I included a UserControl in a form, and them tell it to Response.Write some code, will the resulting client script work after the page is rendered. Let's say that I instructed the User Control...
10
by: George G. | last post by:
Hi there, I am busy writing a new asp.net application and I am reusing some of my existing asp functions and methods in a user control. I need access to session, request and response in some of...
11
by: Russ | last post by:
My web app writes some binary data to a file at the client site via Response.Write and Response.BinaryWrite. This action is accomplished in response to a button click, with C# code behind as...
4
by: Marty U. | last post by:
I have a Session variable I need to check the value of. If it is value a then redirect to some page. I need to implement this in a user control that is on all the relevent pages. I placed the if...
4
by: mtv | last post by:
Hi all, I have a page default.aspx and lots of user controls (Top.ascx, LeftNav.ascx, Page1Content.ascx, Page2Content.ascx...). The default.aspx contains Top.ascx, LeftNav.ascx at design time,...
3
by: Andy | last post by:
I have an ASP.NET webpage that allows a user to upload a file from the client browser. I want to display an animated gif and report on the progress of the upload. The <INPUTtag used for uploading...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.