Thanks kenobewan, that was it:
CompanyProfileI mage.Attributes .Add("onmouseov er", "MM_swapImage(1 ,1)")
CompanyProfileI mage.Attributes .Add("onmouseou t", "MM_swapImgRest ore()")...
User Profile
Collapse
-
VB-ASP.NET: Adding mouseover effect to <asp:Image />
Is there a way to add javascript functionality, onmouseover to be specific, to an image defined with <asp:Image />? -
Steve Kiss replied to ASP.NET2-VB: Using default membership provider with the email address as usernamein .NETHave the the CreateUserWizar d call the following function onCreatingUser:
Public Sub RegisterNewUser _CreatingUser(B yVal sender As Object, ByVal e As System.Web.UI.W ebControls.Logi nCancelEventArg s)
Dim cuw As CreateUserWizar d = CType(sender, CreateUserWizar d)
cuw.Email = cuw.UserName
End SubLeave a comment:
-
Steve Kiss started a topic ASP.NET2-VB: Using default membership provider with the email address as usernamein .NETASP.NET2-VB: Using default membership provider with the email address as username
Hi. I'm developping an website that uses the ASP.NET membership provider with Sql Server. The problem is I want to use the user's email address as a unique identifier instead of a username. Unfortunately, I'm not sure how to do this. I've been trying to make an invisible textbox for the username that takes the value from the email address textbox. Has anyone encountered this problem before or have any suggestions? -
VB-NET, ASP.NET2.0: Making two textboxes with mirror text content
I have a site in which there are two asp textboxes as follows:
<asp:TextBox runat="server" ID="UserName" />
<asp:TextBox id="Email" runat="server" Visible="false" Text="<%UserNam e.text%>" />
What I want is for the second textbox to be invisible, but have it's text value be the same as the first... -
-
Hi.The problem seems to be generated by the login control in asp.net. I do no file io anywhere. The code that causes the problem is as follows:
<asp:Login ID="Login1" runat="server" meta:resourceke y="LoginResourc e" MembershipProvi der="MyMembersh ipProvider" OnLoggedIn="goH ome" UserNameLabelTe xt="EmailAddres s:" DisplayRemember Me="false" EnableTheming=" false"...Leave a comment:
-
I found the solution by changing the ChangePasswordF ailureText property in asp:ChangePassw ord. Otherwise, even if you set the number of aphanumeric characters to 0, it will still give you an error message that specifies you need 1 alphanumeric character.Leave a comment:
-
VB-ASP.NET2.0: Security Issue with Trust Level
Hi. I have a fairly basic asp.net website that uses an Sql Server 2005 database and a custom provider to register users. I recently started testing the application in Medium Trust and I get the following error:
System.Security .SecurityExcept ion: Request for the permission of type 'System.Securit y.Permissions.F ileIOPermission , mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9' failed.
... -
I'm a big fan of Wrox ASP .NET 2 0 Website Programming Problem Design Solution 2006 or anything else from Wrox.Leave a comment:
-
Steve Kiss started a topic ASP.NET 2.0 VB: Turning off the Nonalphanumeric validator for password changein .NETASP.NET 2.0 VB: Turning off the Nonalphanumeric validator for password change
Hello. I'm developping a website which contains a page to Change A Users Password. In the web.config, I have the following settings for my membership provider:
minRequiredPass wordLength="2"
minRequiredNona lphanumericChar acters="0"
If I input an invalid password, i get the following message:
Password incorrect or New Password invalid.
New Password length minimum: 2.
Non-alphanumeric... -
Steve Kiss started a topic ASP.NET 2.0, VB: Two asp buttons, when I press enter the first event fires.in .NETASP.NET 2.0, VB: Two asp buttons, when I press enter the first event fires.
Hi. I have an asp page that has two buttons, both with onclick events. Unfortunately, when I press ENTER it's always the first event that gets fired. Any suggestions? -
Thank. That was the problem. I assumed the following would close the connection automatically:
returnReader = command.Execute Reader( _
CommandBehavior .CloseConnectio n)
It doesn't! I had to explicitly close it.
Thank you...Leave a comment:
-
ASP.NET 2.0, VB, SQLServer: The connection was not closed.
Hello. I have a asp.net 2.0 website that uses SqlServer as a database. I use the basic provider architecture for a custom module. For some reason I get the following error:
Exception Details: System.InvalidO perationExcepti on: The connection was not closed. The connection's current state is open.
Unfortunately, this isn't very descriptive. Does someone know what this means?
Thank you -
VB-WEB: Problem using Querry Strings in ASP.NET 2.0 SiteMap
Hi. I am developping a site for which one of the pages uses querry strings to pass some parameters. I can use the querry strings if I call the page from a plain html anchor. However, when I add the URL to the sitemap I get the following error:
The 'url' property had a malformed URL
This is the offending URL:
ViewImages.aspx ?area=M3000Gall ery&areaName=Me rlin%203000%20P ress%20Brake%20 Guarding
... -
Solve it myself.
In the head I add
window.onresize =alignObsoleteP roductsCenter;
from the code-behind.Leave a comment:
-
You should be able to. I've done it with VB so you should be able to do it in C#. Here's an example:
In my html I have:
<div id="Hello" onmouseover="<% # (GetMouseOverJa vascriptFn()) %>" onmouseout="<%# (GetMouseOutJav ascriptFn()) %>" runat="server">
In my code behind I have:
Protected Function GetMouseOverJav ascriptFn() As String
...Leave a comment:
-
VB-WEB: Adding 'onresize' event to a page that uses templates
Hi. I have a ASP.NET 2.0 web application in which I use a master template for all my pages. I would like to add a 'onresize' event for the body tag of only one of these pages. Does anyone have a suggestions on how to do that?
I've tried javascript:
if( window.addEvent Listener )
{
window.addEvent Listener("resiz e", alignObsoletePr oductsCenter(), false);
}
else...
No activity results to display
Show More
Leave a comment: