Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
[QUOTE=Richy19;30780108]Are there any advantages or disadvantages for using ASP.Net form elements instead of the HTML ones?[/QUOTE]
Are you referring to Razor in MVC3, or ASP.Net webforms?
[QUOTE=deadeye5362;30787030]Are you referring to Razor in MVC3, or ASP.Net webforms?[/QUOTE]
ASP.Net webforms
[QUOTE=Richy19;30787948]ASP.Net webforms[/QUOTE]
Switch to MVC before you get permanent brain damage
[QUOTE=vepa;30789002]Switch to MVC before you get permanent brain damage[/QUOTE]
I would rather just use HTML form stuff unless the ASP stuff has any direct advantages
[QUOTE=taranga;30789934][img]http://i30.tinypic.com/2qd4d5g.gif[/img]
[editline]-[/editline]
[url]http://asp.net/mvc[/url] [b]now[/b][/QUOTE]
Ok but still, why the need for these when HTML already has many of the form stuff built in?
[QUOTE=Richy19;30790112]Ok but still, why the need for these when HTML already has many of the form stuff built in?[/QUOTE]
because webforms adds an extra layer of crap to try and make the transition to the web easier for winforms developers.
[QUOTE=taranga;30790171]because webforms adds an extra layer of crap to try and make the transition to the web easier for winforms developers.[/QUOTE]
No I mean why use any of the form stuff that ASP has in the first place (be it webforms or MVC) when HTML has most if not all the form stuff already without the need for the server side stuff
Am I missing something or are SSL certificates hilariously expensive? A semi-decent one sets you back £200 a year, which seems ridiculous.
[QUOTE=leach139;30798711]Am I missing something or are SSL certificates hilariously expensive? A semi-decent one sets you back £200 a year, which seems ridiculous.[/QUOTE]
What counts as "semi-decent"?
Are thee any good tutorials on using ASP.Net C# with MySQL?
[QUOTE=leach139;30798711]Am I missing something or are SSL certificates hilariously expensive? A semi-decent one sets you back £200 a year, which seems ridiculous.[/QUOTE]
100% free, 100% valid [url]http://www.startssl.com/?app=39[/url]
[QUOTE=Richy19;30799040]Are thee any good tutorials on using ASP.Net C# with MySQL?[/QUOTE]
Why do you even need MySQL? What's wrong with LINQ?
[QUOTE=Crhem van der B;30799596]Why do you even need MySQL? What's wrong with LINQ?[/QUOTE]
ATM Im planing on using ASP on mono and MySQL is my preffered database solution.
From what I have read tho Linq is just a query language unless im missing something.
Is it possible to use link to connect to MySQL?
[QUOTE=H4Z3Y;30799177]100% free, 100% valid [url]http://www.startssl.com/?app=39[/url][/QUOTE]
[img]http://s.luaduck.co.uk/The_page_at_httpswww.startssl.com_says-2011-06-30_16.03.29.png[/img]
What the christ
[QUOTE=leach139;30798711]Am I missing something or are SSL certificates hilariously expensive? A semi-decent one sets you back £200 a year, which seems ridiculous.[/QUOTE]
Depends on the certificate, RapidSSL do a 128/256 bit encryption certificate for $10 a year. The £200 one is probably VeriSign. What kind of site is this for?
[QUOTE=Sc00by22;30801871]Depends on the certificate, RapidSSL do a 128/256 bit encryption certificate for $10 a year. The £200 one is probably VeriSign. What kind of site is this for?[/QUOTE]
Login details for starters, although I'll probably end up doing light eCommerce with it (except payments would still be handled by PP)
[QUOTE=leach139;30802156]Login details for starters, although I'll probably end up doing light eCommerce with it (except payments would still be handled by PP)[/QUOTE]
Any SSL certificate is fine for encryption, but the more expensive ones show up more to the user and thus cost more.
k guys, trying to switch to PDO...and failing.
What am I doing wrong here?
[code]$news = $db->prepare("SELECT * from 'news'");
$news->execute();
while ($result = $news->fetchObject()) {
echo "<li>".$result->content."</li>";
}[/code]
my connection is started earlier, here:
[code]$dsn = "mysql:host=localhost;port=3306;dbname=pdo_mysql";
$db = new PDO($dsn, "pdo_simon", "[removed]");[/code]
Is there any way to use microsoft databases with mono?
Or is mySQL the main one to use
Lol, my problems now go beyond that.
As part of my project i'm using a global variable array for various details, which is set out at the very beginning of the page. (Included from a seperate PHP file.)
The same PHP file also connects to the database using PDO, but i'm getting an error on L14 now.
[code]<?php
$forum=array(
//GENERAL DETAILS
"name"=>"AxBB Dev.",
"url"=>"http://pdo.elementfx.com",
"logo_url"=>"/images/logo.png",
//MYSQL
"mysql_host"=>"localhost",
"mysql_port"=>"3306",
"mysql_db"=>"pdo_mysql",
"mysql_username"=>"pdo_simon",
"mysql_password"=>"[removed]",
)
$dsn = "mysql:host=".$forum['mysql_host'].";port=".$forum['mysql_port'].";dbname=".$forum['mysql_db'];
$db = new PDO($dsn, $forum['mysql_username'], $forum['mysql_password']);
?>[/code]
That's the $dsn line, by the way.
[editline]30th June 2011[/editline]
Pssh, Tehwhale, you're only allowed to rate funnies if you answer ;D
Are there any ASP.Net developers that wouldnt mind me adding them so I can chuck a couple of questions every now and then?
[QUOTE=Richy19;30804188]Are there any ASP.Net developers that wouldnt mind me adding them so I can chuck a couple of questions every now and then?[/QUOTE]
Taranga is probably the only one here.
[editline]30th June 2011[/editline]
Oh he's banned again.
[QUOTE=Skorpy;30805039]Taranga is probably the only one here.
[editline]30th June 2011[/editline]
Oh he's banned again.[/QUOTE]
He won't be back for two weeks, either.
I don't where to start with my website.
I have ideas and I have the design and I have the color scheme and everything but I open up Notepad++ and my mind goes blank.
I'm fine with Python and other coding languages, but when it comes to web development I have downs.
[QUOTE=SataniX;30803467]Lol, my problems now go beyond that.
As part of my project i'm using a global variable array for various details, which is set out at the very beginning of the page. (Included from a seperate PHP file.)
The same PHP file also connects to the database using PDO, but i'm getting an error on L14 now.
[code]<?php
$forum=array(
//GENERAL DETAILS
"name"=>"AxBB Dev.",
"url"=>"http://pdo.elementfx.com",
"logo_url"=>"/images/logo.png",
//MYSQL
"mysql_host"=>"localhost",
"mysql_port"=>"3306",
"mysql_db"=>"pdo_mysql",
"mysql_username"=>"pdo_simon",
"mysql_password"=>"[removed]",
)[highlight];[/highlight]
$dsn = "mysql:host=".$forum['mysql_host'].";port=".$forum['mysql_port'].";dbname=".$forum['mysql_db'];
$db = new PDO($dsn, $forum['mysql_username'], $forum['mysql_password']);
?>[/code]
That's the $dsn line, by the way.
[editline]30th June 2011[/editline]
Pssh, Tehwhale, you're only allowed to rate funnies if you answer ;D[/QUOTE]
Forgot that semicolon.
[editline]1st July 2011[/editline]
Hard to see, it's after you close the array.
[editline]1st July 2011[/editline]
[QUOTE=SataniX;30803211]k guys, trying to switch to PDO...and failing.
What am I doing wrong here?
[code]$news = $db->prepare("SELECT * from 'news'");
$news->execute();
while ($result = $news->fetchObject()) {
echo "<li>".$result->content."</li>";
}[/code]
my connection is started earlier, here:
[code]$dsn = "mysql:host=localhost;port=3306;dbname=pdo_mysql";
$db = new PDO($dsn, "pdo_simon", "[removed]");[/code][/QUOTE]
[php]
$news = $db->prepare("SELECT * FROM news");
[/php]
Also, if you're only selecting 1 column (content), you may want to change your query to; SELECT content FROM news
[QUOTE=deadeye5362;30818716]Forgot that semicolon.
[editline]1st July 2011[/editline]
Hard to see, it's after you close the array.
[editline]1st July 2011[/editline]
[php]
$news = $db->prepare("SELECT * FROM news");
[/php]
Also, if you're only selecting 1 column (content), you may want to change your query to; SELECT content FROM news[/QUOTE]
I'm also going to be selecting the name of the user who poster it and the date posted, in the end. Just not done yet.
With canvas, what's the most efficient way of rendering a large background on the same canvas as many other moving elements.
[QUOTE=Jimbomcb;30835259]With canvas, what's the most efficient way of rendering a large background on the same canvas as many other moving elements.[/QUOTE]
What kind of background is it? Just an image, or many different elements?
One large jpg. Is it simply just a case of drawing it each time I clear the screen for the next frame or am I an idiot.
Sorry, you need to Log In to post a reply to this thread.