Manual PostBack with user control

M

Mark

hi,

i have a user control that generates a table with a url in each cell.
when the url in the cell is clicked i'd like it post information back
to same control. i'm not sure how to do this. i've looked at the
javascript __do_postback method, but i'm not sure how to do this and
keep the Request Params.

Thanks for any help,

Code:

output+="\t\n<td><a href=\"BookingsDisplay.aspx?Date="+Booking_date+"&Room="+arrayRooms[col-2].ToString()+"&Period="+row+"\">Book
Room</a></td>";

Control:

<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="ShowBookings.ascx.cs"
Inherits="IceSky.Modules.RoomBooking.ShowBookings"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<table id="ShowBookings" border="1">
<%# output %>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top