|
Your post isn't exactly clear. If you set the visibility property of the control it will be not be visible when the page loads.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have an ASP page, and want to have a hover changing style event.
Here is the code for the hyperlink.
<asp:HyperLink ID="HyperLink1" runat="server" BorderStyle="None"
Font-Underline="False" NavigateUrl="~/Default.aspx"
ToolTip="See Overview of Cardington Site">
Cardington</asp:HyperLink>
I was thinking there is a way of doing a StaticHoverStyle, but I think I can only do that in a MENU item.
Is there a way of doing a mouse over change easily?
PS Using VB as code behind.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
modified on Monday, March 22, 2010 7:28 PM
|
|
|
|
|
Just add the events to the link
<asp:HyperLink ID="HyperLink1" runat="server" BorderStyle="None"
Font-Underline="False" NavigateUrl="~/Default.aspx"
ToolTip="See Overview of Cardington Site"
onmouseover=MouseOverFunction onmouseout=MouseOutFunction>
Cardington</asp:HyperLink >
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
<asp:HyperLink ID="HyperLink1" runat="server" BorderStyle="None"
Font-Underline="False" NavigateUrl="~/Default.aspx"
ToolTip="See Overview of Cardington Site"
onmouseover = bgcolor="Red" onmouseout = bgColor="Aqua">
Cardington</asp:HyperLink>
I put this line in but it is not a happy bunny.
It is suggesting that if this statement contains quotes, then they must match, but they do.
When I build it fails
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The tag contains duplicate 'bgColor' attributes.
Source Error:
Line 95: <td bgcolor="Aqua" class="style15" style="border-color: #00FFFF" width="88">
Line 96:
Line 97: <asp:HyperLink ID="HyperLink1" runat="server" BorderStyle="None"
Line 98: Font-Underline="False" NavigateUrl="~/Default.aspx"
Line 99: ToolTip="See Overview of Cardington Site"
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Of course its not happy, that is not the correct syntax.
onmouseover="this.style.bgcolor='Red'" onmouseout="this.style.bgcolor='Aqua'"
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Yeah, see below!
I beat you to it
I forgot I was in ASP.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Ah, got it!
onmouseover="this.style.color='red'" onmouseout="this.style.color='black'"
Your answer was superb, it got me thinking, got me searching and the final solution was down to me working on your response!
I feel all clever with myself, as I am not an ASP expert!
(obviously).
Thanks, have a vote-up.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Good although if all you are doing is setting styles a better way to handle this would be to use CSS
<style>
.MouseOver:hover
{
color:Red;
}
.MouseOver
{
color: Black;
}
</style>
<asp:HyperLink ID="HyperLink1" runat="server" BorderStyle="None"
Font-Underline="False" NavigateUrl="~/Default.aspx"
ToolTip="See Overview of Cardington Site" CssClass="MouseOver">
Cardington</asp:HyperLink>
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Cheers, I find the more I do, the more I find out what I don't know, and the more I have to ask.
I am getting such an education on this site.
And BTW, thanks for the swift replies.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
I am working on an application using ASP.Net 1.0. I have a crystal report and I want to export that crystal report to MS Excel 2007....I can export to MS Excel 2003 but I am having some problem while Exporting crystal report to MS Excel 2007..Please anyone can help....looking forward...
Thanks.
|
|
|
|
|
http://www.beansoftware.com/ASP.NET-Tutorials/Set-Up-IIS-ASP.NET.aspx[^]
i have followed this link to publish my web but when i am trying to test my application following error occurs on my browser
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 33: during development.
Line 34: -->
Line 35: <authentication mode="Windows">
Line 36: <forms loginUrl="Default.aspx" />
Line 37: </authentication>
Source File: d:\inetpub\wwwroot\myapp\web.config Line: 35
|
|
|
|
|
Could you link to screenshots of your application's setup within IIS please?
|
|
|
|
|
Try opening IIS. Expand the Treeview that contains all sites/sub directories etc. Look for the virtual directory called "myapp" (or whatever you've named your site). Right click ->Properties. Under the Directory tab, click the button that says "Create" (which is inside the Application Settings group) then click OK.
Hope that helps...
|
|
|
|
|
Hi experts
I have googled for tips/solutions and failed to get a right method to implement following scenario.
I have a gridview populated with data on page load from my source table.
To make it precise I have fields Ac_Id, Ac_Name, Balance, and user_Id in my table. The user_Id and Ac_Id forms the composite key.
I have say 3 rows in my table as follows
1, Cash, 1000, ABC
2. CITI, 8000, ABC
3. BOA , 6000, ABC
While editing in grid I want let user edit only the balance field if Ac_Name is Cash otherwise User can Edit both Ac_Name and Balance.
whle I could make both ac_name and Balance field editable but failed to achive above. Advise is solicited
Thanks in advance and regards
Kris
|
|
|
|
|
make Template fields in grid view. while editing give text box for that fields and according to your secnerio make the textbox read only.
|
|
|
|
|
Dear Mr.Padmanabhan
Thanks for tip and has worked for me
kris
|
|
|
|
|
In gridView RowDataBound event, disable the editor when type is Cash.
|
|
|
|
|
Hello!
When I try to built my web project I get the following error: "A namespace does not directly contain members such as fields or methods" for a file called 'DownloadFiles.aspx' (which has also an code behind file). The error should be in lone 1 row 1.
<%@Page Language="C#" AutoEventWireup="true" CodeFile="DownloadFiles.aspx.cs"
Inherits="MD.TPConfigurator.Web.DownloadFiles"
Culture="auto" UICulture="auto" Async="true" %>
<html>
<head>
<title>Download</title>
</head>
<body>
</body>
</html>
The funny thing is, when I open the file 'DownloadFiles.aspx' and try to build it again, there is no error any more. I am also sure that there are no members directly in the namespace.
Has anyone any ideas?
Thanks in advance,
Florian
|
|
|
|
|
Please post the code behind file as it looks like there's a namespacing issue there.
|
|
|
|
|
Thanks for your interest.
I finally found the reason. The 'Build Action' property of the aspx file was set to 'Compile' instead of 'Content'. This solved the problem for me.
regards,
Florian
|
|
|
|
|
I need a help
i need to design a page where the Control details like textbox, dropdown and it ID name will be in my database and when i run the pages the control should be binded dynamically in my page
Advance thanks.
Regards,
Gayathri Devi S
|
|
|
|
|
1- Create a table to store the type of control, default value, lookup code and other info like isMandatory etc.
2- Read the values from database and create controls dynamically on the basis of type.
3- Check the type and if dropdown or list then bind them from some lookup table on the basis of lookup code.
4- Add controls to the form container.
Regards,
Prakash Kalakoti
|
|
|
|
|
I have some vague requirements at the moment but basically I need to take some data from a local database and use it to update the data in a remote database. The local application does not have direct access to the remote db.
Because of the nature of the business, this data update needs to be a fast as possible. My first instinct would be to put up a webservice on the remote server and use this to update the remote database but does anyone know of a way that would be significatly quicker?
Thanks very much
|
|
|
|
|
Your method sounds reasonable, if you can't get access to it via VPN or similar then a secured web service is going to have to be the way to go. Nothing's faster than a point to point really, the main concern I suspect would just be security.
|
|
|
|
|
Why not a SSIS/DTS package for data transfer?
Regards,
Prakash Kalakoti
|
|
|
|