Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Button1.PostBackUrl is not working when its on moduleButton1.PostBackUrl is not working when its on module
Previous
 
Next
New Post
12/30/2008 7:15 AM
 

Hi,

In our public dnn portal there is a module installed call 2ndPortallogin. Its on Home Page.In this 2ndPortallogin module, there is a button and its postbackurl property has assigned to the following address.

 

=https://portal.serpira.no/texasportal/Login/tabid/39/Default.aspx

This is redirecting to the above given portal tab when we deploye it as a web site(when code is in the .aspx file).But if we create this as a module  (when code is in the .ascx file) its not working.its redirecting to given web site startup page.

Please help me.I have stuck lot.

Than you.

Pubudu.

 

PostBackUrl

 
New Post
12/30/2008 11:28 AM
 

Do you have caching turned on for your module? Try turning caching off for that module and see if the postback works correctly.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
12/30/2008 11:14 PM
 

Hi chris,

Thank you for the reply.Can you please tell me, How to turn off cashing in DNN Module.

Thank you.

Pubudu

 
New Post
12/30/2008 11:37 PM
 

Go to the module settings for your module and set the cache value to 0. You can also turn it off for the module on the module definitions page, edit the definition for your module.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
12/31/2008 12:17 AM
 

Hi Chris,

Thank you very much for quick responce.I Have done that.But Its not working.Following is the code.Can you please check this.Please help me.

<%

@ Control Language="C#" AutoEventWireup="true" Codebehind="Login.ascx.cs" Inherits="UnicornDrive.Portal.Login.Login" %>

 

<

function

{

 

 

 

 

{

uxDebtorLoginBtn.focus();

}

 

script language="javascript" type="text/javascript"> setFocus()var uxCreditorLoginBtn = document.getElementById('<%=uxCreditorLoginBtn.ClientID%>');var uxDebtorLoginBtn = document.getElementById('<%=uxDebtorLoginBtn.ClientID%>');if(uxCreditorLoginBtn.disabled) else

{

uxCreditorLoginBtn.focus();

}

}

function

{

 

 

 

 

 

 

 

 

 

 

 

 

 

{

 

{

creditorTable.style.visibility=

defaultTable.style.visibility=

endrePassordHyperLink.style.visibility=

glemtPassordHyperLink.style.visibility=

uxDefaultBtn.style.visibility=

uxCreditorLoginBtn.style.visibility=

defaultHyperLink_01.style.visibility=

defaultHyperLink_02.style.visibility=

uxDebtorLoginBtn.style.visibility=

debtorTable.style.visibility=

}

 

EnableLogin()var uxUserNameText = document.getElementById("<%=uxUserNameText.ClientID%>");var uxCreditorLoginBtn = document.getElementById("<%=uxCreditorLoginBtn.ClientID%>");var uxDebtorLoginBtn = document.getElementById("<%=uxDebtorLoginBtn.ClientID%>");var uxDefaultBtn = document.getElementById("<%=uxDefaultBtn.ClientID%>");var defaultHyperLink_01 = document.getElementById("<%=defaultHyperLink_01.ClientID%>");var defaultHyperLink_02 = document.getElementById("<%=defaultHyperLink_02.ClientID%>");var endrePassordHyperLink = document.getElementById("<%=endrePassordHyperLink.ClientID%>");var glemtPassordHyperLink = document.getElementById("<%=glemtPassordHyperLink.ClientID%>");var creditorTable = document.getElementById("creditorTable");var debtorTable = document.getElementById("debtorTable");var defaultTable = document.getElementById("defaultTable");if(uxUserNameText.value.toUpperCase() != 'HOST' && uxUserNameText.value.toUpperCase() != 'ADMIN' && uxUserNameText.value.replace(/^\s+|\s+$/g, '').length != 0)if(uxUserNameText.value.substr(0, 2).toUpperCase()=='PD')"hidden"; "hidden"; "hidden"; "hidden"; "hidden"; "hidden"; "hidden";"hidden";"visible";"visible";else

{

defaultTable.style.visibility=

debtorTable.style.visibility=

defaultHyperLink_01.style.visibility=

defaultHyperLink_02.style.visibility=

uxDebtorLoginBtn.style.visibility=

uxDefaultBtn.style.visibility=

uxCreditorLoginBtn.style.visibility=

endrePassordHyperLink.style.visibility=

glemtPassordHyperLink.style.visibility=

creditorTable.style.visibility=

}

}

 

"hidden"; "hidden"; "hidden"; "hidden"; "hidden";"hidden"; "visible";"visible";"visible";"visible";else

{

creditorTable.style.visibility=

debtorTable.style.visibility=

endrePassordHyperLink.style.visibility=

glemtPassordHyperLink.style.visibility=

uxDebtorLoginBtn.style.visibility=

uxCreditorLoginBtn.style.visibility=

uxDefaultBtn.style.visibility=

defaultHyperLink_01.style.visibility=

defaultHyperLink_02.style.visibility=

defaultTable.style.visibility=

}

}

