.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Fauzul Azmi
Asad Ali
Post New Web Links

HtmlEditor: convert input characters to uppercase

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :ASP.Net
 
Here is the style sheet. body {  width: 100px; text-transform:capitalize;  } Only the first input character was automatically converted to uppercase. The rest inputs are not converted. Do you know what changes I need to make it work?


View Complete Post


More Related Resource Links

Cleaning a string input from bad characters

  

Can anyone advice of the best way to clean an input string from characters that will cause SQL Update error? For instance:

Dim sText as string = 'this is line to a break <br>  before the end.'
Dim SQLString as string = "update sometable set somefield='" & sText & "'"

Executing SQLString will fail because of the <br> it contains. Any idea how to filter out all possible characters that will cause the update query to fail?


Convert System.Window.Forms.Keys into WPF (system.windows.input.key)

  

Hi,

I am trying to add some short cuts to my WPF app. I read an xml file which especifies the shortcut key with it is system.windows..forms.keys value (e.g: 114, that will be F4)

The idea of having to create a switch to return the right key based on it is value it is, to say the least, horrendous, so before I start doing that :( ... does anyone knows how I can convert that value into a system.windows.input.key? Any help will be appreciated.

Thanks

 


Using a CompareValidator to check input is a valid date

  
The CompareValidator can do more than just compare two controls. You can also compare it against several of the main .net data types such as Date, Integer, Double and Currency.

To do this you would set Operator="DataTypeCheck" and instead of setting the ControlToCompare or ValueToCompare attributes as you normally would you use the Type="Date" (or any of the data types I have listed above).

Convert English to Arabic number without changing any regional settings in .net

  
Well, most applications that I worked with was multilingual that supports English UI and Arabic UI.

And one of the major issue that we have faced is displaying Arabic numbers without the need of changing the regional settings of the PC.

So the code below will help you to display Arabic number without changing any regional settings.

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site p

  

is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project

 

my current project references

 

 

 

i have a very annoying iis problem

iis server stops working until app pool is recycled

 

i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem

 


Convert excel file into xml

  

Hai, I have two columns with id,name in the excel sheet.I want to convert into xml file in the below format


<?xml version="1.0" encoding="utf-8"?>

<guide xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Boat id="1"> <name> Copper Kettle </name> </Boat> <Boat id="2"> <name> Copper Penny </name> </Boat> <Boat id="3"> <name> Copperhead </name> </Boat> <Boat id="4"> <name> Coppertone </name> </Boat> <Boat id="5"> <name> Copy Boy </name> </Boat> </guide>



suggest me with sample code in ASP.NET. Thanks


Thanks

Problem Cleaning Illegal Characters out of an XML String

  

Hi,

I'm trying to strip illegal characters out of an XML string before I send it off to a public web service.  The xml will look something like this:

<rid>41</rid>
<field name="first_name">George</field>
<field name="last_name">Harrison</field>
<field name="notes">This is a note.  Any character could appear here</field>


I need to pull out any ampercand (&) charachters in the any of the fields, as well as any < or > characters, which would make the XML unreadable.

I've tried it like this:

Private Shared Function cleanQuery(ByVal queryNode As String) As String 
    Dim root As XElement = XElement.Parse(queryNode) 
    For Each x As XElement In root.Elements 
        x.Value = x.Value.Replace("&", "&").Replace("<", "<").Replace(">", ">") 
    Next 
    Return root.ToString() 
End Function


 

That doesn't work so well.  I get the error stating:

     There are multiple root elements. Line 1, position 15.

I tried wrapping the XML in a single root element, like this:

Private Shared Function cleanQuery2(ByVal q

convert SQL data to EDI 835 file

  

I was assigned to create a app to convert SQL data to EDI 835 file. (Electronic Data Interchange file for Health Care Claim Payment/Advice,  outbound process only).

Can someone help me where to start?


IE 8 Issues with Chinese/Japanese Characters

  

On my web application, I display information in different languages. Everything works fine in IE compatibility mode and FireFox but it shows boxes for chinese/japanese languages. I am pretty much having the same issue as described here

 

http://tuts9.com/questions/22344/japanese-characters-are-not-displaying-correctly-in-ie-8-not-sure-about-earlier-versions

Thanks for your help.


Store and display Japanese characters

  

Hi,

Can anyone tell me the best way of storing Japanese characters through ASP.NET.
I have to put characters into a asp:textbox on one page, which saves it to an Access DB.
On a second page I want to display the content in a asp:label.

Should I store the characters directly to the database or should they be encoded, and
how do I encode the characters? 

In my web.config i have:

<globalization fileEncoding="ISO-2022-JP" requestEncoding="ISO-2022-JP" responseEncoding="ISO-2022-JP" culture="ja-JP" uiCulture="ja-JP" />  
 

On the display page I have:

<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=shift_jis">

 


Validate form input - Japanese

  

 I've searched for several hours and haven't come up with a reference - or even many discussions - of how to go about validating Japanese names, addresses, etc. When I lived in Japan websites, atm's etc. required such info to be entered with the roman alphabet but I've seen some websites that are allowing Kanji/Hiragana/Katakana. I haven't tested many of them for validation but one that I did test (after looking at the page source and discovering no client-side validation) allowed me to put this in the name field: J*=123*go^ Neat!

Any pointers/references? Thanks


Convert WCF service to self hosting application

  

 I created project as a  WCF Service application and now according to recuriment that needs to be converted as a self hosting application

How can i do this?

Converting WCF service app to Self hosting app?


How to Convert HTML to Image

  

 HI all,

I was struggling for the process/code to convert html to image. Please suggest any tutorials for this. And also any code help greatly appreciated.

 

thanks and regards,

Vijaycanaan.

 


convert jpeg to tiff

  

Hi all,

I need to comvert jpeg to tiff using c#.net

I have achieved this but problem is image size is increasing drastically. eg: 25 kb of jpeg image is converted to 650 kb of tiff image.

What should be done to have the same image size as of original or atleast double the image size as of original.

Please suggest me. Thanks in advance.


need help: HTMLEditor, Sql-Server 2005 and CrystalReport

  

Hi All,
i use the Ajax Control Toolkit HTMLEditor in VS 2008 web-project and save the formated text/content in Sql-Server 2005 - it works fine!

Now, i want print the formated text in a Report, with CrystalReport...??? is this possible?

How do i handle the process? i thing, i see the forest based on all the trees not more...

Can anyone help me? how to do?

thx
 
frank
 


Crystal Report vs 2003 convert to vs 2008 parameter problem

  

Hi friend,

I have a project develop with Visual Studio 2003, when i convert the project to Visual Studio 2005 is work well. But when i convert to Visual Studio 2008, the crystal report when have pass parameter will prompt the parameter field to re-type then show the report.

But in this converted project i create a new report and pass the parameter is ok. That means i wan re-do all report @.@??
 

Does someone can help me solve this problem??

Thank you


Convert Cold Fusion to VB.Net

  

Could someone please help me convert the following code to VB.Net?  


<cfif isdefined("form. backgroundCheckResult")> 

                [RUN NECESSARY PROCESSING ROUTINES] 

                <cfif processingStatus eq "success">

                                <cfoutput>success </cfoutput>

                <cfelse>

                                <cfoutput>error</cfoutput>

                </cfif>

 </cfif>


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend