473,395 Members | 1,442 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.

Clear the Render info & change to different info

I have a form where the user chooses reporting options and when submit is
clicked, I need to present them with dynamically created excel file. In
Classic ASP I would just change the viewing options, but in ASP.NET I'm
using code-behind. Is there a way to clear what is scheduled to be
renedered and write new information into the page render?

OR

Should I Server.Transfer to a different page that renders the correct info?

Andrea
Nov 18 '05 #1
2 1308
Hi Andrea,

You can override the Render event and send back any response you want:

Protected Overrides Sub Render(ByVal writer As
System.Web.UI.HtmlTextWriter)
If (you want the render the page as is) Then
MyBase.Render()
Else
Your rendering code.
End If
End Sub

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Andrea Williams" <an*******@hotmailIHATESPAM.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I have a form where the user chooses reporting options and when submit is
clicked, I need to present them with dynamically created excel file. In
Classic ASP I would just change the viewing options, but in ASP.NET I'm
using code-behind. Is there a way to clear what is scheduled to be
renedered and write new information into the page render?

OR

Should I Server.Transfer to a different page that renders the correct info?
Andrea

Nov 18 '05 #2
I forgot, if you use MyBase.Render() to render as is then include the writer
in the call:

MyBase.Render(writer)

Good luck! Ken.

Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:ud**************@TK2MSFTNGP11.phx.gbl...
Hi Andrea,

You can override the Render event and send back any response you want:

Protected Overrides Sub Render(ByVal writer As
System.Web.UI.HtmlTextWriter)
If (you want the render the page as is) Then
MyBase.Render()
Else
Your rendering code.
End If
End Sub

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Andrea Williams" <an*******@hotmailIHATESPAM.com> wrote in message
news:OL**************@TK2MSFTNGP12.phx.gbl...
I have a form where the user chooses reporting options and when submit is clicked, I need to present them with dynamically created excel file. In
Classic ASP I would just change the viewing options, but in ASP.NET I'm
using code-behind. Is there a way to clear what is scheduled to be
renedered and write new information into the page render?

OR

Should I Server.Transfer to a different page that renders the correct

info?

Andrea


Nov 18 '05 #3

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

Similar topics

2
by: Darren Clark | last post by:
I am trying to work out how to change some values of data during itemdatabound. MSDN states that the ItemDataBound is called BEFORE the render... so any changes do the data SHOULD work.. ...
8
by: Andy Stevenson | last post by:
Hello all, Some help would be appreciated, I'm a little new at this & I've run out of ideas to fix it. This web page: http://www.stevenson-central.com/servos/servos.shtml when
1
by: Kevin R | last post by:
This is one of the weirdest problems I have ever run into. I have had to trim down a bunch of code to give a sample that is more easily readable by those who will view this. Here is the problem:...
19
by: Krishanu Debnath | last post by:
Hello, I have a call to hash_map::clear() function which takes long time. someClass::someFunction() { // typedef hash_map<name_id, uintMp; // Mp p; // assuming proper namespace, hash...
9
by: Jess | last post by:
Hello, I tried to clear a vector "v" using "v.clear()". If "v" contains those objects that are non-built-in (e.g. string), then "clear()" can indeed remove all contents. However, if "v"...
18
by: Marko.Cain.23 | last post by:
Hi, I create a dictionary like this myDict = {} and I add entry like this: myDict = 1 but how can I empty the whole dictionary? Thank you.
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.