.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

LoginView Control Issue

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :ASP.Net
I'm using VWD 2010 Express, and I'm working on a school lesson that I actually did approximately 2 years ago In VWD 2005 with no problems.  I am just learning to program, so my knowledge is very limited.The lesson walks me through creating a master page and then I created a page called "Login.aspx".  On the login page, I am dropping a LoginView control into the ContentPlaceHolder section, and then I'm supposed to type "Welcome !" into the LoginView box for the LoggedIn template, but the LoginView box is very small and when I start typing, the first couple of letters go into the LoginView box, and then they start showing up on the far left outside of the LoginView control.  When I try to click back in the LoginView window, it will only select the entire control, and I can no longer modify what's in the box (unless I go to Source view).  I can't even begin to explain how frustrating this is!!!  It's tough enough trying to learn this stuff and now my development tool is giving me grief!  I don't understand why it worked fine in VWD 2005, but not now (and I'm using the same exact lesson material).

View Complete Post

More Related Resource Links

Menu control rendering issue with IE8



Using VS2010, I created an ASP.NET 4.0 web application and simply added a couple of menu items below the "Home" menu item in the master page that's created by the project wizard. I made no other changes - no code, no stylesheet changes.

If I run the app locally then everything is fine. I suspect because the local IIS is responsive enough for the problem not to occur.

If I deploy the app to a web host (discountasp.net) then I see the menu render vertically for less than a second before it renders correctly. If I refresh the page a few times then usually I can see the menu vertical flash but sometimes I can't, so there's some sort of timing consideration.

I'm using IE8. The problem doesn't seem to occur with either Firefox 3 or Chrome.

Have others seen this problem?

Any suggestions for a fix?

I can supply the zipped up project if anyone wants it.


Issue with Remember Me on User Login control


Hi everyone,

     I hope you can help me, I tried Google, but none of the solutions worked. Using VB.net and Membership, I have a login control in my master page with a remember me check box. When I check this box and login, some pages indicate that I am not logged in. If I go to another page, it will then indicate that I am still logged in. I have isolated one page that always indicates I am not logged in the first time I visit it, but if log in a second time and then go to it, it will finally recognize me as a user that is properly logged in. 

Some pages that this occurs on is in the top level, some pages are in a sub folder.

My MasterPage has the following Form Code:

<body bgcolor="#E0ECF9" topmargin="0" leftmargin="0">

    <form id="form1" runat="server">

My Aspx file has a troubleshooting label, several Gridviews and several DetailViews:

    <asp:Label ID="lblErRep" runat="server" Text=""></asp:Label>

