Google roman Urdu to Urdu converter

Filed in Google Products Leave a comment

A fantastic tool by Google which convert your Roman Urdu to Urdu, which looks very cultural. You can download it and then can be run on any text editor.

http://www.google.com/transliterate/indic/Urdu#

F4V format videos not running

Filed in .Net Leave a comment

http://kb2.adobe.com/cps/402/kb402865.html

On the Windows 2003 server, open the Internet Information Services Manager.

  1. Expand the Local Computer Server.
  2. Right-click the local computer server and select Properties.
  3. Select the MIME Types tab.
  4. Click New and enter the following information:
  5. Associated Extension box: .F4V
  6. MIME Type box: video/mp4
  7. Click OK.
  8. Restart the World Wide Web Publishing service

The password-answer supplied is invalid. Create User using CreateUserWizard without entering Security Question and Answer fields

Filed in .Net Leave a comment

I need to create user using CreateUserWizard of ASP.Net Membership. By default Security Question and Answer fields are mandatory when you drag and drop the wizard. I need to create user without these fields. For this you need to set “requiresQuestionAndAnswer” flag to false in web.config membership provider setting area. After that you can remove Security Question and Answer fields from aspx  page. Below is the sample code of my web.config.

<membership defaultProvider=”CustomizedProvider”>

<providers>

<add name=”CustomizedProvider” type=”System.Web.Security.SqlMembershipProvider”

connectionStringName=”DinnerINN”

applicationName=”DinnerINN”

minRequiredPasswordLength=”5″

minRequiredNonalphanumericCharacters=”0″

requiresQuestionAndAnswer=”false”

maxInvalidPasswordAttempts=”5″ />

</providers>

</membership>

Data Handling in ASP.Net DetailsView

Filed in .Net Leave a comment

I have a date field in my DetailsView and the date which is coming from DB is the default date which is “1/1/1754 5:00:00 AM”. I need to set the value of this template field to “N/A” if it is default date.

I created below method in my code behind.

protected string ReplaceDefaultDateAsNA(DateTime discontinued)

{

if (discontinued.ToString() == “1/1/1754 5:00:00 AM”)

{return “N/A”;}

else

{return discontinued.ToString();}

}

Template field in DetailsView looks like.

<ItemTemplate>

<asp:Label ID=”Label6″ runat=”server” Text=’<%# ReplaceDefaultDateAsNA((DateTime) Eval(“LastPasswordChangedDate”)) %>’></asp:Label>

</ItemTemplate>

Reference (very good article): http://static.asp.net/asp.net/files/DataTutorials/datatutorial13cs.pdf

TOP