"hidden"; "hidden"; "hidden"; "hidden"; "hidden";"hidden";"visible"; "visible";"visible";"visible";

</

<

 

 

 

 

 

 

 

 

 

 

 

 

 

 

}

 

 

 

 

 

 

 

}

 

 

 

 

 

 

 

}

 

 

 

 

script>style type="text/css"> .logintxtbox{font-family:Arial,Tahoma,Verdana;font-size:10px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;padding-left: 8px;padding-top: 2px;padding-right: 5px;vertical-align:top;color: #666666;.loginheader {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px;font-weight: normal;color: #666666;text-decoration: none; margin-bottom:10px;.loginlabel {font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 11px;font-weight: normal;color: #666666;text-decoration: none;.lk {font-family : Tahoma, Myriad, Verdana, Trebuchet MS, Arial, Geneva, Helvetica, sans-serif;font-size : 11px;color: #555

 

}

font-weight: normal;

A.lk

 

 

}

{color : #E57100;text-decoration: none;

A.lk:hover

 

 

}

{color : #444444;text-decoration: none;

</

<

style>div>

 

<asp:Panel ID="containerPanel" runat="server" Height="122px" Width="260px" BackImageUrl="images/lowmenuback.gif">

 

text-align: left; height: 90px;"

<table style="margin-top: 10px; margin-left: 10px; vertical-align: top; width: 240px; border="0" cellpadding="0" cellspacing="0">

 

<tr>

 

<td style="width: 53px; height: 15px;">

 

<asp:Label ID="Label1" runat="server" CssClass="loginheader" Text="Kundeportal" Width="76px"></asp:Label></td>

 

</tr>

 

<tr>

 

<td style="height: 27px; width: 53px; vertical-align: top; text-align: left;">

 

<asp:Label ID="Label2" runat="server" CssClass="loginlabel" Text="Brukernavn" Width="72px"></asp:Label></td>

 

<td style="height: 27px; vertical-align: top; text-align: left; width: 178px;" colspan="1" rowspan="1">

 

<asp:Panel ID="Panel2" runat="server" Width="150px" BackImageUrl="images/txtboxa.gif"

 

Height="19px">

 

<asp:TextBox ID="uxUserNameText" runat="server" BackColor="Transparent" BorderStyle="None"

 

Height="18px" Width="148px" onblur=" EnableLogin();" CssClass="logintxtbox"></asp:TextBox></asp:Panel>

 

</td>

 

text-align: left">

<td colspan="3" rowspan="1" style="vertical-align: top; padding-top: 5px; height: 27px;

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="uxUserNameText"

 

CssClass="loginlabel" ErrorMessage="*" Height="8px" Width="4px"></asp:RequiredFieldValidator></td>

 

</tr>

 

<tr>

 

width: 53px;">

<td style="vertical-align: top; padding-top: 2px; text-align: left;

 

<asp:Label ID="Label3" runat="server" CssClass="loginlabel" Text="Passord" Width="72px"

 

Height="16px"></asp:Label></td>

 

background-image: url(images/txtboxb.gif); background-repeat: no-repeat; vertical-align: top; text-align: left;">

<td style="width: 178px; background-position: left top; background-attachment: fixed;

 

<asp:Panel ID="Panel1" runat="server" Height="19px" Width="150px" BackImageUrl="images/txtboxb.gif">

 

<asp:TextBox ID="uxPasswordText" runat="server" Width="148px" BackColor="Transparent"

 

BorderStyle="None" Height="18px" TextMode="Password" CssClass="logintxtbox"></asp:TextBox>

 

</asp:Panel>

 

</td>

 

background-image: url(images/txtboxb.gif); vertical-align: top; padding-top: 5px;

background-repeat: no-repeat; text-align: left">

<td colspan="3" style="background-position: left top; background-attachment: fixed;

 

<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="uxPasswordText"

 

CssClass="loginlabel" ErrorMessage="*" Height="11px" Width="2px"></asp:RequiredFieldValidator></td>

 

</tr>

 

</table>

 

</asp:Panel>

 

&nbsp;&nbsp;

 

<table id="debtorTable" style="z-index: 101; left: 14px; width: 229px; position: relative; top: -53px">

 

<tr>

 

<td style="width: 100px; height: 21px">

 

</td>

 

<td style="width: 100px; height: 21px">

 

</td>

 

height: 21px; text-align: right">

<td style="margin-top: 10px; margin-left: 10px; vertical-align: top; width: 179px;

 

<asp:ImageButton ID="uxDebtorLoginBtn" runat="server" ImageUrl="images/btok.gif"

 

PostBackUrl="https://portal.credicare.no/debtorportal/Login/tabid/39/Default.aspx" Height="23px"

 

 

Width="39px" /></td> </tr>

 

 

 

</table>

 

&nbsp; &nbsp;&nbsp;

 

<table id="creditorTable" style="z-index: 103; left: 14px; width: 229px; position: relative; top: -102px">

 

<tr>

 

<td style="width: 100px; height: 21px; vertical-align: bottom; text-align: left;">

 

<asp:HyperLink ID="endrePassordHyperLink" runat="server" CssClass="lk" Height="16px"

 

NavigateUrl="https://portal.credicare.no/ccportal/ChangePassword/tabid/95/Default.aspx"

 

Width="80px" Style="z-index: 105; left: -236px; position: static; top: -40px">Endre passord \</asp:HyperLink></td>

 

<td style="width: 100px; height: 21px; vertical-align: bottom; text-align: left;">

 

<asp:HyperLink ID="glemtPassordHyperLink" runat="server" CssClass="lk" Height="16px"

 

NavigateUrl="https://portal.credicare.no/ccportal/ForgotPassword/tabid/94/Default.aspx"

 

Width="80px" Style="z-index: 104; left: 232px; position: static; top: 95px">Glemt passord</asp:HyperLink></td>

 

height: 21px; text-align: right">

<td style="margin-top: 10px; margin-left: 10px; vertical-align: top; width: 179px;

 

<asp:ImageButton ID="uxCreditorLoginBtn" runat="server" ImageUrl="images/btok.gif"

 

PostBackUrl="https://portal.credicare.no/ccportal/Login/tabid/39/Default.aspx" Height="23px"

 

 

Width="39px" /></td> </tr>

 

</table>

 

<table id="defaultTable" style="z-index: 104; left: 14px; width: 229px; position: relative; top: -131px; height: 29px;">

 

<tr>

 

<td style="width: 100px; height: 21px; vertical-align: bottom; text-align: left;">

 

<asp:HyperLink ID="defaultHyperLink_01" runat="server" CssClass="lk" Enabled="False"

 

Width="80px" Style="z-index: 106; left: -236px; position: static; top: -40px" Height="16px">Endre passord \</asp:HyperLink></td>

 

<td style="width: 141px; height: 21px; vertical-align: bottom; text-align: left;">

 

<asp:HyperLink ID="defaultHyperLink_02" runat="server" CssClass="lk" Enabled="False"

 

Height="16px" Style="z-index: 104; left: 232px; position: static; top: 95px"

 

Width="80px">Glemt passord</asp:HyperLink></td>

 

height: 21px; text-align: right">

<td style="margin-top: 10px; margin-left: 10px; vertical-align: top; width: 179px;

 

<asp:ImageButton ID="uxDefaultBtn" runat="server" ImageUrl="images/btok.gif"

 

Enabled="False" Height="23px" Width="39px" /></td>

 

</

</

</tr>table>div>

Thank you.

Please help me.

 

Pubudu

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Button1.PostBackUrl is not working when its on moduleButton1.PostBackUrl is not working when its on module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out