Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

String manipulation in C#. Inserting "+" between words -


this far have got. thinking stuff string array, format , recast string.

    //input search term     console.writeline("what search query?:");     string searchterm = console.readline();      //stuff search term array split out     string separator = " "; //assumes search terms separated spaces     string[] searchtermarray = searchterm.split(separator.tochararray());      //construct search term     string searchtermformat = "";      (int = 0; < searchtermarray.length; i++)     {         searchtermformat += searchtermarray[i] + "+";         //console.writeline(searchtermformat);     } 

desired output

word1+word2+word3 

where number of words not fixed.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -