Click here to Skip to main content
15,907,183 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionImages directory stored on separate server prompts for logon... Pin
Goalie3512-Jan-10 18:30
Goalie3512-Jan-10 18:30 
AnswerRe: Images directory stored on separate server prompts for logon... Pin
Brij12-Jan-10 20:42
mentorBrij12-Jan-10 20:42 
Questionweb application is slow on web Pin
vikas shukla12-Jan-10 18:29
vikas shukla12-Jan-10 18:29 
AnswerRe: web application is slow on web Pin
Pranay Rana12-Jan-10 18:54
professionalPranay Rana12-Jan-10 18:54 
GeneralRe: web application is slow on web Pin
vikas shukla12-Jan-10 18:56
vikas shukla12-Jan-10 18:56 
GeneralRe: web application is slow on web Pin
vikas shukla12-Jan-10 18:57
vikas shukla12-Jan-10 18:57 
Questionreceiving posted data in a page from SHDocVw.InternetExplorer Pin
sanjubaba12-Jan-10 17:58
sanjubaba12-Jan-10 17:58 
QuestionLoginStatus not working within master page Pin
jboyd11112-Jan-10 8:34
jboyd11112-Jan-10 8:34 
I have a user control on my site (in directory UserControls/UserInfo. When I drop the control onto a page created from my master page template, it does nothing (i.e. you click on the "login" link and nothing happens). I even added an explicit link to a Login.aspx url on the LoginStatus line, which will work. However, the LogOut link does not work.
I've found I can drop this user control onto any new, blank (i.e. not derived from MasterPage.master) and all works as expected.
Also, when I run in debug mode, I get the following error when I click on the Login link:

"Microsoft JScript runtime error: Object doesn't support this property or method"

The method highlighted is: "theForm.submit();"

This call is in the javascript function created to do the postback:

function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}

The javascript issues I just listed may be a red herring.

I've included the user control code below. Any assistance on why this doesn't work within master pages would be helpful and greatly appreciated.

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserInfo.ascx.cs" Inherits="UserControls_UserInfo" %>


<asp:loginview id="LoginView1" runat="server">
<anonymoustemplate>

<rolegroups>
<asp:rolegroup roles="Administrators">
<contenttemplate>
<asp:loginstatus id="LoginStatus2" logoutaction="Redirect" runat="server">


ReelPushMowers


Catalog Admin


Welcome!
You are not logged in.
<asp:loginstatus id="LoginStatus1" runat="server">
<asp:loginname id="LoginName2" runat="server"
formatstring="Hello, <b>{0}</b>!">

AnswerRe: LoginStatus not working within master page Pin
LloydJJ4-Jun-10 3:23
LloydJJ4-Jun-10 3:23 
QuestionGetting Error Pin
jojoba201012-Jan-10 6:31
jojoba201012-Jan-10 6:31 
AnswerRe: Getting Error Pin
N a v a n e e t h12-Jan-10 6:47
N a v a n e e t h12-Jan-10 6:47 
AnswerRe: Getting Error Pin
Abhijit Jana12-Jan-10 6:52
professionalAbhijit Jana12-Jan-10 6:52 
QuestionHow to integrate Asp.net application with Quick books Pin
xodeblack12-Jan-10 6:23
xodeblack12-Jan-10 6:23 
AnswerRe: How to integrate Asp.net application with Quick books Pin
N a v a n e e t h12-Jan-10 6:49
N a v a n e e t h12-Jan-10 6:49 
AnswerRe: How to integrate Asp.net application with Quick books Pin
Abhijit Jana12-Jan-10 6:53
professionalAbhijit Jana12-Jan-10 6:53 
GeneralRe: How to integrate Asp.net application with Quick books Pin
xodeblack12-Jan-10 7:13
xodeblack12-Jan-10 7:13 
AnswerQuickbooks ODBC driver download Pin
David Mujica12-Jan-10 7:39
David Mujica12-Jan-10 7:39 
QuestionHow to call javascript function in page_load event without any control attachment Pin
xodeblack12-Jan-10 6:22
xodeblack12-Jan-10 6:22 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
N a v a n e e t h12-Jan-10 6:50
N a v a n e e t h12-Jan-10 6:50 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
Abhijit Jana12-Jan-10 6:59
professionalAbhijit Jana12-Jan-10 6:59 
GeneralRe: How to call javascript function in page_load event without any control attachment Pin
xodeblack12-Jan-10 7:15
xodeblack12-Jan-10 7:15 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
Brij12-Jan-10 8:16
mentorBrij12-Jan-10 8:16 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
Pranay Rana12-Jan-10 19:02
professionalPranay Rana12-Jan-10 19:02 
AnswerRe: How to call javascript function in page_load event without any control attachment Pin
carlecomm13-Jan-10 19:17
carlecomm13-Jan-10 19:17 
QuestionPlease help,I have a problem checkbox in griedwiev Pin
silayse12-Jan-10 6:03
silayse12-Jan-10 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.