Saturday, July 20, 2013

RadioButtonList with ListItem collection datatext and datavalue field issue

Hi ,
Radiobutton list is working fine with List but if we want to bind with listitem collection then , it bind the text value with value field as well.
so, following is the sample code which solves this issue.

 
 RadioButtonList.DataSource = itemCollection; // this is list Item collection
 RadioButtonList.DataTextField = "Text";
 RadioButtonList.DataValueField = "Value";
 RadioButtonList.DataBind();


:) 

Saturday, July 7, 2012

sharepoint inbox automatic login

In order to login the MyInbox automatically, please configure the Outlook web access(OWA) to use Windows Integrated authentication, and make sure we can use the Internet Explorer(IE) to access the mail box without login.
If you are promptting login dialog, it might be caused by the IE cannot use the current credential to access the mail box. Please follow these steps to fix it:
  1. Open IE
  2. Click the menu Tools > Internet Options...
  3. Go to "Security" tab
  4. Select "Intranet sites" or "rusted sites" zone
  5. Add the OWA to the zone.
  6. Click OK to apply.
  7. Click "Custom Level"
  8. Check the item "Auto logon with current username andd password"
  9. Click "OK" to apply.
Now, you should be able to access the OWA without login, and then you are able to access the MyInbox directly within a SharePoint site.

Sunday, June 17, 2012

How to fix outlook activex outlctlx.CAB problem ( it can ‘t open second time)

How to fix outlook active x problem ( it can ‘t open second time)
Acutally I have experience this problem in my project.it open first time email but when I try to open it second time it hangs and have refresh browser.
First:
It happen with Outlook 32 bit
Resolution:
Updated the registry in your client machine with the following setting.
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Options\Shutdown]
Added the following value to the key:
“AllowShutdownWithExternalReferences”=dword:00000000

Wednesday, April 11, 2012

why nintex task take time to assign

In state machines and loops, by default, a 1 min delay is inserted to prevent a user from accidentally creating a workflow with an infinite loop and hogging system resources. Unfortunately, a 1 min workflow delay in SharePoint usually translates to about 5 mins.

This is called 'safe looping' and can be disabled in Central Administration under Application Management -> Nintex Workflow -> Global Settings -> Enforce safe looping workflows. After you disable it, reset iis then re-publish your workflow. You should then see the state transitions happen immediately without delay.

Thursday, May 12, 2011

Importance of Fault contact in web service.

I have gone through some articles about the importance of fault contract in SOA.
I got this perception that fault contract is not only necessary for the client but it also more describe your service.

Fault contract is a very good approach to describe the possible error so , client will know in advance and safe to face any surprise behavior. Client can handle this exception and write his logic because he is well aware about, what will happen after anything wrong.
Now the question come how we can implement fault contract.
There could two (2) ways implement it.
1) specify it in wsdl document.
2) make your own exception.

Lets discuss one by one.
1) specify it in the wsdl
One of the best approach to define you contract first before writing any code, there is debate on code first vs. contract first approaches. Everyone accepts contract first approach is very detail and less prone to error approach. As the matter of fault contract we can define in code or contract both will resolve at the end in wsdl.
Advantage of this approach is:
"SOAP faults are message types that are included in the metadata for a service operation and therefore create a fault contract that clients can use to make their operation more robust or interactive. In addition, because SOAP faults are expressed to clients in XML form, it is a highly interoperable type system that clients on any SOAP platform can use, increasing the reach of your WCF application. "
This is excerpt of msdn article.
This is not a new concept to define fault contract wsdl specification has this leverage to define your faults inside wsdl document. For more …
Fault contract implementation in wsdl by IBM

2) Make your own exception
This is also good approach and specially when previously established who uses custom exception Scheme. Its good for them this scheme to use it without disturbing the whole application. It comes with its own cost also because Exception will be serialized in to SOAP request. Because the behavior is not defined at designed time

Tuesday, February 15, 2011

Error Message

Error Message

Ora error: "ORA-01036: illegal variable name/number"

when it happens remove @ character in your parameters Like this

< parameter>
< parameterName value="P_ERRORTOKENID"/>
< dbType value="String"/>
< size value="100"/>
< layout type="log4net.Layout.PatternLayout" value="%property{ErrorTokenId}"/>
<\parameter>

Hosting service on IIS


The requested content appears to be script and will not be served by the static file handler.
I have solve this issue by helping this article.


Hosting service on IIS: "http://www.byteblocks.com/post/2010/03/25/HTTP-Error-40417-Not-Found.aspx"