|
Thanks.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Good answer! I was think about using switch case with in a loop, but this is even simpler!
Very good & Thanks!
|
|
|
|
|
hii all....
i am using role and membership provider in my website.The default password validation
when we create new user is given such that the password length must be atleast seven characters and shud be alpha numeric.I want to cutomize this validation to make it simple for user.how can i do it.plz guide me.....
thank's in advance.........
|
|
|
|
|
Add a validator (or two)to the password text box so that it checks for the character size and characteristics you are after...
|
|
|
|
|
Below Is the sample to Customize in web.config file..!
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
connectionStringName="MyAspNetDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
applicationName="YouApplication"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="100"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</membership>
|
|
|
|
|
|
Any Time..!
|
|
|
|
|
|
Hi!
How can I create a ItemTemplate Checkbox that that gets the data from a database and display only the checkboxes and not the TRUE or FALSE text.
The Code I currently have looks like this:
<asp:TemplateField>
<ItemTemplate>
<asp:Checkbox id="chkLunch" runat=Server Text='<%# (DataBinder.Container, "IsLunch")%>'></CheckBox>
</ItemTemplate>
</asp:TemplateField>
If I change the "Text" to "Checked" I get a Cast error.
Can anyone please help?
Illegal Operation
|
|
|
|
|
Use ctype function.
Be an Eagle, Sky is Yours.
|
|
|
|
|
and that would mean? I am using C#
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: <asp:checkbox id="chkLunch" runat="Server" text="<%# (DataBinder.Container, "IsLunch")%>">
Use Checked Property for that.
Like :
<asp:Checkbox id="chkLunch" runat=Server Checked='<%# Convert.ToBoolean(Eval("DBField")) %>'.....
DBField should the field of your database.
It will resolve your issue.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Sorry, I didn't see your post before replying, so replied similar answer.
|
|
|
|
|
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Try this:
<asp:CheckBox ID="chkLunch" runat="server" Checked='<%# Convert.ToBoolean(Eval("IsLunch")) %>' />
This should work provided IsLaunch should return value that is convertable to Boolean.
|
|
|
|
|
Thank you very much!! Your answer solved my problem.
Illegal Operation
|
|
|
|
|
Have you tried like this :
<asp:templatefield headertext="Author Name">
<itemtemplate>
<asp:Checkbox id="chkLunch" runat="server" Text= '<%# Eval("IsLunch") %>' />
</itemtemplate>
Means have you placed in the ItemTemplate of asp:templatefield ?
|
|
|
|
|
Hi
How can i attach a procedure to a control from the same type in all pages in my asp.net application?
I use masterpage.
|
|
|
|
|
Member 3082665 wrote: How can i attach a procedure to a control from the same type
I didn't get your question, can you be please explain in details.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hello,
how to declare an enumeration or a reonly variable or a constant in a web service ??
regards.
dghdfghdfghdfghdgh
|
|
|
|
|
The same way you would do in any other class
Alexei Rodriguez
|
|
|
|
|
Hi great minds,
A asp.net app that make use of Anthem ajax-enabled controls, and some javascript as well, has suddenly stopped working. Ajax controls no longer issue their requests and on top of this, javascripts no longer work.
Javascript stopped working first and a day or two later the anthem controls. We get no compliler errors or whatsoever. I thought the IDE got broken because a previous OPERATIONAL version works on another computer, but not in one I am using. I have re-installed VS2005 but it still does not work.
Would this be due to one of those windows updates? any sugestions?
thank you so much for your time and help.
Joe.
|
|
|
|
|
Hi ,
I want to place text box in grid view so that i can edit from grid view itself and also want to perform validation
can any one suggest me some link
Thanks and regards,
Amit Patel
|
|
|
|
|
See,
You can use TextBox in Gridview using Template Field .
Ref: Template Field in Gridview[^]
Amit Patel1985 wrote: i can edit from grid view itself
Grid View having inbuilt features of Edit. You need to enable the Edit Mode of Gridview and Handel the RowEditing events.
Ref : GridView Row Edit[^]
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|