As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I need the customized Texbox like the below in Silverlight or Windows Phone platforms. That will be splitted based on the mask which has been applied to the control. I was looking over the internet and did not find anything.
I guess you cannot get away without creating a custom control. If you say split should be based on some mask, then, I guess, there could potentially be any number of text boxes inside, i.e. from 1 to unlimited (theoretically). Then you probably need to consider moving input focus between fields based on user input. Based on all this, custom control is what you need. If you have no previous experience with custom controls in WP or Silverlight, I suggest you to take a look here.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm asked to build a simple web site. Every page of this site is mainly text. I want them to be able to change all the text dynamicly.
What is a better way:
1) To store all the text in database.
2) On text change replace existing aspx file with new one with changed text.
I would prefer a way where the changed pages will load faster on client side
Given these requirements, your best solution is a CMS (content management system).
There are plenty of options for asp.net, like Umbraco, DotNetNuke etc.
Doing this by storing all the text in the database will be just like implementing a CMS. The second option is really really old school. You may as well put static html pages on the server in that case.
You should change text in the controller. Don't replace pages.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
A user can enter HTML that will later be displayed to other users. The WYSIWYG plugin i'm using sanitizes the HTML from the front end. It removes all potentially malicious tags (script, src, anything starting with "on" etc) I obviously need to do some validation in the back end as well.
Does anyone know of a good solution for C#? I keep seeing this http://roberto.open-lab.com/2010/03/04/a-html-sanitizer-for-c/, though I'm a little hesitant to use some code from a random blog. Are there any well known plugins? What do most people do in this situation?
You can use HtmlAgilityPack, which is a well maintained library for all things related to HTML tags. A best practice would be to implement a White List, which is a list of allowable tags. This SO question might be exactly what you need:
HTML Agility Pack strip tags NOT IN whitelist
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
This might be a bit silly question since it's all about terms and naming, but I find it important for me to name my methods correctly.
I'm creating a windows form and I need a method that sets buttons' and textboxes' sizes and locations (at initializing process, and every time my form gets resized). What should this method be called?
At the moment I'm using name SetSizeAndLocation();, but I find it quite disturbing. Is there a common term for size and location?
i often find that position+dimension of a window are referenced together as "geometry" of the window, e.g. in tcl/tk windowmanagement.
you also find this in the X-window system.
In Windows Forms, the Control.Bounds property allows you to get or set a Rectangle that contains both the size and location of a control, so I think SetBounds would be a good name for your method.
Rectangle. Like the shape of a window. A rectangle object consists of both the location and size of a rectangular shape.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Please suggest a good calendar control which i can use in my app in windows phone 7.
My requirement is to change the background color of selected date and also have multi select option.
When I was in need of a calendar control, I had found these.
http://maheshprasad.blogspot.in/2010/12/calendar-control-for-windows-phone-7.html
http://wpcontrols.codeplex.com/
But I ended up making my own custom calendar.
our calendar should do what you want: http://www.componentone.com/SuperProducts/CalendarPhone/.
But it's not free
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
The file system explorer window in Vista and Windows 7 has a bar at the top of the window where one can type in the address to look at. When you leave the field it turns from being a text edit field to a field with buttons and drop down menus that can be used for navigating.
Are there any existing components like this? How can one go about building this type of component?
Spy++ shows it to be a ToolbarWindow32. So it is just a toolbar but functionality seems to have been added to it.