Posted on 7:58 AM by Softminer and filed under ,

DateTime Dtnow;
Dtnow = DateTime.Now;

DateTime DtAgo;
DtAgo= DateTime.Now.AddDays();

TimeSpan tsDiff = Dtnow.Subtract(DtAgo);

string Diff = tsDiff.ToString() or tsDiff.Minutes.ToString();
Posted on 5:14 AM by Softminer and filed under

SquirrelMail is a web-based email application started by Nathan and Luke Ehresman and written in the PHP scripting language. It can be installed on almost all web servers as long as PHP is present and the web server has access to an IMAP and SMTP server.

Posted on 4:58 AM by Softminer and filed under ,

  1.  <asp:BoundField DataField="ID" HeaderText="ID" >

  2.   </asp:BoundField>

  3. <asp:TemplateField HeaderText="ID" SortExpression="ID" >

  4.     <EditItemTemplate>

  5.         <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("ID") %>'></asp:TextBox>

  6.     </EditItemTemplate>

  7.     <ItemTemplate>

  8.         <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID") %>'></asp:Label>

  9.     </ItemTemplate>

  10. </asp:TemplateField>

  11. <asp:TemplateField>

  12.     <ItemTemplate>

  13.         <asp:ImageButton ID="imgbutton" runat="server" CausesValidation="false" CommandName="Delete" ImageUrl="images.png" Text=""  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" ToolTip="delete file" />

  14.     </ItemTemplate>

  15. </asp:TemplateField>

  16. # in Code Behind

  17.  protected void Grid_RowCommand(object sender, GridViewCommandEventArgs e)

  18. {

  19.         if (e.CommandName == "Delete")

  20.         {

  21.             int rowIndex = Convert.ToInt32(e.CommandArgument);

  22.             GridViewRow row = (sender as GridView).Rows[rowIndex];

  23.             int Id = (int)Grid.DataKeys[row.RowIndex].Value;

  24.         }

  25. }

  26. protected void Grid_RowDataBound(object sender, GridViewRowEventArgs e)

  27.     {

  28.         if (e.Row.RowType == DataControlRowType.DataRow)

  29.         {

  30.             DataRowView rowView = (DataRowView)e.Row.DataItem;

  31.             ImageButton imgButton = (ImageButton)e.Row.Cells[1].Controls[1];

  32.         }

  33.     }


Posted on 4:57 AM by Softminer and filed under

this is 16 MB falsh demo of How to Model Rational RequisitePro use case requirements for Rational Software Architect.

to download go to IBM and login with your account:

Posted on 2:37 AM by Softminer and filed under , ,

with http://quickhighlighter.com/ you can make HTML code visible in your webpages

  1. <script type="text/javascript" language="javascript">
  2. document.getElementById('<%= txtUsername.ClientID %>').focus();
  3. </script>

if you want to have source code go to http://code.google.com/p/syntaxhighlighter/
Posted on 5:55 AM by Softminer and filed under ,

document.getElementById('<%= txtUsername.ClientID %>').focus();
Posted on 4:16 AM by Softminer and filed under

I have a windows mobile phone and on the CD that I have there is a TOM TOM navigator application for PC that allows me to add maps and voice to application on my phone.

but the problem was that I uninstalled the application on my phone and I wasnt able to find the sofware to install on my phone.

so if you want to install TOM TOM navigator on you phone go to


all the steps are inside the page

Posted on 8:55 AM by Softminer and filed under

I was reading an article about UML 2 and I saw this picture and I thought maybe its also funny for you
Posted on 1:34 AM by Softminer and filed under ,

1. Better GMail
Enhance the Gmail Capabilities

2. DrogDropUpload
Drop your files to Gmail for attachment

3.Video Downloadhelper
easy way to download the videos

Download Manager in FireFox

You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page...

6.Web developer
Adds a menu and a toolbar with various web developer tools.

Allows you to add style to FF and then you can add multiple style like

Bright Focus for Textboxes Only (modified) from here : http://userstyles.org/styles/10652

Display today date in Iranian calendar in the status bar.


10. Autofill forms

Posted on 6:24 AM by Softminer and filed under ,

just add following code in Page_load

Button1.Attributes.Item("onclick") = "this.disabled=true;" & GetPostBackEventReference(Button1).ToString