Assume that i cannot modify xml file. How to replace spaces with & nbsp; in xsl.. any function? please give me an xsl example... Thanks in advance.
Shiby
Posts
-
output space in html from xml and xsl -
output space in html from xml and xslI've a xml file which contains some spaces that i need to display in html when transform using xsl sample xml file
<root>
<child name="The quick brown fox jump over the lazy dog"/>
</root>As you see in the above sample xml, it contains lots of spaces that i need to display same in html. how do i do that? The issue is in html it render as The quick brown fox jump over the lazy dog. instead of
The quick brown fox jump over the lazy dog.
Is there any way by which modifying the xsl gives me the same result. Any help is highly appreciated.
-
Any Control in ASp.NETYou can use datalist to represent data in horizontal way. But you need put extra effort to put other features like paging etc for datalist control. Regards, Shiby
-
Floating panesFor VS2005, you need to install VSIP sdk, its an extensible sdk. Using VSIP you can create floating pane like properties, solution explorer etc. Also you can implement functionality similar to floating pane. Regards, Shiby
-
[Message Deleted]On the client machine you cannot create folder but on the server you can create folder provided if ASPNET account has permission. Regards, Shiby
-
Zip file in .netYes, you can do it. There is manage code dll available on the .net. I'm not sure about the name but you get it. Using the assembly you can compress and uncompress a file in .net. Regards, Shiby
-
Validation summary on Hostingcheck out javascript files presents on the production server. If not, copy it. Regards, Shiby
-
Page HeaderYou can achieve with frames. Let me know if you have any issues. Regards, Shiby
-
Asp.net CodeFollow the steps a) regiis.exe -i b) and make sure virtual directory is created. Regards, Shiby
-
web.config fileyou can use xmlWriter for this but any updation in web.config file means, restarting your application. Regards, Shiby
-
indexFor this kind of error, no one can tell where exactly it is happening in code without viewing or debugging the code. Best way is to debug your code and find out where exactly error is occuring. Regards, Shiby
-
validationYou can archieve this functionality by two ways... a) Using normal validation in javascript b) If you are using ASP.Net, then can use validation control i.e RegularExpressionValidator. Regards, Shiby
-
problem with checkbox and datagrid...string secondDGColumn = string.Empty; foreach (DataGridItem item in dataGridName.Items) { CheckBox chkFirstColumn = (CheckBox)item.FindControl("CheckBoxName"); secondDGColumn = item.Cells[1].Text; } Same way you can get all the values into some variables or any objects and use it on other places. I hope this solves your problem. :) Regards, Shiby
-
What is the Different Between Cache Object and Session Object?Cache An application's Cache object allows you to store and retrieve arbitrary data on subsequent requests . The cache is not specifically associated with a page or user session. It is used primarily to enhance application performance and it remains valid as long as the application domain remains active. In .NET: Cache, found as a property of the Page class (is the actual cache object associated with the application in which the page resides) Viewstate View state is for a page or control is the cumulative propery values, or view, of that page or control. This class is the primary storage mechanism for all HTML and Web server controls. It stores attribute/value pairs as strings associated with the control. It tracks changes to these attributes only after the OnInit method is executed for a page request, and save the changes to the page's or control's view state. You can read from this class during any stage of the control processing lifecycle, but you should not write to it while the control is rendering. In .NET: StateBag, found as a property of the Page class Regards, Shiby
-
asp.net 1.1 mailmessageWhen you are creating an object of StringBuilder, please don't need to specify following statement MsgTxt.EnsureCapacity(1500) Remove this statement "MsgTxt.EnsureCapacity(1500)" and try out, it will work. :) Please do let me know if you are facing any problem. Regards, Shiby
-
How 2 capture OK or CANCEL at the messagebox using javascript or other method???There are two location we can capture ok or cancel a) In javascript itself b) aspx or code behind In case if you want to capture at javascript level then following code help you out if (confirm("Are you sure you want to proceed ?")) // just an example { // put your code here } else { //put your code here } let me know if you are looking at page level or code behind too.
-
asp.net 1.1 mailmessageCan you please show your code. Let me look at it and get back to you. In my previous application I did the same way, it works. Regards, Shiby
-
Free ASP.Net Tree Needed UrgentYoy can download the free IE web controls for ASP.NET from http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=75&tabindex=2[^] Hope this will help you out. :) Regards, Shiby
-
horizontal scroll bar to a Select box htmlHi Shiva, please go through following article. http://www.codeproject.com/jscript/WithHorizontalScrollbar.asp[^] I hope this will help you out to overcome the select box limitations. Regards, Shiby
-
Tooltip for each items in select boxFriends, Some of the items in my listbox(Select box in html) are too big to display. Can I have a tooltip that displays the same text when I move over it? If so, how? Any help or suggestions would be appriciate. Thanks & Regards, Shiby