|
4 sure i'll use flash just i need anything about it or any good website or old student projetcs nd stuff like that ,,
thanx alot =)
Amouna
|
|
|
|
|
Yes ladies and gents, here it is again...
For some reason the gods at Microsoft failed to realize us Intarwebz users like to press the "enter" key after we fill out a form to "Submit" it. Instead they decided they should force us to either tab or to, god forbid, use the mouse to CLICK THE BUTTON!!
I have been over these forums, over the ASP.NET forums over at Microsoft and of course, everyone's best Coder guru, Google. Alas, I still have the same problem.
<asp:LoginView ID="LoginArea" runat="server">
<LoggedInTemplate>
<div class="homeLoggedin">
<table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
<tr>
<td>
<div class="lblLogin">
<asp:HyperLink ID="hypProfile" NavigateUrl="~/Membership/Default.aspx" runat="server">Member Home</asp:HyperLink>
|
<asp:LoginStatus runat="server" ID="LoginStatus1" LogoutPageUrl="~/Default.aspx" LogoutAction="Redirect" LoginText="" />
</div>
</td>
</tr>
</table>
</div>
</LoggedInTemplate>
<AnonymousTemplate>
<div class="homeLogin">
<asp:Login ID="memberLogin" runat="server" PasswordRecoveryText="Forgot your password?" DisplayRememberMe="False" LoginButtonImageUrl="~/images/btnLogin.jpg"
LoginButtonText="" LoginButtonType="Image" PasswordLabelText="PASSWORD:" TextLayout="TextOnTop"
TitleText="" UserNameLabelText="USERNAME:" PasswordRecoveryUrl="~/Membership/PassRecovery.aspx">
<LabelStyle CssClass="lblLogin" />
<LayoutTemplate>
<asp:Panel ID="pnlMemberArea" runat="server">
<table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
<tr>
<td>
<table border="0" cellpadding="0">
<tr>
<td class="lblLogin">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">USERNAME:</asp:Label>
</td>
<td>
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="memberLogin">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lblLogin">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">PASSWORD:</asp:Label>
</td>
<td>
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="memberLogin">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="center" style="color: red">
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
</td>
</tr>
<tr>
<td colspan="2">
<asp:ImageButton ID="LoginImageButton" runat="server"
CommandName="Login" ImageUrl="~/images/btnLogin.jpg"
ValidationGroup="memberLogin" />
<asp:HyperLink ID="PasswordRecoveryLink" runat="server"
NavigateUrl="~/Membership/PassRecovery.aspx" CssClass="homeLoginFix">Forgot Password</asp:HyperLink>
<span class="homeLoginFix">|</span>
<asp:HyperLink ID="Register" runat="server"
NavigateUrl="~/Membership/Register.aspx" CssClass="homeLoginFix">Register
</asp:HyperLink>
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
</LayoutTemplate>
</asp:Login>
</div>
</AnonymousTemplate>
</asp:LoginView>
My code-behind includes the following:
if(HttpContext.Current.User.IsAuthenticated)
{
//we do some stuff here
}
else
{
Panel myPanel = (Panel)LoginArea.FindControl("memberLogin").FindControl("pnlMemberArea");
myPanel.DefaultButton = LoginArea.FindControl("memberLogin").FindControl("pnlMemberArea").FindControl("LoginImageButton").ClientID;
}
Now, I have tried putting the Panel inside the LoginView, inside the Table, inside the div, I've tried putting the panel right next to the Login and even inside the login, but NOTHING I DO will make the default button work correctly. The error I receive is:
The DefaultButton of 'pnlMemberArea' must be the ID of a control of type IButtonControl.
Through all of my research I have discovered that the ASP:LOGIN control renames all it's contianing controls to implment the INaming interface rather than the IButtonControl interface and thus the conundrum. I've done everything I can think of and cannot get this thing to work. Any ideas?
|
|
|
|
|
Nothing? No one?
Wow. Come on people, SOMEONE has had to have come along this sometime.
All I'm trying to do is make my LoginImageButton my DefaultButton of myPanel.
Any hints? Answers? Godsends?
|
|
|
|
|
Have you tried javascript?
You can capture the "Enter" key pressed in the page using javascript, and trigger the Image Button's click event.
|
|
|
|
|
How can i accsess the control that exsist in masterpage from child?
|
|
|
|
|
Cast the reference in Page.Master to the specific class of your master page, then you can access the members of the master page.
---
single minded; short sighted; long gone;
|
|
|
|
|
I want to use control on master page, when i redirect to certan aspx.
I want to hold a permision struct in MasterPage, but when i use redirected to any aspx file using masterpage, so that aspx file woud have accsess to struct, then it would redirected to first page, if permision is inproper. I also want to hold struct in masterpage, because a menu is also generated based on permision. So to avoid certan steps like getting twice the permision from database, it woud get only once
|
|
|
|
|
Ok. Is there any problem when you do this?
---
single minded; short sighted; long gone;
|
|
|
|
|
my bad. I forgot for ContentTemplate tag.
edit: Wrong Post
|
|
|
|
|
I have custom Control "RounedCorners", And i woud like to know how to use it within AJAX Update Panel
|
|
|
|
|
What's special about the control that makes you think that you have to do something different when using it in an update panel?
---
single minded; short sighted; long gone;
|
|
|
|
|
I Have quick login with Rounded Control, so i want to be used with in update panel, Once logged in the quick login would change to control panel.
|
|
|
|
|
Ok. Is there any problem with using it in an update panel?
---
single minded; short sighted; long gone;
|
|
|
|
|
Error 1 panel1:Type 'System.Web.UI.UpdatePanel' does not have a public property named 'RoundedCorners'.
|
|
|
|
|
Does RoundedCorners inherit from System.Web.UI.Control, or any other class that does?
---
single minded; short sighted; long gone;
|
|
|
|
|
from System.Web.UI.WebControls.WebControl
|
|
|
|
|
I thought your control had this property. Apparently, the UpdatePanel itself, does not.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I forgot for ContentTemplate tag.
Thanks for the help.
|
|
|
|
|
I want to know what are the limitation?
|
|
|
|
|
Saksida Bojan wrote: I want to know what are the limitation?
There are no limits in the AJAX technology itself, you are only limited by the implementation that you use.
The IIS web server for example has a limit for the size of a request. By default it's 4 MB.
The size of the response is limited to the available memory on the server if you are using buffered output.
---
single minded; short sighted; long gone;
|
|
|
|
|
It doesn't magically work because you learned a new buzzword.
Hard to answer this question. I mean, how do you mean it ? It does what it does.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
When i asked, i thought it how far can i control the controls within update panel programmability without postback.
|
|
|
|
|
Once again returning to the codeproject to find some help.
During some developpement our client wanted a small tool for image editing. We wrote one in C# and load it as a dll on the client side thanks to an <object> and asp:placeholder.
The tool works fine but the amount of memory that is being used is enormous. (We're working with files of several mb). the worst is that when we leave the page the memory usage doesn't go down... we disposed all the object, used the garbage collector nothing works... so when the user opens 10 images IE stops because of a "out of memory" message.
We have tried the application as a standalone and well the memory usage is less and the garbage collector does what it needs to do but our client wants the application to stay inside IE (and they want to use IE and not firefox or other browser)
So the question is, is there a way to force IE to unload the dll, the picture etc. that I'm missing? or maybe another way to load the dll then the object tag?
Any solution would fit as long as when we quit the page the memory goes back to "normal" and well it needs to stay inside IE
any help would be greatly appreciated
Kind regards
its our widgets that make us men
|
|
|
|
|
you can use the concept of ThreadPool.
|
|
|
|
|
Okay, I'm going to look into that
thanks
its our widgets that make us men
|
|
|
|