Archive for July, 2008
xsl to find a specific string in the element
I have a xml sample file generated from the schema.
<ns0:PurchaseOrder xmlns:ns0=”http://yourprojectname.Schemas.PO”>
<PONumber>PONumber_0</PONumber>
<PODate>1999-05-31</PODate>
<POQty>POQty_0</POQty>
<Customer>
<Name1>BiztalkServerGuide</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a specific string in the element , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”AnyNameofYourChoice” match=”//*[contains(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.Schemas.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''], ‘BizTalkServer‘)]”>
<xsl:element name=”containsBiztalkServerGuide”>
“Contains BiztalkServer String”
</xsl:element>
</xsl:template>
Thanks
Posted: July 29th, 2008 under BizTalk.
Tags: BizTalk, call template, mapper, xslt
Comments: none
xsl:template’ cannot be a child of the ‘xsl:template’ element
when you try to add a <xsl:template> element within a <xsl:template> element
<xsl:template>
<xsl:template>
</xsl:template>
</xsl:template>
and try to test the biztalk map, the compiler will throw an error stating xsl:template’ cannot be a child of the ‘xsl:template’ element.
Posted: July 26th, 2008 under BizTalk.
Tags: BizTalk, Map, xsl
Comments: none
The permissions granted to user ‘NT AUTHORITY\NETWORK SERVICE’ are insufficient for performing this operation. (rsAccessDenied)
I created a report in the development machine and pushed the same onto the server , I am calling the report using the report server url directly using response.redirect in the asp.net application, now it works well in my development machine, but the same doesnt work in the server throwing the above error, i tried [...]
Posted: July 17th, 2008 under BizTalk.
Comments: none
MOSS Ajax dropdown as the provider and gridview as the consumer
I was able to populate the user id’s in the dropdownlist and on selection of any one of the user id in the dropdownlist was able to display the details in the asp.net gridview on the MOSS using Ajax,
I placed the dropdownlist in the provider and asp.net gridview in the consumer, created a sql data [...]
Posted: July 14th, 2008 under BizTalk.
Tags: Ajax, Consumer, MOSS, Provider
Comments: none
Asp.net Usercontrols on Sharepoint with the help of Smart parts - continued
Hello everyone,
I did try to install and run the sample provided with the setup for smart parts for Ajax, every thing worked fine as expected, and i have drop down box in the provider and on selecting any of the values in the drop down (provider) and the same moves to the label [...]
Posted: July 9th, 2008 under BizTalk.
Tags: MOSS, Sharepoint, smartparts
Comments: none
asp.net encrypting querystring in the URL
I didnt find a c# version to encrypt query strings in the url, please find the same below..
use System.Security.Cryptography;
System.IO;
System.Text; name spaces
public class QueryStringEncryption
{
byte[] key = { };
byte[] IV = { 0×12, 0×34, 0×56, 0×78, 0×90, 0xAB,0xCD, 0xEF};
public QueryStringEncryption()
{
//
// TODO: Add constructor logic here
//
}
public string Encrypt(string stringToEncrypt, string SEncryptionKey)
{
try
{
key = System.Text.Encoding.UTF8.GetBytes(SEncryptionKey.Substring(0, 8));
DESCryptoServiceProvider des = new DESCryptoServiceProvider();
byte[] [...]
Posted: July 7th, 2008 under BizTalk.
Tags: asp.net, c#, encryption, query string
Comments: 2
Getting the value of asp.net control using Request.Form
you have an asp textbox with the id as txtBox and the button as btnSubmit ,
now you enter the text as “Sample” in the textbox, on click of submit, in order to get the value of the textbox .
you need to put the name in the Request.Form, like Request.Form["txtBox"], now if you have a master [...]
Posted: July 3rd, 2008 under Uncategorized.
Tags: asp.net
Comments: none
Asp.net Usercontrols on Sharepoint with the help of Smart parts
Couple of years back i worked on share point 3.0 development, where the scenario was to display a data grid on the share point, I found a way to achieve the same by using the smart parts, you need to create an asp.net web application, place the dll in the bin directory of the sharepoint [...]
Posted: July 1st, 2008 under Uncategorized.
Tags: asp.net, MOSS, smart parts, user controls
Comments: none