|
have you checked the ispostback in the load event?
Best Regards,
Apurva Kaushal
|
|
|
|
|
YES i HAVE CHECKED AND MORE OVER I AM NOT CALLING THIS FUNCTION(btn_Export_Click)) ON PAGE LOAD
Regards,
Sivaprasad
|
|
|
|
|
Make sure that autoeventwireup attribute of page directive is set to false
|
|
|
|
|
AutoEventWireUp of the page directive is alreddy set to false..still...
still my issue is not solved
Regards,
Sivaprasad
|
|
|
|
|
|
Hai,
I have a webuser control enriched with some web server controls.In a web form,I have to refer the properties of the controls of webuser control.While I am referring those properties, an error is raising as
'<usercontrolname>.protected dim with events <controlname> as system.web.ui.webcontrols.textbox' is not accessible in this context because it is 'protected'.
Where can I declare the control as public in a web application? and how we can do that?
Any suggestions......please welcome...
-Priya
|
|
|
|
|
U can Refer the controls in the usercontrol
by ((controltype)Page.FindControl("controlId")
((Button)Page.FindControl("btnxxx"))
Regards,
Sivaprasad
|
|
|
|
|
Thanq, but I need to refer the controls of web user control in some other .aspx page. Using Page.FindControl() , we can refer the control in the same page.But, how can we refer it at some other web form?
-Priya
|
|
|
|
|
If you want to use the controls of the usercontrol(ascx file), then you have to make them public.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanq, can u please tell where we can make the controls as public in asp.net 2.0 so that we can use them anywhere in the project???
-Priya
|
|
|
|
|
I haven't worked on 2.0 but you can make them public where they have been declared.
Best Regards,
Apurva Kaushal
|
|
|
|
|
In 1.1, we can view the designer generated code for a web form. But, for 2.0, I didn't find anywhere such automatic generated code for the control declarations.I am new to the 2.0. Anyway, thanks Kaushal.
-Priya
|
|
|
|
|
|
Make a public method in the user control that will modifiy the controls you wish modified.
|
|
|
|
|
I have used the BulletedList control and the output of hyperlinks is in this manner because simple I have put the text value "Create Account - Create user account for login" etc.
Create Account - Create user account for login
Login - Login to your account.
Is it possible to use the bulletedlist and display in this format. Such that only the Create Account is underline (link). Which property at the bulletedlist could help?
Create Account - Create user account for login
Login - Login to your account. Hurry!
If not is there any way such that I can write a simple introduction just next to the hyperlinks with a bulleted list.
thanks in advance. Much appreciated.
|
|
|
|
|
yes what you need to do is to make that button runat=server and give an id.
Best Regards,
Apurva Kaushal
|
|
|
|
|
is this the answer?
thanks in advance. Much appreciated.
|
|
|
|
|
no actually this has been posted prior to your question even. One fellow has posted one question of which i replied with the answer and later he deleted that question so the answer became contextless.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I have added that post, before morning coffe after i wake up everything was clear
StonePit
|
|
|
|
|
Best Regards,
Apurva Kaushal
|
|
|
|
|
How should I set the background colour of the content? Right click at the content does not activate the style window.
Hope it is possible to set the background colour of the content page.
thanks in advance. Much appreciated.
|
|
|
|
|
use Table or div within ContentPlaceHolder to apply any style... u wont apply style directly in ContentPlaceHolder.
Regards,
Jay
|
|
|
|
|
I still cant get it done. Thanks for the suggestion though.
To put matter to rest, I think if I apply white at contentpage is the best suitable colour.
thanks in advance. Much appreciated.
|
|
|
|
|
hi All,
Suppose we the user is download a file through HTTP, and if the download size is more and is taking more time than session timeout, will there be a session timeout event? if user is not doing anything other than download?
|
|
|
|
|