Tuesday, November 23, 2010

Wraping Cell Text in GridView

if (e.Row.RowType == DataControlRowType.DataRow)
            e.Row.Cells[4].Attributes.Add("style", "word-wrap:break-word;width:250px");


Thursday, November 18, 2010

Changing Apache port to 8080

  • Search for “Listen 80″, change to “Listen 8080″
  • Search for “ServerName localhost:80″, change to “ServerName localhost:8080″
  • Search for “Listen 443″, change to “Listen 4499″
  • Search for “<VirtualHost _default_:443>”, change to “<VirtualHost _default_:4499>”
  • Search for “ServerName localhost:443″, change to “ServerName localhost:4499″
Then, you should be able to start Apache successfully through the XAMPP control panel.

CalendarExtender getting overlapped when rendered

Unfortunately there is no Z-Index attribute to the CalendarExtender, unless you want to write an entire style for the calendar, which I don't want to do. However, you can extend the default style by adding the following to your CSS file:

.ajax__calendar_container { z-index : 1000 ; } 

If you aren't using a CSS file, you can also add this into the head section of your page:

<style type="text/css"> 
   .ajax__calendar_container { z-index : 1000 ; } 
and that should do the trick. It worked for me.

Tuesday, November 9, 2010

Fucntion to open link in new window

function ecrit_detail(txt)
    txt=replace(txt,"<a href", "<a target='_blank' href")
    ecrit_detail = txt
end function