|
Yes true
Why? Is it wrong?
So how can I do it?
|
|
|
|
|
The progress control should not be inside the update panel. See the example here[^] and while your at it read the rest of the documentation about UpdatePanels and how to use them.
Move the button outside the update panel and use a Trigger. Once again, reading the documentation will help.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thx for your replies
I noted your comments and changed my code accordingly but the button is not not allowing disable
Anyhow I have another question here please
How can I hide the UpdatePanel and all everything inside it when UpdateProgress is started?
And how can I show it back from the code if my try...returned error?
This my latest code
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="panelContact" runat="server">
<ContentTemplate>
<asp:Table ID="Table11" runat="server" CellPadding="10">
<asp:TableRow ID="rowComment"><asp:TableCell VerticalAlign="Top" ColumnSpan="3"><asp:Label runat="server" ID="lblStatus" Text="Thank you." ForeColor="Red" Font-Bold="true" Visible="false" /><asp:Label runat="server" ID="lblMessage" Text="Please write your message and I will get back to you as soon as possible." /></asp:TableCell></asp:TableRow>
<asp:TableRow ID="rowHomePage" Visible="false"><asp:TableCell VerticalAlign="Top" ColumnSpan="3"><br /><asp:HyperLink ID="lblHomePage" runat="server" Text="Click Here to return to home page." NavigateUrl="Default.aspx" /></asp:TableCell></asp:TableRow>
<asp:TableRow ID="rowMessage">
<asp:TableCell VerticalAlign="Top">Your Message</asp:TableCell>
<asp:TableCell Width="10" HorizontalAlign="Center" VerticalAlign="Top">:</asp:TableCell>
<asp:TableCell VerticalAlign="Top"><asp:TextBox runat="server" ID="txtMessage" TextMode="MultiLine" TabIndex="0" Width="300px" Height="150px"></asp:TextBox></asp:TableCell>
<asp:TableCell Width="10" HorizontalAlign="Center" VerticalAlign="Top"><asp:RequiredFieldValidator runat="server" ID="rgMessages" ControlToValidate="txtMessage" ToolTip="Please write your message!" Text='<img src="images/error.gif">' Display="Dynamic" SetFocusOnError="true" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="rowEmail">
<asp:TableCell VerticalAlign="Top">Your Email</asp:TableCell>
<asp:TableCell Width="10" HorizontalAlign="Center" VerticalAlign="Top">:</asp:TableCell>
<asp:TableCell VerticalAlign="Top" HorizontalAlign="Right"><asp:TextBox runat="server" ID="txtEmail" Width="300px"></asp:TextBox></asp:TableCell>
<asp:TableCell Width="10" HorizontalAlign="Center" VerticalAlign="Top"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="txtEmail" ToolTip="Please enter a valid email address!" Text='<img src="images/error.gif">' Display="Dynamic" SetFocusOnError="true" /><asp:RegularExpressionValidator runat="server" ID="rgEmail" ControlToValidate="txtEmail" ToolTip="Please enter a valid email address!" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage='<img src="../images/error.gif">' Display="Dynamic" SetFocusOnError="true" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="rowbutton">
<asp:TableCell VerticalAlign="Top"></asp:TableCell>
<asp:TableCell Width="10" HorizontalAlign="Center" VerticalAlign="Top"></asp:TableCell>
<asp:TableCell VerticalAlign="Top">
<asp:Button runat="server" ID="btnSend" Text="Send" Width="100%" OnClick="btnSend_Click" />
</asp:TableCell>
<asp:TableCell Width="10" HorizontalAlign="Center" VerticalAlign="Top"></asp:TableCell>
</asp:TableRow>
</asp:Table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnSend" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress runat="server" ID="updateProgress" DisplayAfter="1" AssociatedUpdatePanelID="panelContact">
<ProgressTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading_progress.gif" />
</ProgressTemplate>
</asp:UpdateProgress>
Thanks
|
|
|
|
|
hi,
I've to play a mp3 file on my web page
how can i implement it
|
|
|
|
|
|
<audio controls autobuffer>
<source src="myfile.ogg" />
<source src="myfile.mp3" />
<!-- flash fall back if you care about ie -->
</audio>
http://html5doctor.com/native-audio-in-the-browser/
|
|
|
|
|
|
Hi,
I've asp.net 2.0 ajax enabled web site in which I used Ajax update panels in pages. Now I want to convert it into asp.net 3.5 but it gives errors for Ajax tool kit and script manager and update panel used in pages.
I don't want to remove ajax functionality from my site, so is there a way to convert them without removing ajax update panels from pages.
On my PC I've installed both VS2005 and VS2008.
Any suggestions is appreciated.
Thank
Bajrang Singh
Using .net 2.0 (VS2005)
|
|
|
|
|
The Version of Ajax used in 2.0 and 3.5 is different. Your web config is still linked to the 2.0, so what you can do is remove remove the dll(ajaxtoolkit) in the bin and drag and drop any control in your page and it will create the dll in the bin directory and register it in the web config and start removing the 2.0 entries in the web config and you will see at the top of your page the 2.0 and 3.5 registration is not the same, try to change.
Hope this helps
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi All,
Is there a way to do this: if a request is from a manual item, then re-fetch the data from database, and if a request is from the other web controls, say link button, then do not re-fetch data from database.
Thanks very much.
|
|
|
|
|
I guess you could use __EVENTTARGET to identify the control that caused the post-back. i.e. the control that sent the current request.
http://forums.asp.net/t/1352215.aspx[^]
Cheers,
Karthik
|
|
|
|
|
Thanks very much for your reply, and you did point me in the right direction
Here is the trick:
Request.Params["__EVENTTARGET"].contains("xx");
xx is the control name (it's obficates, but still humna readable, such as: ctl00$AccordionMenu1$ctl15$clb0). the "AccordionMenu1" is the name of a user control, but u can but the other controls too, e.g. link button etc.
|
|
|
|
|
Great, you are welcome!
And, hopefully you might know this, just in case, you could get this value "ctl00$AccordionMenu1$ctl15$clb0" using <accordion_id>.ClientID (AccordionMenu1.ClientID in code-behind) in the server side or using '<%= AccordionMenu1.ClientID %>' (for use in javascript)
Cheers,
Karthik
|
|
|
|
|
If you are using postbacks, the simple way is to inspect the sender variable in your event handler. This identifies the control that actually triggered the postback. It really is that simple.
|
|
|
|
|
Hi,
i have a question regarding saving the page. Lets suppose i have one page whose contents change each time i refresh or open. Now lets say at one page, i want to save that page or I want to put that page in my favorites so that when i click that favorites link next time, it should show that saved content not the different one. Is it possible ? If yes, any idea how to make that happen ?
suchita
|
|
|
|
|
Usinng Browser's save and saving the webpage on your system hard disk is the only way to have same content again at later stage. Since the page changes everytime, you cannot persists to it's old state without saving it. You dont have control over it.
|
|
|
|
|
You are probably correct, but not necessarily so. Depending on how the page is created, it may be possible to construct a "Permalink" button which will re-load it with an amended URL (probably including some paramters) which allow the same page to be re-created again from that (bookmarkable) URL.
|
|
|
|
|
Thanks all. Just curious about that.
suchita
|
|
|
|
|
Hi All,
I am using VS.Net 2008 with TFS on Windows 7 environment. I would like to run wsdl.exe utility tool to generate proxy for a wsdl file. I am unable to find the wsdl.exe utility at all. I searched whole computer by putting wsdl.exe or wsdl*.exe and wsdl*.*. It is showing 0 files. Am I missing something. Earlier I was using Win XP and VSS or SVN, I was able to search the wsdl.exe or I was able to go to the VS command prompt.
But in this Win 7 or TFS may be I am unable to locate it. Can anybody help me in this regard any links or any advice is helpfull.
Thanks in advance.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Go to start programs and look for Command Prompt under installed Visual Studio.
The place where this command prompt is opened as default, wsdl.exe exists there. I have same win7 & VS2008 environment and I use it quite frequently.
|
|
|
|
|
WSDL.EXE will be present as soon as you install a Visual Studio (not Express Edition) or a Windows SDK.
Mine is at C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\wsdl.exe
There also is an svcutil.exe, which is doing very similar things (and gets installed together with it AFAICT).
|
|
|
|
|
Hi,
I have developped a .Net Web Service. I have run it its working fine. Now I want to get the WSDL file for the Web service, how can I get the WSDL file for the Web service.
Can anybody help me in that, any link or any advice is helpfull.
Thanks in advance.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
|
Hi,
I have data in html format in my database. When i pulling those data from the database and showing them to the datagrid, it is showing correctly. For example, if there is an image src in that html format data, then it shows the image in the datagrid. But when i use gridview instead of datagrid, the image doesn't show up. Instead html format doesn't show effect in gridview. the data just a text including html tags too. How to put html tags effects in gridview ?
suchita
|
|
|
|
|
You don't give enough detail to answer.
We need to see a sample of the HTML produced and we need to know if you are using any events to alter the data during binding.
|
|
|
|