Hi I'm trying to show/hide a panel through javascript by using below code. Problem is when I click on the arrow and hide the panel below, arrow moves from its position towards left. I've tried many things but can't have it still. Please help me to fix it. Thanks in advance -------------------------------------------- <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script language="javascript"> function change() { var imgEle = document.getElementById('imgArrow'); var Panel1 = document.getElementById('<%= Panel1.ClientID %>'); if(Panel1.style.display == 'block') { Panel1.style.display='none'; imgEle.src = "images/lft-arw.gif"; } else { Panel1.style.display='block'; imgEle.src = "images/drop-arw.gif"; } } </script> </head> <body> <form id="form1" runat="server"> <table border="0" cellpadding="0" cellspacing="0" style="width: 100%"> <tr> <td colspan ="2"> </td> </tr> <tr> <td style="width: 100px"> <table border="3" bordercolor="blue" cellpadding="0" cellspacing="0" style="width: 100px;text-align: center"> <tr> <td style="width:98px" align="left">Price </td> <td style="width:2px;" align="right"><IMG id="imgArrow" SRC="images/drop-arw.gif" onclick="javascript:change();" /></td> </tr> <tr> <td colspan="2" id="pnlParent"> <asp:Panel ID="Panel1" runat="server"> <table border="0" cellpadding="0" cellspacing="0" style="width:100%;"> <tr> <td>From </td> <td><asp:textbox runat=server ID="txtFrom" /> </td> </tr>
Nitin1981
Posts
-
Image moves while doing show/hide -
Trapping browser requests in c#Yes, this is not for something malicious, this is to prevent the user from opening blocked web sites. Can you please let me know a starting point for this? Is it possible to write it in c#?
Don't Quit
-
Trapping browser requests in c#I want to retrieve the URL which user is trying to open. I want to retrieve this URL as and when user is trying to open it. Depending upon some criteria redirect the user to some other web page. I hope it makes sense. Thanks
Don't Quit
-
Trapping browser requests in c#Hi, I've to write a browser request trapping applicaion in c#. I am not sure where to start. I've googled with little success. Can someone please provide me a starting point or resource.
Don't Quit
-
Integrate modules in Dotnet Nuke 4.0.9Hi I've installed DNN 4.0.9. I have to integrated a module (set of ascx files) inside it. I've tried placing it inside DektopModules folder then adding the project file to the solution. But I'm not able to debug it. I've tried looking at lots of DNN resources (ebooks and google) but could not find any answer for my problem. Can someone please tell me how to integrate a project in DNN 4.0.9. Please help me. Thanks in advance.
Don't Quit
-
MultiSelection combo gets hidden in a FrameHi I've created a user control with one text box, one list box and one command button. It acts like a multi selection combo box. I've put it in a Frame. Problem is when I click on the button list box gets hidden and does not show up properly. While windows combo box displays properly irrepective of the place where we put it on. I've tried windows API function BringWindowToTop, but it didnot work either. Please suggest any way to keep the list box on top and display it fully. Thanks in advance
Don't Quit
-
Retrieve multiselect rows in TDBGridHi! I'm not sure about that. But I'm using it in VB6 Thanks
Don't Quit
-
Retrieve multiselect rows in TDBGridHi! I want to retrieve multiple selected rows in true grid (VB6). I did found some atricles after Googling but they are blocked due to my companies internet surf control. Please provide the code for the same. Many thanks in advance.
Don't Quit
-
Problem with dot net (Window forms) user control in Vb6 applicationThis is related to InterOp and I could not find any forum specific to Interop here so I put it in the dot net framework.
Don't Quit
-
Problem with dot net (Window forms) user control in Vb6 applicationHi! I'm using a Windows form user control in a Vb6 application. I'm having some problems while using the control in Vb6 application. 1. I'm not able to set the value of a combo box in the user control programmatically. i.e At the run time I'm running some code which is not setting the value of the combo box in the Vb6 form. 2. When I click on some Vb6 control on the form then user control gets hidden. I'm adding the user control dynamically at run time. 3. Some module level variable were not able to retain there values in the user control but when I changed them to "Shared type" they were able to retain their values. Similarly progress bar is not able to retain its property values. I tried searching on the net but could not find any suiable solution.Any kind of help is appreciated. Thanks
Don't Quit
-
Select method of Dataset not workingHi! I'm using Select method to return rows from dataset. The problem is when I'm using select method to return using 1 method to return data I'm getting the result but when I'm using 2 method it does not return any value. I tried seaching on Google I could not find any answer for this. timeStamp>= '08/12/2008 03:16:39' //Returns all rows timeStamp>= '08/12/2008 03:16:39' And timeStamp<= '08/12/2008 03:16:40' //This returns 0 rows //objDSVideoFile is a dataset object 1. The following returns all rows as result MFilteredRows = objDSVideoFile.Tables("ContextImage").Select("timeStamp>= '" & intStartTime & "' ") Run time value timeStamp>= '08/12/2008 03:16:39' 2. This does not return any row MFilteredRows = objDSVideoFile.Tables("ContextImage").Select("timeStamp>= '" & intStartTime & "' " & "And timeStamp<= '" & intEndTime & "'") Run time value timeStamp>= '08/12/2008 03:16:39' And timeStamp<= '08/12/2008 03:16:40' I've the (dates) values as given below including these values. Minimum value à 2008-08-12T03:16:39.468 Maximum value à 2008-08-12T03:16:56.140 Thanks for any help
Don't Quit
-
problem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance SpecifiedN a v a n e e t h wrote:
If you have enabled remote connections, this is probably firewall which is blocking the connections.
Hi, Firstly both visual web dev and Sql server express 2005 are on same system. Secondly Firewall is turned off. Any clues????? :zzz: Thanks
Don't Quit
-
problem in connecting with Sql server express 2005 provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance SpecifiedHi I'm using Visual web developer 2005 with Sql server express 2005 edition. I'm not able to connect to Sql server express 2005 although I'm able to connect to the same using oSql command line utility. I get the following error using the Visual web developer.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
I tried searching on the Ineternet for the same and applied with different combinations but problem persists. Please advise Thanks in advance!
Don't Quit
-
Confused about 3-tier architectureHi! I'm bit confused about 3-tier architecture and need some advice in the right direction. 1.If I'm having a single project in which I have separate classes for Business layer and separte class for Data access layer. Is it an example of 3-tier architecture??? 2. If I'm having 3 separate projects, one only involved with displaying the data and one is a web service/window app invoked through remoting and the third application working as data tier. Is it a proper example of a 3 tier architecture?? Please correct my understanding or provide a link to a good article or ebook. Thanks in advance.
Don't Quit
-
Difference between Format() and DateTime.ParseHi! I'm bit confused about Format() (vb6 function) and DateTime.parse function for formatting a date. i.e when to use which function. Someone please help me in getting this clear. Thanks!
Don't Quit
-
Server was unable to process request. ---> System.InvalidCastExceptionHi! I'm using a web service which is called through a stored proc from a windows service. Until few days back everything was working fine but suddenly I'm getting the following error.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidCastException: Conversion from string "29/04/2008 13:45:57" to type 'Date' is not valid. at Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(Stri
Further I'm able to run the webservice through code. My regional settings has dd/MM/yyyy settings for date i.e British. And I've also checked culture for my thread that is also british. I dont know what else is needed to get it working. Please guide me in getting a solution. Thanks in advance.
Don't Quit
-
Problem in Crescent Combo box ( vb.net code migrated from vb6) [modified]Hi! I've converted a vb6 project to vb.net project, I'm using crescent (IIIrd party control)combo box in this project. The problem is sometimes combo boxes do not display data but actually data is there as seen from Immediate window and by displaying through message box. But sometimes combo boxes do not display the data. I'm not sure what the problem could be? I would like to add that same code in vb6 is running perfectly fine. Have any of you come across such a problem. Any help is appreciated. Thanks
Don't Quit
modified on Tuesday, March 18, 2008 2:43 AM
-
Component to generate pdf or tiff from templatesHi Pete! Thanks for your reply! But I'm looking for a COM component. Do you have any idea? Thanks in advance!
Don't Quit
-
Component to generate pdf or tiff from templatesHi! Please help me in finding a component which can be used to generate a pdf file or even a tiff file from a template of these formats so that I can replace existing place holders in the template with the values. I'm using Visual basic 6 for this purpose. Any help is appreciated. Thanks!
Don't Quit
-
Convert XML to Tiff formatHi All! I'm looking for a way to convert xml data to Tiff format in VB6. Previously I'm using a III'rd party component to generate PDF file. But the problem is that, it is taking too much time to generate the PDF Files. What I'm looking for is a way to generate Tiff file or any other common format out of the XML in VB6 preferably through code or some free component. Thanks in advance
Don't Quit