|
|
Hi,
I have a control where I calculate the height property from javascript and set that accordingly. My problem is that the control is embedded in a updatepanel which updates every second. On updating, the default height value of the control is used.
How do I make the height value calculated from javascript persistent so that asp.net uses it on postback.
Thanks
Mike
|
|
|
|
|
There are several ways you can handle this. Let me give you two sets
1. When you calculate the height of control, hold to the value in hidden field. Then on post back after you done what ever you need to do, set the control height based on the hidden field value. This will always match to your last calculation.
2. You can use Sys.WebForms.EndRequestEventArgs . This event will get fired at the end of updatepanel successful update. There you can set the control size. see here[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
just simple n easy make your height expression static.
bye
|
|
|
|
|
i get this error because my web application uses a web service , the problem is my web application cannot find the web service.as i know the path to web service is stored in the web.config in web application,isn't it , if not what is the solution for my problem
|
|
|
|
|
Is the webservice path provided is correct?
|
|
|
|
|
as i know no, because i tested in the localhost and then i hosted it
|
|
|
|
|
prasadbuddhika wrote: the problem is my web application cannot find the web service.
What else can I say. Make sure the path is correct.
prasadbuddhika wrote: as i know the path to web service is stored in the web.config in web application,isn't it ,
What do you mean it is stored in web.config? There is nothing that prevents you from storing it in web.config, in fact it may be good idea as it will be very easy to change it.
prasadbuddhika wrote: if not what is the solution for my problem
The solution is to provide the correct url to your web service. Where you want to set is up to you.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
tahnx, when i create the web reference using the IDE it writes to the web.config (a key/value pair)the url, then do i have to explicitly say
System.Configuration.ConfigurationManager.AppSettings["myServiceUrl"];
or does it takes it automatially
|
|
|
|
|
this [^] should help.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
i hosted my web site and when i enter the url it shows the default page,not the index page , how can i fix it to show the index page when url is typed as default
|
|
|
|
|
Goto IIS settings(inetmgr ) and move the index page to the top of default documents list.
|
|
|
|
|
thnx it solved my problem
|
|
|
|
|
Dear Guys,
Actually In my project we use vb language in asp pages and i use a button for login...
but i don't know how i do a coding on that button while user logout from that buttonand that button change into login button....
Give a suggestions plzzzzz as soon as possible...
|
|
|
|
|
Nitinpro wrote: but i don't know how i do a coding on that button while user logout from that buttonand that button change into login button..
This very basic stuff and can be done if you have a good book. Please get a good book and work with it. Come back with specific questions.
|
|
|
|
|
that will cost you One Lakh Crore
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
|
maybe he is a BOT (dont want to read books )
|
|
|
|
|
Hi,
Is it possible to customize Microsoft Report Viewer control?
I need to change text of 'View Report' Button and change the width and position of parameters section.
Best wishes
|
|
|
|
|
mehrdadc48 wrote: Is it possible to customize Microsoft Report Viewer control?
No idea. I never did any work with it. why don't you RTFM[^]
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hi all,
Can I open new page from current page but not in specific event, this page will be opened according to variable value.
Please help me
Thanks for all
|
|
|
|
|
rmedo wrote: Can I open new page from current page
Yes.
rmedo wrote: this page will be opened according to variable value.
Can you explain more in details your requrement?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Thanks for your response
My new page will be open from external dll, i sent current page as object to that dll and i want to open new page if the value of variable in the dll come to specific value, i mean while dll proccesing its functions not after finishing them
|
|
|
|
|
rmedo wrote: My new page will be open from external dll, i sent current page as object to that dll and i want to open new page if the value of variable in the dll come to specific value
You can't. This is not how ASP.NET works. You need to consider changing application design. Let the external dll return some value indicating success or failure and redirect to the page depending on that.
|
|
|
|
|
why? it does not make a sense. What if your variable changes thousand times, you still want to open new page each time?
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|