Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > CheckboxList PreRender

Reply
Thread Tools

CheckboxList PreRender

 
 
Nehal Shah
Guest
Posts: n/a
 
      11-03-2003
The PreRender event on a CheckboxList never seems to fire. Anyone else
having this problem? Is this a bug or am I doing something wrong?

Thanks,
Nehal


 
Reply With Quote
 
 
 
 
Jacob Yang [MSFT]
Guest
Posts: n/a
 
      11-04-2003
Hi Nehal,

Thank you for posting to the MSDN newsgroups. We are acknowledging your
post and you should receive response from the community within 2 business
days of your post.

If you have any concerns, please feel free to let us know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! 每 www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

 
Reply With Quote
 
 
 
 
Jacob Yang [MSFT]
Guest
Posts: n/a
 
      11-05-2003
Hi Nehal,

As I understand, we can reproduce the problem with the following steps.

1. Create a default web application in VS.NET 2003.

2. Put a Button control and a CheckBoxList control on the webform.

3. Add the event handlers for the Button control and the CheckBoxList
control.
...
private void CheckBoxList1_PreRender(object sender, System.EventArgs e)
{
Response.Write("CheckBoxList1_PreRender");
}

private void Button1_PreRender(object sender, System.EventArgs e)
{
Response.Write("Button1_PreRender");
}
...
4. Build and Run the application. The PreRender of the CheckBoxList control
does not fire.

I am researching on this issue now. If I have misunderstood your concern,
please feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! 每 www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

 
Reply With Quote
 
Nehal Shah
Guest
Posts: n/a
 
      11-05-2003
Yes, those were the steps I followed although I used a textbox instead of a
button.

"Jacob Yang [MSFT]" <> wrote in message
news:...
> Hi Nehal,
>
> As I understand, we can reproduce the problem with the following steps.
>
> 1. Create a default web application in VS.NET 2003.
>
> 2. Put a Button control and a CheckBoxList control on the webform.
>
> 3. Add the event handlers for the Button control and the CheckBoxList
> control.
> ..
> private void CheckBoxList1_PreRender(object sender, System.EventArgs e)
> {
> Response.Write("CheckBoxList1_PreRender");
> }
>
> private void Button1_PreRender(object sender, System.EventArgs e)
> {
> Response.Write("Button1_PreRender");
> }
> ..
> 4. Build and Run the application. The PreRender of the CheckBoxList

control
> does not fire.
>
> I am researching on this issue now. If I have misunderstood your concern,
> please feel free to let me know.
>
> Best regards,
>
> Jacob Yang
> Microsoft Online Partner Support
> Get Secure! 每 www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>



 
Reply With Quote
 
Jacob Yang [MSFT]
Guest
Posts: n/a
 
      11-06-2003
Hi Nehal,

Thank you for your update.

I have done more research regarding this problem. This issue is a problem
of our product. I am truly sorry for it. I have reported this problem to
the product team. Please pay more attention to the VS.NET new service pack
or version. Thank you for your understanding.

If this issue is very urgent to you, I would highly recommend you contact
Microsoft Product Support Services.

Microsoft support home page: http://support.microsoft.com.
To view support options:
http://support.microsoft.com/default...d=sz;en-us;top.
To submit an online request:
http://support.microsoft.com/default...incidentsubmit.

I hope it helps,

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! 每 www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

 
Reply With Quote
 
Nehal Shah
Guest
Posts: n/a
 
      11-06-2003
Thanks for checking into it. At least I know I'm not doing something wrong.

I figured out a workaround. I overrided the Render method and moved the
code from the PreRender event procedure to it. Of course, I have to call
MyBase.Render afterwards.

"Jacob Yang [MSFT]" <> wrote in message
news...
> Hi Nehal,
>
> Thank you for your update.
>
> I have done more research regarding this problem. This issue is a problem
> of our product. I am truly sorry for it. I have reported this problem to
> the product team. Please pay more attention to the VS.NET new service pack
> or version. Thank you for your understanding.
>
> If this issue is very urgent to you, I would highly recommend you contact
> Microsoft Product Support Services.
>
> Microsoft support home page: http://support.microsoft.com.
> To view support options:
> http://support.microsoft.com/default...d=sz;en-us;top.
> To submit an online request:
> http://support.microsoft.com/default...incidentsubmit.
>
> I hope it helps,
>
> Best regards,
>
> Jacob Yang
> Microsoft Online Partner Support
> Get Secure! 每 www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkboxlist inside Repeater - doesn't fire click event for Checkboxlist JD ASP .Net 5 08-08-2007 11:28 AM
How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList? Patrick.O.Ige ASP .Net 5 06-19-2005 06:11 AM
Control.PreRender Adrijan Josic ASP .Net 1 11-20-2003 09:06 PM
postbacks for controls added at PreRender stage of a page foldface@yahoo.co.uk ASP .Net 3 10-22-2003 08:07 AM
Re: Assigning events in PreRender Simon Storr ASP .Net 0 07-14-2003 10:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57