Ultimate Collection - { fslBlog & faisalmb.com } Ultimate Collection - { fslBlog & faisalmb.com }   
Blog   |   Site   |   Posts (326)   |   Tags Xplorer   |   Feed Subscribe Free! Welcome buddy @ home... Sign in    Partner Site - Real Home Contact Search   

Fri

26

Feb

2010

   

Eid Milad Un Nabi (صلی اللہ علیہ و سلم)



Jashn-e-Eid Milad Un Nabi Mubarak

 (صلی اللہ علیہ وسلم)

Happy Birthday of Prophet Muhammad sallalLaho alaihi wassallam

25 Feb 2010 - Saudia / UAE

26 Feb 2010 - Pakistan

 

 

Tags: , , , , ,

Categories : Reality of Islam


Thu

11

Feb

2010

   

Sharepoint - SPWeb.Groups Vs SPWeb.SiteGroups



SPWeb has two sharepoint cross-site group collection, SPWeb.Groups and SPWeb.SiteGroups.

SPWeb.Groups returns collection of cross-site groups which has some permission on the site. So if you add group from a site without any permission on the site, then this group wont appear in SPWeb.Groups collection, but it will appear in SPWeb.SiteGroups collection.

You can not use SPWeb.Groups.Add method to add new cross-site group, you need to use SPWeb.SiteGroup.Add method for this purpose.

In addition to this SPWeb has a property AssociatedOwnerGroup, which will return the required SPGroup. You can iterate the SPGroup users to get the list of all owners of the site.

 foreach (SPUser user in web.AssociatedOwnerGroup.Users)
 {
      // .. list all the users                        
 }

 

Finding and adding group

SPGroup  group = GetSiteGroup(web, "groupName");
if (null == group)
{
 web.SiteGroups.Add("groupName", web.AssociatedOwnerGroup, null, "Test Group description");
}

 


private static SPGroup GetSiteGroup(SPWeb web, string name)
{
    foreach (SPGroup group in web.SiteGroups)
    {
 if (group.Name.ToLower() == name.ToLower())
 {
     return group;
 }
    }
 return null;
}

 

 

Tags: , ,

Categories : Computers / Programming / Mobiles


Sat

6

Feb

2010

   

My Love... Muhammad - Pakistan



Muhammad - Pakistan

 

Pakistan+Muhammad.jpg

Tags: ,

Categories : Thoughts / Lessons


Thu

28

Jan

2010

   

Accessing JD Edwards Data on iSeries or AS/400 from a ASP.NET / SQL Encoding / Error problem



Accessing JD Edwards Data on iSeries or AS/400 from a ASP.NET

Facing problem, while retrieving field data from JD Edwards to SQL (SSRS Reporting), giving Error or Special unicode characters,
because, the returning data was a stream that needs to be converted into ASCII (ebcdic37String) using Cp037 Encoding.


public static String convertEBCDIC37ToUnicode(String ebcdic37String)
{
 String encoding = "Cp037";
 byte[] ebcdic;
 String converted = null;
 try
 {
  ebcdic = ebcdic37String.getBytes();
  converted = new String( ebcdic, encoding );
 }
 catch (Exception e)
 {
  //Handle it
 }
 return converted;
}

 

Tags: , , ,

Categories : Computers / Programming / Mobiles


Thu

28

Jan

2010

   

Controls not functional after Export to Excel or Export to PDF of Telerik in Sharepoint Application page



Few days before, I was having problem that after clicking on Export to pdf button / image, other controls of web part/user control stops working on the application page on WSS 3.0 environemnt that has RadGrid on it.

While the same thing was working on other asp.net application outside the sharepoint environment.

1st workaround (can be a solution)

The cause for this behavior is that there is a flag (named _spFormOnSubmitCalled) in SharePoint which prevents double form submition. This flag is set when the form is submitted and clear when the response is received.
However when exporting the response is redirected and the page is not updated, thus the flag is not cleared and page's postbacks are blocked.

In order to workaround this behavior you should manually clear the flag when exporting. This can be achieve, for example in export button's client click function similar to the following:

MyExportButton.OnClientClick = "_spFormOnSubmitCalled = false;"  

Above workaround will allow you to export multiple times, but all the other controls on the page were still not functional after the export.

