ラベル display の投稿を表示しています。 すべての投稿を表示
ラベル display の投稿を表示しています。 すべての投稿を表示

2012年3月28日水曜日

Response.redirect - display text in same page.

Hi guys,

I am using A.aspx , B.aspx and C.aspx pages.

From A.aspx I am calling b.aspx via Ajax code. After (Check Login user from database) success status , I am tryint o redirecting to C.aspx. But

C. aspx page content is dispalying in A.aspx. It suppose to be redirec to C.aspx. What I am dong wrong here..??

any suggessions ??

hello.

well, i'mo not following you. can you be more specific?


I am trying to check the Loginuser permissions from the Database. Once he get success permission the page has to redirect to new page.
here is my Code.

Login.aspx (a.aspx) - Enter user id & pwd and click Submit then below code executes


function CheckUser()
{
if (preLoginCheck())
{ var url = serverName+"checkLogUser.aspx?userID="+ document.frmDefault.txtUid.value +"&Pwd="+ document.frmDefault.txtPwd.value;
xmlHttp = GetXmlHttpObject(ChangeHandler);
xmlHttp_Get(xmlHttp, url);
}
}


function ChangeHandler()
{ if (xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete')
{ var getData=xmlHttp.responseText;
if (getData=="Success")
{ document.getElementById("ErrorCode").innerText=" GoooooooooooooooD";
}
else
{
document.getElementById("ErrorCode").innerText=getData; //" Invalid User name /Password";
}
}
}

checkLogUser.aspx (b.aspx) - Ajax will execute this page from here itself I want to redirec to Third Page..


If (tmpUserID <> "" And tmpUserPwd <> "") Then
crapObj = New CRAPManagement
getLogInStatus = crapObj.checkLoginUserAccess(tmpUserID, tmpUserPwd)
If getLogInStatus = "Success" Then
Response.Redirect("UserCreate.aspx") --> C.Aspx
Else
Response.Write(getLogInStatus)
End If
End If

Finanl result is C.Aspx page content is displaed in Login.aspx Page.


hello.

well, if you're using asp.net 2.0, then check the authenticationservice class:

http://www.asp.net/ajax/documentation/live/ClientReference/Sys.Services/AuthenticationServiceClass/default.aspx


Hello,
I could't understand wha should I do exactly...!


hello.

well, instead of writing your own code for making the remote call and then having to build your page on the server that has server logic for authenticating a user, you'll get that for free with the service i've showed you in the previous post (it'll authenticate by using forms authentication and it'll automatically use the current defined membership provider you've set up on the server side).

2012年3月24日土曜日

Right Click popups OWA style

Hi.

I need to use atlas to allow me to display right click popups, the content of which depends on the item that was right clicked on.

Basically.. I have a repeater which lists usernames.

I want to be able to right click on the username which then displays a popup with a few options relating to the selected user.

I have figured out that the popup needs to be in a update panel, and right clicking on the username needs to fire of a webservice which returns the options.

What I am not sure of is how to code it and what Atals functions to use.

Anyone got any pointers?

Cheers

Amit

You might be able to modify the click behavior with a new click behavior that handles the right click, cancells it to disable the browser right click contxt menu, and pop a floating div with the contextual items that you require..
try this:
Handling the context menu with a custom Atlas Behavior

2012年3月21日水曜日

roundedcorners display in firefox

i was under the impression that the extenders such as roundedcorners and dropshadow were all cross-browser compatible, but if you take a look at this page in IE and Firefox you will see the Firefox rendering is a little bit off the mark -http://www.accessor-wiis.com

i am implementing the appearance using two panels. the first panel (the external panel) has it's background color specified while the internal panel has a white background. here is some of the relevant code:

skin file:
<asp:Panelrunat="server"SkinId="RoundedCornersOuterPanel"Style="background-color: #4F82CB; width: 97%; text-align: center;"></asp:Panel>
<asp:Panelrunat="server"SkinId="RoundedCornersInnerPanel"Style="text-align: left; width: 95%; background-color: White; margin-top: 7px; margin-bottom: 7px; padding: 5px;"></asp:Panel>

user control:
<asp:PanelID="AccessoriesRoundedCornersPanel"runat="server"SkinID="RoundedCornersOuterPanel">
<asp:PanelID="AccessoriesInnerPanel"runat="server"SkinID="RoundedCornersInnerPanel">
<asp:DataListID="ItemsEndingNowDataList"runat="server"OnItemDataBound="ItemsEndingNowDataList_ItemDataBound"Width="95%">
<ItemTemplate>
<asp:ImageID="ItemImage"runat="server"ImageAlign="right"CssClass="float-right"/>
<asp:LabelID="CurrentPriceLabel"runat="server"CssClass="biggreen"/><br/>
<asp:LabelID="ItemTitleLabel"runat="server"/>
<br/>
<asp:HyperLinkID="BuyNowHyperLink"Target="_blank"runat="server"Text="Buy Now!"/>
</ItemTemplate>
</asp:DataList>
</asp:Panel>
</asp:Panel>
<ajaxToolkit:RoundedCornersExtenderID="AccesoriesRoundedCornersExtender"runat="server"Corners="All"Radius="3"TargetControlID="AccessoriesRoundedCornersPanel">
</ajaxToolkit:RoundedCornersExtender>

thanks in advance for any thoughts

Look at this article to help you out:

http://mattberseth.com/blog/2007/11/antialiased_rounded_corners_wi.html

Hope this helps =)

RoundedCornerExtender display delay

Hello,

i am using several RoundedCornerExtenders in an application.

When the page is displayed i notice a delay of about half a second (guessed, not measured) to display the rounded corners. That means when the page is loaded i first see the panel that has been extended and then after the short delay the rounded corners are added.

The property "Radius" is set to 10 and i have set a backgruond color so i get a nice colored bar with round corners at the top and the botton of my panels.

Can anyone give me a hint how this display delay can be removed?

Thanks in advance,

Ralf

You might consider changing the LoadScriptsBeforeUI setting, but be sure you consider the side effects as well:http://ajax.asp.net/docs/mref/P_System_Web_UI_ScriptManager_LoadScriptsBeforeUI.aspx