Main menu:

 

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Site search

Archives

Categories

Tags

Links:

Archive for August, 2008

asp fileupload control..unable to display the text from the database

I added an asp file upload control and was trying to upload the image successfully..cool.
i am adding the location of the image in the columns of a sql server table ~/yourwwwlocation/yourimagefolderlocation
now when I load the page to edit i need the ~/yourwwwlocation/yourimagefolderlocation in the file upload text box, well, i was unable to set the [...]

The significance of proxy in remoting

While i was working on a .net remoting application I was wondering why do we need a separate proxy class, why can’t we have the client calling the remote object ,can not call it directly.
This question might have been encountered by many techies, but very few people try to digg into the details..
The answer to [...]

Autocomplete ajax tool kit

Scenario
you have a global search box on your website and when you input the first character of the first name , all the words which starts with that particular word will be displayed in the list box. the good thing is that as its an ajax control,  its fast enough without the post back, its [...]

Error while decrypting the encrypted querystring due to the space in the querystring

One of my blog reader posted the below question, Well , I was expecting this question as I had encountered the same issue and resolved. Please find the question along with the resolution as below.
Hi
I have tried the above code, and found a problem -
The encrypted value of 4 is S91QD+K0/u8=. When I pass this [...]

XPath String Operators and Functions

XPath 1.0 have many string functions:
concat(string string1, string string2, …)— This function returns all strings you pass to it concatenated (that is, joined) together.
contains(string string1, string string2)— This function returns true if the first string contains the second one.
normalize-space(string string1)— This function returns string1 after leading and trailing whitespace is stripped and multiple consecutive whitespace [...]

Create a Customer Dashboard in SharePoint

[youtube=http://in.youtube.com/watch?v=ITPHd5BmRaM]

Design patterns

Design pattern are the standards and best practices used to accomplish a particular goal, well there are various design patterns, they are Abstract factory pattern, Builder pattern, and Factory pattern.
Abstract factory pattern : Its a pattern where you create the interface and the interface expose the properties , methods , events and classess..
Like I have [...]

Windows SharePoint Services server architecture

Courtesy:Microsoft

xsl how to count the nodes in a xml file

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>Google</Name1>
<Name1>Google web</Name1>
</Customer>
</ns0:PurchaseOrder>
now, in order to find a countthe nodes in a xml file , you need to place the below code in the buffer are of the inline XSLT call template
<xsl:template name=”MyXsltSampleTemplate”>
<xsl:variable name=”countofPO” select=”count(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''])”/>
<xsl:element name=”countofPO”>
<xsl:value-of select=”$countofPO”/>
</xsl:element>
</xsl:template>
Thanks

xsl to find whether a string starts with a word 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=”//*[starts-with(/*[local-name()='PurchaseOrder' and namespace-uri()='http://yourprojectname.Schemas.PO']/*[local-name()='Customer' and namespace-uri()='']/*[local-name()='Name1' and namespace-uri()=''], ‘Biz‘)]”>
<xsl:element name=”startsWithBiz”>
“starts with Biz”
</xsl:element>
</xsl:template>
Thanks