|
Muhammad - Pakistan

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; }
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.
Pakistan - T20 World Cup Champion...
IPL - Incomplete without Pakistani pLayers

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....
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

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

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.
Today I was getting following error while writing to Event Log on Windows 2008 Server (also applicable to windows 2003 server) using .NET
The resolution worked for me was appending (A;;0x3;;;AU) in CustomSD without quotes under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Eventlog\EventLogName in windows registry where AU is referring to "Authenticated Users". Because in W2K3, the security of Application Event Log is controlled by CustomSD. After appending the value would be similier to
O:BAG:SYD:(D;;0xf0007;;;AN)(D;;0xf0007;;;BG)(A;;0x f0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)(A;;0x3;;;AU)
If CustomSD doesnt exists, then create a string named CustomSD and set its value to O:BAG:SYD:(A;;0x3;;;AU)
P.S. Be careful by taking proper backup of registry before doing any change to it.
تمام کرم فرماؤں کو میری طرف سے دلی عید مبارک
:)

http://faisalmb.com/blog/page/Ramadan-in-pictures.aspx
(Click on above link for full length pictures)
Officers of Malaysia's Islamic authority use a telescope to perform "rukyah", the sighting of the new moon of Ramadan, in Teluk Kemang, south of Kuala Lumpur, Malaysia on August 20, 2009. Muslims scan the sky at dusk in the beginning of the lunar calendar's ninth month in search of the new moon to proclaim the start of Ramadan, Islam's holiest month during which observant believers fast from dawn to dusk. (REUTERS/Bazuki Muhammad)
A Musaharati, dawn awakener, lights up a lantern before touring the streets with his drums to wake observant Muslims for their overnight 'sahur', last meal, before the day's fast in Sidon's Old City in south Lebanon just before dawn August 26, 2009. (REUTERS/ Ali Hashisho) #
Muslims attend prayers on the eve of the first day of the Islamic fasting month of Ramadan at Al Akbar mosque in Surabaya, East Java, Indoneisia on August 21, 2009. (REUTERS/Sigit Pamungkas) #
A Muslim woman prays at the Istiqlal mosque on the first day of the holy fasting month of Ramadan in Jakarta on August 22, 2009 or Ramadan 1, 1430 in the Hijriah lunar calendar. (ADEK BERRY/AFP/Getty Images) #
A Kenyan child reads verses from the Quran on the fifth day of the Muslim holy month of Ramadan in a Madrassa in Nairobi, Kenya on Wednesday, Aug. 26, 2009. (AP Photo/Sayyid Azim) #
A Palestinian boy plays with a sparkler on the eve of the Muslim holy fasting month of Ramadan in Gaza City on August 21, 2009. (MOHAMMED ABED/AFP/Getty Images) #
An Egyptian man makes a traditional dessert known as "kunava", which is popular during the fasting month of Ramadan, at a shop in Cairo August 25, 2009. (REUTERS/Asmaa Waguih) #
A Yemeni therapist applies Kohl to the eyes of a youth, in line with local tradition on the second day of the holy month of Ramadan at a Zaidi (Shiite) mosque in Sanaa's Old City on August 23, 2009. (KHALED FAZAA/AFP/Getty Images) #
Muslims attend Friday prayers on the first day of the holy month of Ramadan at a mosque in Beijing, China on August 21, 2009. (REUTERS/Grace Liang) #
A Muslim man arranges bowls of a traditional dessert called kheer for sale outside a mosque before the evening prayers on the first day of the holy month of Ramadan, in Jammu, Jammu and Kashmir, Indian-administered Kashmir on August 23, 2009. (REUTERS/Mukesh Gupta) #
A child stands among worshippers attending prayers on the eve of the first day of the Islamic fasting month of Ramadan at Al Maerkaz Al Islami mosque in Makassar, South Sulawesi, Indonesia on August 21, 2009. (REUTERS/Yusuf Ahmad) #
A man arrives for the evening prayers of the first day of the Islamic fasting month of Ramadan at Merkez mosque in Duisburg, Germany on August 21, 2009. (REUTERS/Ina Fassbender) #
Muslims shop for Iftar, the sunset dinner that breaks the fast at Chalk Bazaar, the traditional Iftar market in Dhaka, Bangladesh on Sunday, Aug. 23, 2009. (AP Photo/Pavel Rahman) #
Palestinian vendors prepare trays of sweets for Ramadan, in a shop in the West Bank city of Nablus, Sunday, Aug. 23, 2009. (AP Photo/Nasser Ishtayeh) #
A cannon fires as part of the ceremony that ends the second day of the Muslim holy fasting month of Ramadan, outside Jerusalem's Old City Sunday, Aug. 23, 2009. (AP Photo/Bernat Armangue) #
A Muslim man adjusts his cap in a mirror at a mosque on the first day of the holy month of Ramadan, in Jammu, Jammu and Kashmir, Indian-administered Kashmir on August 23, 2009. (REUTERS/Mukesh Gupta) #
A boy holds candy in his hand as he reads the Quran in a mosque during Ramadan, in Amman, Jordan on August 22, 2009. (REUTERS/Ali Jarekji (JORDAN RELIGION SOCIETY IMAGES OF THE DAY) #
A Palestinian woman walks near the Lion's Gate in Jerusalem's old city where traditional festive lights are displayed ahead of the start of the Muslim holy month of Ramadan on August 20, 2009. (MARCO LONGARI/AFP/Getty Images) #
A Muslim boy takes a nap during evening prayers called "Tarawih" at Mosque of Gamal Abdel Nasser in Tripoli, Libya on August 22, 2009. The mosque was converted from the Catholic Cathedral of the Sacred Heart of Jesus after a 1969 coup by Libyan leader Muammar Gaddafi. (REUTERS/Amr Abdallah Dalsh) #
An Iraqi baker prepares sweets for the holy month of Ramadan in Baghdad, Iraq, Sunday, Aug. 23, 2009. (AP Photo/Hadi Mizban) #
A Muslim family eats, breaking their fast in a giant tent on the first day of the holy month of Ramadan in Istanbul, Turkey on August 21, 2009. (REUTERS/Osman Orsal) #
Kashmiri Muslim offer prayer on a street in Srinagar, Jammu and Kashmir, Indian-administered Kashmir on Monday, Aug.24, 2009. (AP Photo/Mukhtar Khan) #
Pakistani women line up for subsidized sacks of flour provided by the government for the holy month of Ramadan, Saturday, Aug. 22, 2009 in Rawalpindi, Pakistan. (AP Photo/Anjum Naveed) #
A Palestinian potter engraves the expression in Arabic "Ramadan Karim" as he puts the final touches to a clay lantern at his workshop in Gaza City on August 17, 2009, ahead of the start of the holy month of Ramadan. (MARCO LONGARI/AFP/Getty Images) #
A man takes a nap in between prayers at a mosque in Kabul, Afghanistan on August 22, 2009. (REUTERS/Adrees Latif) #
Jordanian workers make qatayef, a pancake-like shell filled with nuts or sweet cheese, fried in oil or baked, then dipped in sugary syrup in Amman, Jordan on Sunday August 23, 2009. (AP Photo/Mohammad abu Ghosh) #
Egyptian women walk past paper lanterns used as decorations during Ramadan, on a street in downtown Cairo, Egypt on Wednesday, Aug. 19, 2009. (AP Photo/Ben Curtis) #
A Pakistani Muslim arranges food stuff for Iftar, a time to break the fast, on the first day of Ramadan, as a child looks on at a mosque in Karachi, Pakistan on Sunday, Aug. 23, 2009. (AP Photo/Fareed Khan) #
A taxi driver reaches for a glass of apple juice after sunset in Kabul, Afghanistan on Sunday Aug. 23, 2009. (AP Photo/Saurabh Das) #
Indonesian Muslim children parade during a ceremony called "Prayer for the Country" to welcome the holy fasting month of Ramadan in Jakarta, Indonesia on August 21, 2009. (Adek Berry/AFP/Getty Images) #
Muslim men break their fast at a mosque in the Saudi Red Sea port of Jeddah on August 23, 2009. (Omar Salem/AFP/Getty Images) #
A Muslim man sits before breaking his fast on the second day of the holy month of Ramadan at a mosque in Agartala, capital of India's northeastern state of Tripura on August 24, 2009. (REUTERS/Jayanta Dey) #
A crescent moon is seen behind the King Hussein Bin Talal Mosque in Amman, Jordan on August 23, 2009, during Ramadan. (REUTERS/Muhammad Hamed) #
Muslim children pray at a mosque during the month of Ramadan in Manila, in the Philippines on August 23, 2009. (JUNIE DOCTOR/AFP/Getty Images) #
A boy sells dates in Amman, Jordan on Saturday August 22 2009. (AP Photo/Mohammad abu Ghosh) #
An unidentified woman helps her son to kiss the iron chain at the entrance of the Naqashband Sahib shrine in Srinagar, Jammu and Kashmir, Indian-administered Kashmir on Saturday, Aug. 22, 2009. (AP Photo/Dar Yasin) #
A vendor of headscarfs waits for customers in the 4th day of Ramadan at a market in Jakarta, Indonesia on August 25, 2009. (Adek Berry/AFP/Getty Images) #
A man prays at a Sunni mosque in Baghdad, Iraq, Sunday, Aug. 23, 2009. (AP Photo/Karim Kadim) #
The Dome of the Rock, or Masjid Qubbat As-Sakhrah, one of the holiest sites in Islam, is seen on the Temple Mount in Jerusalem through festive lights for Ramadan on Tuesday, Aug. 25, 2009. (AP Photo/Bernat Armangue) #
|
|