|
Yes, I know that ascx is a control. It was a bit of poor wording on my question to refer to it as a page. The crux of my question was can you call a control from outside of an aspx page via Ajax and I have come to the conclusion that you can not.
I will pursue this further in the ASP.net forum.
Cheers and thanks for your help.
|
|
|
|
|
Hi
i m using AJAX ModalPopupExtender and below is the code for this. i want that when i click on the Ok Button of ModalPopupExtender it should call the Click EVENT which is written in my asp.net source file but it does not do my defined fucntionality. what I have to do for this purpose?
<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<asp:LinkButton ID="LinkButton2" runat="server">Details ...</asp:LinkButton>
<cc1:ModalPopupExtender ID="MPE" runat="server" BackgroundCssClass="modalBackground"
CancelControlID="CancelButton" DropShadow="false" OkControlID="OkButton" OnOkScript="onOk()"
PopupControlID="Panel2" PopupDragHandleControlID="Panel2" TargetControlID="LinkButton2"
X="100" Y="100">
</cc1:ModalPopupExtender>
<asp:Panel ID="Panel2" runat="server" Height="83px" Width="464px">
<asp:TextBox ID="TextBox3" runat="server" BackColor="SteelBlue" BorderColor="MediumBlue"
BorderStyle="Solid" ForeColor="ActiveCaptionText" Height="150px" TextMode="MultiLine"
ValidationGroup="Ok" Width="452px"></asp:TextBox><br />
<asp:Button ID="OkButton" runat="server" Text="Ok" Width="76px" OnClick="OkButton_Click"/>
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
Regards
|
|
|
|
|
<asp:ImageButton ID="imgbtnFromDate" runat="server" enabled="false" ImageUrl="~/Images/SmallCalendar.gif" />
I have this image button .
On click of the radio button which i am getting how can i get this button enabled.
i want to do this through javascripting.
|
|
|
|
|
that is what i am not getting.
|
|
|
|
|
What's the exact problem??
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
through javascripting i want to enable and disabled a image button.
|
|
|
|
|
ritu4321 wrote: through javascripting i want to enable and disabled a image button.
Do you know how to access server controls using Javascript?
"Legacy code" often differs from its suggested alternative by actually working and scaling.
—Bjarne Stroustrup
|
|
|
|
|
First, you need to store the client side Id of this control in javascript as a variable. Then you can use this to call 'getElementById', and finally, you can set it's properties.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i know that all since i have been working in javascripting for long . bUT could not enable and disable image control on selection of radio button.
|
|
|
|
|
Well, perhaps you need to word your question better then.
it's still straightforward. Add an onclick to the radio button, which calls a javascript method that does everything I said before.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
As you don't show any code, I have to guess. My guess is that you have mixed up server control properties with client element properties.
The javascript property for this is disabled , not enabled .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
thanks...
atlast something that is useful..
additionally i would like to mention that the server controls when changed in Javascript will obviously retain their original property after a postback
Regards,
|
|
|
|
|
Hi,
I am having a problem that I have been trying to solve for the last 2 weeks. This might be seen in many travel sites like lastminute.com. The situation is simple. I need an indeterminate progress bar. I enter the search criteria/parameters (From/To Date & Destination) in page ‘A’. I click the search button now. I need to be transferred to Page ‘B’, which is empty but consists of a progress bar like image displaying any message and then I need to be transferred to page ‘C’ where the results will be displayed. I use the term “Indeterminate”, coz the progress bar is displayed based on the time taken (which can vary) to display the results and it not a fixed time interval(Usually with thread. sleep type) like u see in many sites. I am using VS 2005 + MS SQL 2005 + ASP.NET 2.0 + AJAX 1.0. Please help me out.
|
|
|
|
|
i think in these cases you cant know how much time the query will take.
better is to show a progress bar image..which keeps on resetting itself every now and then..and as you said move to page C when query returns !
this is what we see on most sites.
Regards,
|
|
|
|
|
Hello,
I am running a customized Blogspot HTML theme on our Blogger site. The address is www.essaychayzee.com, and the problem I'm having is this:
When posting a picture, blogger automatically re-sizes the photo to fit your blog's parameters. This is fine, however, when a user or visitor clicks the photo, it shows the photo at full size as it's supposed to. The problem is that the back button, IE or Firefox will not work. You can click 40 times and it keeps refreshing the same photo.
If you click any other external link from the blog, it works fine. You can visit the external page, and then press the back button, and you will return to the page that you were at previously.
The problem only seems to happen with the blogger photos.
I've included the link to a txt file with the code to our blog below.
I appreciate any help. Thank you kindly.
-S.C.
Link -
http://www.gcityent.com/bloggercode.txt
|
|
|
|
|
If the back button is behaving strangely, it's because script in the page is causing it to, by navigating forward again, probably.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
i uploaded video files using covert videos to byte format and store sl database. but the file size very large(ex:150mb). so i need compression coding for reduce the size.
any one reply asap...
Thanks & Regards,
Raja Mohan.
|
|
|
|
|
|
Hi, all!
I'm looking for a good (and preferrable free) PHP Editor (or IDE, if such a thing exists for PHP)... Any suggestions?
Thanks a lot!
Mac
do you know what to do with the power you have?
|
|
|
|
|
|
http://www.chami.com/html-kit/[^]
Html-Kit has a good Syntax Colorization for PHP and direct context linking to pHP Manual Keywords.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
hai all,
I placed treeview control in my web page.. data are retrieved from the database and that is displaing using this tree view control.If i run that page in internet explorer it is comming fine i.e no problem in alignment..But if i run that application in mozilla firefox the alignment problem is comming..Can u please tell me the solution for that..
thanks.
|
|
|
|
|
Hi,
when i try to run my application i am getting the following error in VS2005
Could not load file or assembly 'Sample assembly' or one of its dependencies. Access is denied.
But the same web application is executing in other systems. What may be the problem and how to solve it?
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
In my home install of Firefox I apply this setting as described here
http://www.howtogeek.com/howto/windows/fix-for-firefox-memory-leak-on-windows/
It works fine. However, on my work PC it has no effect. I've not been able to find anything by Googling. Both PCs are running fully patched Firefox 2 and XP SP2. Any ideas?
Kevin
|
|
|
|