My aspx.vb file has 1 line of code (Protec

Menu Control expansion weired issue.

Menu control expands on load (vertically, 100%) and then contracts to its horizontal position. The code I am using- ASPX page: <asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="False" IncludeStyleBlock="False" Orientation="Horizontal" DataSourceID="SiteMapDataSource1">                    <DynamicMenuStyle CssClass="DynamicMenu" /></asp:Menu>   CSS:  .DynamicMenu{ display: none;} This can be live at www.jaindata.com Can someone please help? Thanks, Swapneel Shah 

Issue with Repeater control.

Hello. I have a Repeater control which contains asp:Button control in ItemTemplate. I want to handle Button's Click event, but when I'm clicking that Button the error is thrown: Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.But on other computer that piece of code is working.I set EnableEventValidation to false, but it's still not working. Please help me out. 

The OTHER Menu control issue...

Ok, everyone knows that the z-index is messed up in IE8 and that requires patches or workarounds...What I can't seem to find a solution to is the white background on the DynamicMenu parts of a Menu control.  Setting the background color to transparent or not setting it all doesn't seem to have any effect.  This is only a problem in IE8, Firefox 3.6.8 renders the dynamic menus without the white background.

LoginView.FindControl not finding control

I'm trying to bind data to a repeater. The repeater is inside a loginView control. Like so:            <asp:loginview id="loginView" runat="server">                <anonymoustemplate>                    <asp:repeater id="rpLessons" runat="server">                                            <itemtemplate>                            <div>                                <a  href="Default.aspx?lid=<%# Eval("PodID") %>"><%# Eval("Name") %></a><%#Eval("Duration")%>                            </div>                        </itemtemplate>    &n

maps issue- map control

Hi all, I have got tool to convert shp to kml. But i need code so that i can convert it at runtime ( convert shp to kml at runtime and then using javascript I can upload this kml to google and bing map) so I want working code or dll ( which i can refer in my project and use at runtime). Is there any tool , code , dll, exe which i can integrate in my .net code and use at runtime   Regards, Rahul M

Dropdown control issue while selecting the value in IE8.



I am facing an issue while selecting a dropdown list value in IE8.

In IE8, while selecting the item in the dropdown list, the control goes out of focus immediatley when clicked for the list of items to select.It makes very hard for the user to select the value from dropdown list.

This dropdown control has some CSS settings enabled for it. I am not sure if this is an issue.

Any suggestions/ideas on this issue.








Slightly different issue: SetFocus from control to WPF parent window in C#...


I've just spent about an hour seaarching for something that should be easy to find with the question: How to set focus on a WPF window.

I have a StatusBar item. When the mouse leaves that item, I need to set the focus back to the StatusBarItem's parent window.

I've tried everything I can think of.  Sorry to be so dense, but I am still a WPF/C# newbie.

Please advise.


-- Mike

Control template issue

Can you tell me why the button text is not using my template color from this code template please?
I am expecting it to be Red.

<ControlTemplate x:Key="RoundedButton" TargetType="{x:Type Button}">

Issue with SSRS multi-parameter control


Hi Folks,

I am having the attached error with a multi-parameter filter control. This is happening only when there is just 1 value in the list.

Has anyone come across this issue and is there a solution to this? I am using SSRS 2005.

Sorry was trying to attached a snap-shot here but don't know if thats possible.

I'll try yo put the issue in words. The list box does not show the item in it. It does not render fully.



Issue in LookupField control when the number of items exceeds 20


I have one strange issue in using LookUpField control in my publishing page layout. The issue comes when the lookup list grows beyond 20 items, the behaviuor of lookup is changed. If the number of items is more 20 then the control generate a TextBox and an Image and we receive the following error:

Microsoft JScript runtime error: Object required The problem is raised in the Core.js file in the AbsLeft method.

function AbsLeft(obj) {
var x=obj.offsetLeft;
var parent=obj.offsetParent;
while (parent.tagName !="BODY")

 x+=parent.offsetLeft; return x;


I have debug the JS and come to know that BODY tag never comes in while loops so it gives error over there.
If I set fixed Top and Left values then everything works fine.. But I cant as my application will run into different environment with different resolution.

Please help me out on this.

Shahejad Shaikh SharePoint Developer, Gateway TechnoLabs.

Displaying Role-Specific Markup With the LoginView Control



I want to know how can I display role-specific markup using loginview?

I have these three roles, Admin, Editor, Moderator

Each and every user will belog to only one of the following role groups

1. Admin, Editor,  Moderator (Some user/s will have all these three roles)

2. Admin, Editor   (Some user/s will have all these two roles)

3. Admin, Moderator (Some user/s will have all these two roles)

4. Editor, Moderator (Some user/s will have all these two roles)

5. Admin (Some user/s will have all only this role)

6. Editor (Some user/s will have all only this role)

7. Moderator (Some user/s will have all only this role)

Now I want to display some links that will be specific for each role group to which one or more users will belong. So the links I want to display for these role groups are following

1. Admin, Editor,  Moderator    => Only Links of all the pages of Admin, Editor and Moderator

2. Admin, Editor                       => Only Links of all the pages of Admin and Editor

3. Admin, Moderator                => Only Links of all the pages of Admin and Mode

Help with LoginView control


Now that some of the Security matrix has been approved and site is somewhat more functional. We are going back thru adding the loginview to the pages that need it so we can control who can adn cant see the pages and data.


Can anyone offer some assistance or links to good tutorials?

 To keep it simple, here is what i have setup.. Because if this setup, i cant access my controls and the page wont display either template. Now even though the aspx code below is a very stripped down version of what i have, the code behind has references to controls that dont show in my example, but they are there in my actual page. I Just removed alot of information to make the post more clear.


    <asp:LoginView ID="LoginView1" runat="server">
            <asp:RoleGroup Roles="Admin">
                You are an Admin!
            <asp:RoleGroup Roles="User">
                You are a user!
        <asp:GridView ID="GridView1" runa

AJAX Control Toolkit - Rating Issue



I have implented the AJAX Control Toolkit and added the Rating Control to my page. It displays exactly as it should and even performs postback correctly, however it refuses to do anything on mouseover. The stars just continue to display whatever I set as the 'Current Rating'.

Here is the code I'm using; I believe I've correctly stripped out anything that's irrelevant:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


<style type="text/css"> /* Rating */ .ratingStar { font-size: 0pt; width: 13px; height: 12px; margin: 0px; padding: 0px; cursor: pointer; display: block; background-repeat: no-repeat; } .filledRatingStar { background-image: url(Images/FilledStar.png); } .emptyRatingStar { background-image: url(Images/EmptyStar.png); } .savedRatingStar { background-image: url(Images/SavedStar.png); } </style>
<form id="form1" runat="server&q

.Net 4.0 DataGrid Control Horizontal ScrollBar Issue



I'm using .Net 4.0 DataGrid control to display my data using databinding. The data are displayed correctly but there is an issue with the horizontal scrollbar:

My datagrid has 15 columns and window when displayed is not showing all the 15 columns. This is okay as the window width limit the number of visible columns. So, as not all columns are visible, there is a horizontal scroll bar. If I drag the horizontal scroll bar at once to the right of the datagrid, it will appear to be moved to the end right but it really go just to the middle. So even If moved the horizontal bar to the end right, it did not go all the way ! I was expecting it to go all the way.

If I keep dragging the horizontal scroll bar to the right until it reach the end, at that time, the scroll bar works properly. I can then move it to the left, and move it to the right end and this time it will go all the way.

Is this is a known issue ? Any workaround so the scroll bar go all the way to the right when dragged to the complete right ?

Important detail: I'm using columns virtualization (EnableColumnVirtualization="True"). If i turn off the columns virtualization, the issue

does not occur.

Tab Control Issue in RihcTextBox


Hello Team,

A typical bug that I've found in RichTextBox. Type any small Text in Rich Text Box at starting position (say "Hello Microsoft") move the Cursor to first letter i.e before "H" Now  Continusly press tab till end. Observe First letter is missing from the textbox and also all the the data coming in line as below 














Why it is happending like that? Is there any property need to be set for tab control? Please give me solution as it is very urgent requirement for me.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend