Create A Regular Express Pattern Which Has 30 Charater Fixed Length??
Feb 8, 2011
How can I create a regular express pattern which has 30 charater fixed length, but the charater in the pattern could be less than 30 and pad with spaces.For example, I want to enter these kind of values:
i want to ask question i have simple regular expression pattern like "[ABC]" when i add it to me class
[Code]....
it is working good when i add A , B Or C as i need.but if i copy this pattern and paste it in my regular expression validator control it is not working
how can i validate a textbox with 5 number only are allow to fill in and first number must number 3. For example like 3XXXX,3YYYY (X and Y are number).
I need to create a Fixed width File with the data from DataSet which is loaded from SQL Server SP. I could find anything useful so far while searching.
I'm working through the nerddinner MVC tutorial, but making slight changes for it to fit my project.I have a FormViewModel which works fine in creating a SelectList for the Edit View, however it doesn't work for the Create view as the selecteditem is null;
var btypes = from BikeTypeID in db.BikeTypes select BikeTypeID;
I am trying to create a gridview with a fixed number of rows (5). If the gridivew contains no items then five blank rows will be shown. For each row that a user enters then a blank row will be removed so that there will be a constant number of rows displayed. How might I go about doing this?
We have an ASP.NET MVC site that uses Entity Framework abstractions with Repository and UnitOfWork patterns. What I'm wondering is how others have implemented navigation of complex object graphs with these patterns. Let me give an example from one of our controllers:
[code]....
It's a registration process and pretty much everything hangs off the POCO class Person. In this case we're caching the person through the registration process. I've now started implementing the latter part of the registration process which requires access to data deeper in the object graph. Specifically DPA data which hangs off Legal inside Country.
The code above is just mapping out the model information into a simpler format for the ViewModel. My question is do you consider this fairly deep navigation of the graph good practice or would you abstract out the retrieval of the objects further down the graph into repositories?
Does anyone have a working pattern for converting a GET-POST-GET pattern to asny?
I'm encountering the following issues:
1. You cannot mix Sync and Async action methods SubmitForm(), SubmitFormAsync(bool? confirm), SubmitFormCompleted() ... (because the resolver gets all confused ... it doesn't use the HTTP verb to decide who to target. BTW: I think that's poor design, or a bug)
2. Renaming the get method name to something else eg: SubmitFormConfirmation(), SubmitFormAsync(bool? confirm), SubmitFormCompleted() would be very awkward if it works ... because you have to doctor the <form markup to specify an action name.
3. You cannot give them all async names SubmitFormAsync(), SubmitFormAsync(bool? confirm), submitFormCompleted(), because the call just keeps malfunctioning. It sometime even behaves as if you are requesting a delete of something.
Can someone give an insight from an actually working sample.
Now that the next version of ASP.NET MVC is being prototyped and previewed (ASP.NET MVC 3 Preview 1 came out a couple of weeks ago), I wonder if we should call the attention of the Core Dev team (S Hanselman, Phil Haack and all) to this "feature."there a easy/non tacky way of associating subdomains → areas?Something like: [URL]Also, whats the best accepted design pattern in implementing PRG pattern in ASP.NET MVC? I guess it should also get some official loving in MVC 3.
I want to create Regular Expression for phone number and valid digits allowed are (,),-,+,0----9. If the left bracket ( is there,then its necessay that right bracket is also there. How to create the Regular Expression for the above. I dont know how to create the regular Expression,
what regular expression should i use to validate cricket overs in textbox. like it can be 5.1, 5.2,5.3,5.4,5.5 but it should not contain fraction value greater than .5 ,also the values should be numeric only (float and int)
I need a way to create a regular expression from a string or an array of domain names. for example string array = [URL]. Once I click save I would want to create a regular expression that would match all 3 with or without '.com' extension. Then Another task would be to pull this data out of regular expression and put it back into an array.
I need to construct a regular expression for the password textbox, Min:8,Max:16 and must include atleast a number(0-9),alphabets upper and lower case. I am unable to limit the length to 16.
Have just loaded VWD 2010 and tried to create an SQL DB, the following error occurs "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user interface. The connection will be closed."
I like to create a new user webform. I like to have multiple textbox fields for the new user to enter and would like to use the inbuilt ASP SQl express to administer. I read somewhere to use Membership.CreateUser API but not sure what that is?
Is it as simple as dropping textbox in a webform and in webconfig options place a line of code?
I have an SQL Server database.I am using Microsoft Visual Web Developer 2008 Express to develop my application. What I seem to be lacking is the ability to create reports. Is there any report generation software that will work with 2008 Express?
Using Visual Web Developer 2008 Express with what I'm assuming is Sql 2008 Express. Using SqlDataSource, when I try to configure a data source, I'm able to input a server name: (local)sqlexpress and the "Test Connection" button shows that it was successful. However, if I type in a new database table name and VWD 2008 asks if I would like to create it, I keep getting the message: "OBJECT REFERENCE NOT SET TO AN INSTANCE OF AN OBJECT." No idea what that means or how to fix it. I can't open theDatabase Explorer View.