2nd workaround (Not / Never recommended)

In your sharepoint master page, remove onsubmit attribute from your form tag

<form runat="server" onsubmit="return _spFormOnSubmitWrapper();"> 

and remove the onsubmit attribute.  This is what it looks like now:

<form runat="server"> 

3rd workaround (so far so good and implementable)

Add the following script to your webpart / custom control that need to have export and other controls functionals, rather then implementing the above workarounds
So here you go with the working solution.

<script type="text/javascript" language="javascript">

    //sharepoint postback to work after clicking on telerik export to pdf
    if (typeof (_spBodyOnLoadFunctionNames) != 'undefined' && _spBodyOnLoadFunctionNames != null) {
        _spBodyOnLoadFunctionNames.push("supressSubmitWraper");
    }

    function supressSubmitWraper() {
        _spSuppressFormOnSubmitWrapper = true;
    }
   
</script>

 

Hope this will helps.

 

Tags: , ,

Categories : Computers / Programming / Mobiles


Mon

25

Jan

2010

   

IPL - Incomplete without Pakistani pLayers



Pakistan - T20 World Cup Champion...

IPL - Incomplete without Pakistani pLayers

 

IPL+Pakistan+Players.jpg

Tags: ,

Categories : Health / Medical


Sat

16

Jan

2010

   

Paris Hilton's Latest and Hottest Clips.....Never Seen Before....



Hollywood actress

 

Paris Hilton's

 

Latest Clips......

never seen before.........

 

 

Please be alone in your room before viewing them

so you would not feel emabarassed any more

 

Scroll down and hold your breaths....

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

 

paris+hilton+clips.jpg

Tags: , ,

Categories : Funny / Jokes / Entertainment


Sat

16

Jan

2010

   

Amazing Street Art



Chalk Guy with Amazing Positively Outstanding Art on Streets

street_paint001.jpg

street_paint002.jpg

street_paint003.jpg

street_paint004.jpg

street_paint005.jpg

street_paint006.jpg

street_paint007.jpg

street_paint008.jpg

street_paint009.jpg

street_paint010.jpg

 

 

street_paint011.jpg

street_paint012.jpg

street_paint013.jpg

street_paint014.jpg

street_paint015.jpg

street_paint016.jpg

street_paint017.jpg

street_paint018.jpg

street_paint019.jpg

street_paint020.jpg

 

street_paint021.jpg

street_paint022.jpg

street_paint023.jpg

 

street_paint024.jpg

street_paint025.jpg

 

Tags: , ,

Categories : Cartoons / Pic Shots


Sun

6

Dec

2009

   

Sindhi Topi and Ajrak Day - A Symbol Of Love



Sindhi Topi and Ajrak Day 6th December - A Symbol Of Love & Peace

 

sindhi+topi+ajrak.jpg

 

Tags: , , , ,

Categories : Cartoons / Pic Shots | Knowledge / Amazing


Sat

5

Dec

2009

   

Against Terrorism



Following are the orders that comes to the conduct of War.

1. Do not commit treachery
2. Do not deviate from the right path
3. Do not mutilate dead bodies
4. Do not kill children
5. Do not kill women
6. Do not kill aged men
7. Do not harm or burn trees
8. Do not destroy buildings
9. Do not destroy an enemy’s flock, unless you use it for your food
10. When you pass people who have devoted their lives to monastic services leave them alone

Above orders given by Muhammad (peace be upon him) which must be obeyed by every Muslim against every Non Muslim.

There is nowhere in Islam, whether it be in the Quraan or the teachings of Muhammad, that promotes the killing of innocent people. A real muslim is one that is real against terrorism.

 

Tags: , , , , , ,

Categories : Knowledge / Amazing | Reality of Islam





Intro

Faisal Bashir
Software Architect
KalSoft Limited
Microsoft Certified Technology Specialist.
Currently in Dubai. [more]

Recent Comments

Comment RSS

Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234

View posts in large calendar

Seek knowledge, from cradle to grave. (Muhammad - peace be upon him - sallallaho alaihi wassallam)
210379 hits. (Best viewed @ 1024x768 resolution min.) Comments here...
© 2001-2009 Muhammad Faisal | Disclaimer | Contact | Partner Site