Thursday, July 9, 2009

What is the learning curve of asp.net comparing to php?

I am planning to learn either php or asp.net. Now I don't know which one I should start with ? I am planning to study %26amp; build real projects for myself during 6 months then look for a job. I only know some html. So should I go for asp.net or php? Thanks.

What is the learning curve of asp.net comparing to php?
I'd say go for php because





(a) you are less drawn in to microsoft style of hugely long inflexible naming schemes [while this may be useful in large long term maintenance its a pain in the butt for learning]





(b) the help / lookup function etc on php.net is supoib and will get you actually achieving things more quickly.
Reply:They are both similar languages, however, php will work on almost all web servers, while asp.net is specific to windows servers. (There are some asp.net translators for *nix boxen, but they are clunky at best, and you certainly can't just copy an asp application from a windows box to a nix box with this installed)





besides those facts, php has a gigantic support base across the internet that can be accessed for free. The php website even has syntax for any function that you might want to use, and is searchable.





I know both, but only program in php these days.
Reply:i don't know about asp.net but php is quite simple to learn. The biggest problem is those who think they are ready, but in fact still leave massive security holes in their apps.
Reply:The key these days is to 'specialise'. ASP is harder.


How can I embed a SWF file into an asp page?

I am in college working on a project. Our team is trying to be original in the way we present out project. How does someone embed a swf file (Flash movie) into a web page, asp if it matters?

How can I embed a SWF file into an asp page?
No, it doesn't matter if it's asp, same html code





The simplest way is this:





%26lt;object type="application/x-shockwave-flash" width="400" height="300" data="flash.swf"%26gt;


%26lt;param name="movie" value="flash.swf"%26gt;


%26lt;param name="quality" value="high"%26gt;


%26lt;param name="bgcolor" value="#000000"%26gt;


%26lt;/object%26gt;





While you don't really need the bgcolor and quality setting, supported by both IE and FF.





If you need something more sophisticated, use googli
Reply:It doesn't matter.





http://cit.ucsf.edu/embedmedia/step2.php...
Reply:It's exactly the same as you would embed a Flash in an HTML page.

rose garden

Where's a good place besides hot scrips that I could buy a good contact us asp script?

I'm having trouble posting an asp script and page that'll e-mail the form information, I've seen a lot of free ones but they don't work out. I don't know if it's me or not. I also need a login and create your own e-mail one, but that's not absolutely needed.

Where's a good place besides hot scrips that I could buy a good contact us asp script?
If you want an ASP.NET contact us form, try the examples at


http://www.systemnetmail.com





If you need one for old-school ASP:


http://www.asp101.com/samples/email.asp





If you are using ASP.NET, it has a built-in membership provider:


http://quickstarts.asp.net/QuickStartv20...





For old-school ASP login:


http://www.asp101.com/samples/login.asp
Reply:you can try here


http://www.viescripts.com


HOw to populate a drop-down box from sql server using asp script for dynamic web page?

I am creating a dynamic web page for that I need to populate a drop-down box from a table in sql server. Can somebody please write the code in asp script?

HOw to populate a drop-down box from sql server using asp script for dynamic web page?
Try this:


%26lt;%


Set conn=Server.CreateObject("ADODB.Connecti...


conn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;PersistSecurity Info=False;Initial Catalog=sqldatabase;Data Source=sqlsource"


set rs=Server.CreateObject("ADODB.Recordset"...


%%26gt;


%26lt;select name="selectbox" size="1"%26gt;


%26lt;%


rs.Open "Select column From table",conn


Do Until rs.EOF


%%26gt;


%26lt;option value="%26lt;%=rs("column")%%26gt;"%26gt;%26lt;%=rs("column"...


%26lt;%


rs.MoveNext


Loop


%%26gt;


How do I create a CSS in Dreamweaver ASP?

I want to create image link buttons, onMouse over the button has to change to another image. How do I do it with dreamweaver or ASP.

How do I create a CSS in Dreamweaver ASP?
That is a job for Javascript.





Here is a site with come code you can Rob:


http://www.sbrady.com/hotsource/javascri...


Sunday, May 10, 2009

How can I install asp support on my server?

I have got a apache instant miniportal virtual web server but it does not have asp support. How can I add asp support and other features such as SQL support etc?

How can I install asp support on my server?
Is this running on a Linux box or a Windows box? I've done this on a Linux box, but I would have to assume that it will work much the same way on a Windows box, seeing as you're using Apache. The way I've done it is to use Perl and install Apache::ASP. There is some configuration involved, but the is nicely documented in the docs that come with the Apache::ASP module.

pink flowers

How do I use a negative number as an argument in an if statement in asp?

I'm trying to write some code in ASP to basically say the following:





if x %26lt; -2 then


y=4


end if





However, the statement never makes it through when x really is less than a negative 2. I've tried putting parentheses around the -2, but that doesn't help.





Any ideas?

How do I use a negative number as an argument in an if statement in asp?
try "if x+2 %26lt; 0 then"





if not, make sure you are comparing what you think you are comparing...





"if CLng(x) %26lt; CLng(-2) then"
Reply:You could try x %26lt; (0-2) then...