|
Registration page....why not go with static html and grab the data in the controller? (Use knockout if you need to). Be careful with MongoDB. If you need indexes on sub-forms (usually array fields) it will bog down when collection grows. For the right project MongoDB is awesome. Cheers (but I feel the pain).
|
|
|
|
|
charliebear24 wrote: Be careful with MongoDB. If you need indexes on sub-forms (usually array fields) it will bog down when collection grows.
I hope to go to my grave without ever having to use a NoSQL database.
charliebear24 wrote: Registration page....why not go with static html and grab the data in the controller? (Use knockout if you need to).
Ah, so many different solutions, so little time.
Marc
|
|
|
|
|
Marc Clifton wrote: I installed RazorEngine so that I could generate some HTML directly from a template to create the body of a registration email.
Ain't string.Replace , simple enough? I never had any problems with Razor the way it is meant to be used with MVC (rendering views).
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
----
Our heads are round so our thoughts can change direction - Francis Picabia
|
|
|
|
|
Fabio Franco wrote: Ain't string.Replace , simple enough?
You're absolutely right, but I thought I might see how this is done for something simple (where string.Replace would indeed work much less painfully) in case I want to use RazorEngine for something more complicated later on.
So, in some ways, it's good I learned about this now.
Marc
|
|
|
|
|
Got ya, I'm sorry I can't give you any advice on a good tool for that. I never had to do anything overly complicated
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
----
Our heads are round so our thoughts can change direction - Francis Picabia
|
|
|
|
|
I guess i gotta step in and save all your asses then
Swig.JS[^]
Does everything that Razor can do in pure JS...
I use it all the time when converting solutions from MVC to Larvel/PHP, the programming model is almost identical..
Shawty
|
|
|
|
|
Peter Shaw wrote: I guess i gotta step in and save all your asses then
Swig looks cool, but I really do not want to be coding in JavaScript as the primary language, especially on the server-side, which is also why I'm not particularly interested in node.js, though at some point I'll take a poke at is.
Marc, the Biased
|
|
|
|
|
It's not as bad as it looks Marc
and this is coming from someone who'd still write everything directly in ASM if it was an accepted route...
|
|
|
|
|
Peter Shaw wrote: and this is coming from someone who'd still write everything directly in ASM if it was an accepted route...
Heh. I'm with you there!
I did take a closer look, and yes, it doesn't look that bad. What I'd love though is for a proper "page designer" that would just figure out all the damn CSS, HTML, model, and "view-code" for whatever view engine I want to use. Doing web development is like going back to the stone ages. Or probably more accurately, being thrown into the cockpit of a 747 and told to land the plane with a 50 MPH crosswind on instruments alone.
Marc
|
|
|
|
|
I might actually be able to help you there... well if I ever get the project I started finished one of my many temporarily abandoned ones.
|
|
|
|
|
Peter Shaw wrote: I might actually be able to help you there...
Landing a 747?
Actually, I'm using Razor at the moment for a fun little pro-bono project, putting together a website for the Dartmouth MA Department of Public Works -- did we talk about that before? If you want to get involved, the code base is here[^] and the website is here[^] -- takes forever to spin up. I'm looking into Razor Generator[^] to speed up the first-time page loads.
Marc
|
|
|
|
|
That too....
|
|
|
|
|
Hello everyone !, Please Help !
I'm going to insert IP Address Control to List Control Column.
How Can I Insert IP Address Control to List COntrol?
|
|
|
|
|
|
Step 2) try to be a bit more clear on what your asking... if you sledgehammer a question, you'll get sledgehammer responses.
|
|
|
|
|
First, take a deep breath. Most everyone has gone through the "first time" experience. Remember that it's OK if you List a bit and lose control.
Marc
|
|
|
|
|
Every once and awhile I run across a link where the site insists that I sign in with a paid subscription account in order to view the article. If I cannot get around the block (turn off JavaScript, etc) then I simply leave the site.
I'm not paying to read some idiot's analysis of the news.
It would make sense to pay for the news if there was one site out there but the fact is I can get access to hundreds or thousands of opinions on a particular news item. Why would I pay to read an article in the Financial Times about ISIS when I could read about it in a Syrian newspaper?
I really think the paid news sites just haven't quite caught onto how the internet works yet. For example, I've two books on my shelf that I'm studying and I've contacted the authors of each book with additional questions and I've received responses. They want me as a fan so I buy their next book and I want answers. It is next level access for free that works great.
I get the feeling the old paper mags, in trying to go to the web, still don't get it.
Do you pay for your news?
|
|
|
|
|
I don't.
And because I don't want to see any news I wish no one would provide free news.
modified 10-Nov-14 21:42pm.
|
|
|
|
|
|
"But just because he doesn't do what eveybody else does..."
|
|
|
|
|
No. I can get everything that I need for free; BBC, CNN, Telegraph, etc., etc. Printed media is so 20th century and the web sites that cling to the rather quaint notion that people will pay for what you can easily get for free is rather sweet.
|
|
|
|
|
I only pay for something when i very need it and cannot find it at other sources.
In code we trust !
|
|
|
|
|
I get enough "news" shoved onto my phone that I rarely have to go hunting for rubbish to read. The various mandatory news/information/garbage feeds on a samsung device are a bloody good argument for rooting a phone!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
No. All the news I need to know I get reading the Lounge.
For example, as far as I can tell, no network reported that Jack Bruce died. Codeproject did.
QED.
That reminds me. I need to find my Cream DVD.
What we got here is a failure to communicate
|
|
|
|
|
The almost only place I read is:
http://www.codeproject.com/Insider.aspx[^] and it is free
About the rest of the news... I only read very few ones.
Just to know that the world is crazy and the people is even crazier... not worth.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|