|
Hello! It isn't difficult to do. You drag Login Control into your page. Click on SmartTag and then choose "Convert to Template". You should get the following html code:
<br />
<asp:Login ID="Login1" runat="server"><br />
<LayoutTemplate><br />
<table border="0" cellpadding="1" cellspacing="0" <br />
style="border-collapse:collapse;"><br />
<tr><br />
<td><br />
<table border="0" cellpadding="0"><br />
<tr><br />
<td align="center" colspan="2"><br />
Log In</td><br />
</tr><br />
<tr><br />
<td align="right"><br />
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label><br />
</td><br />
<td><br />
<asp:TextBox ID="UserName" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" <br />
ControlToValidate="UserName" ErrorMessage="User Name is required." <br />
ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator><br />
</td><br />
</tr><br />
<tr><br />
<td align="right"><br />
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label><br />
</td><br />
<td><br />
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" <br />
ControlToValidate="Password" ErrorMessage="Password is required." <br />
ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator><br />
</td><br />
</tr><br />
<tr><br />
<td colspan="2"><br />
<asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." /><br />
</td><br />
</tr><br />
<tr><br />
<td align="center" colspan="2" style="color:Red;"><br />
<asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal><br />
</td><br />
</tr><br />
<tr><br />
<td align="right" colspan="2"><br />
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" <br />
ValidationGroup="Login1" /><br />
</td><br />
</tr><br />
</table><br />
</td><br />
</tr><br />
</table><br />
</LayoutTemplate><br />
</asp:Login><br />
|
|
|
|
|
Thanks, actually I did not mean the Login Control, rather, I meant the LoginName control. But anyway, I have solved the problem by developing a new custom control from scratch.
Regards,
|
|
|
|
|
In my crystal report I have a formula field which shows the percentage based upon the the item amount and total amount. If we name it as a "percent" field. I need the some of this "formula field" "percent" in the report footer. When I try to sum this, it is giving me error as "This field cannot be summarized". How can I add the above montioned field to my report footer.
Can anybody please help me in doing that.
Thanks in advance.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
I'm not familiar with CR, but I'm imagining it can't sum the field because it's formatted? How about adding an invisible duplicate of that field without formatting, would that help?
I are Troll
|
|
|
|
|
I have resolved it by adding a shared varibale in the "percent" formula in such a way that in each iteration it keeps on adding then show percent in percent column and shared variable in the percentTotal column.
Thanks for the help. But I am struckup with another question below. Please can anybody answer that. Atleast any query anything is help full.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
Hi,
I have just learned ASP.NET Form Authentication where I found that, if the user is not logged in, he/she will be redirected to the Login page by IIS with HTTP Status code 302. Obviously search engine bots will be redirected to the login page with 302 code. So, will Googlebot consider my website full of duplicated contents because of this 302 redirects ? As I cannot override the status code from 302 to 301 for search engines. Form authentication is very common for ASP.NET Developers. So, if my fear is true, then it will sound like, "all asp.net websites are not search engine friendly" !!! Woould anyone please guide me what I can do about it ? Or if there is any reason to fear at all ?
|
|
|
|
|
Emran Hussain wrote: So, will Googlebot consider my website full of duplicated contents because of this 302 redirects ?
Nah, it kinda recognizes redirects and AFAIK you don't get penalized for it.
Go here[^] and download their guide
I are Troll
|
|
|
|
|
You can put the NOINDEX meta tag on your page to prevent indexing the content.
<META NAME="ROBOTS" CONTENT="NOINDEX">
Without it, I'm afraid Google will be indexing your login page.
Returning 301/302 status doesn't really bother google with regards to page rank, a 301 will only prevent google from spidering your original links in future.
|
|
|
|
|
I am Getting the error like "sys.webforms.pagerequestmanagerparsererrorexception"
Please help me.
|
|
|
|
|
|
Thanks For Reply..
But as i know the google is best serch engine ..i have all ready use that ...after all search i have post this question
|
|
|
|
|
So are you saying, above links and Google both didnt help you?
|
|
|
|
|
|
If you havn't noticed then first two links in the answer provided by me are the same ones!
|
|
|
|
|
hi sandeep,
i am really sorry ,i didn't notice that .i only seen the google link. after that i read the reply of that message.
Raju.M
|
|
|
|
|
How to call serverside function in JavaScript?
I am working on VS2008,ASP.NET,C#
|
|
|
|
|
This will get you started: Page Method[^]
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
i have windows vista home edition & it is not supporting IIS 7.0....is there any other web server in which i can run my ASP pages??
|
|
|
|
|
Try Apache[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
Another alternative would be Cassini[^]
I are Troll
|
|
|
|
|
i try both servers but Browsers showing an error tht Failed to establish a Connection to the server...
i try many servers but itz not connecting....
it there any propeties which i have to set??
|
|
|
|
|
humais wrote: it there any propeties which i have to set??
No, shouldn't be required. You're connecting to localhost?
I are Troll
|
|
|
|
|
Yes i'm trying to connect with the local host but itz not connecting...
|
|
|
|
|
I can only guess at the problem at this point; Cassini won't install on this system. In theory you should be able to point your browser to 127.0.0.1 and at least serve some HTML files.
Is the Cassini-application running and visible in the system tray?
I are Troll
|
|
|
|