CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_cold_fusion_to_asp.net Tags:
Item Type: NewsGroup Date Entered: 1/8/2008 1:39:34 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
lukenukum
Asp.Net User
newb coming from CF1/8/2008 1:39:34 PM

0/0

hi folks,

im finally making the plunge and learning asp.net bit by bit (quite literally it feels sometimes!). i am (or was) diehard coldfusion developer but am moving into asp.net to up my skillset and hopefully become more object oriented.

being someone who's used to just wacking open a .cfm page and working top to bottom with a fusebox type methodology im finding it a little difficult to get my head round some of the very basic foundations of the way the server works... my head keeps going back to "well in coldfusion i'd do it like this, whats all this extra stuff, hmmm, am i putting this in the ideal place for the job".

im working on a basic web app with a code-behind page...

a) i've got a web.config page with a connection string it... is this where i would store such things as session variables? ie - is the web.config available all the time to the app, or just when the page is first called?
b) at the moment i seem to be putting everything into the Page_Load subroutine (my old top to bottom approach) - is this good normal practice or indeed required?
c) do SqlDataReaders only work when the SqlConnection is open or is the output cached anywhere? cf would hold a resultset which you could pull at anypoint on the page.
d) how do you know if your page has too cumbersome and needs breaking up into new pages?

oh dear, so many questions have i!

i'll call it a day there - any advice, tips, basic methodolgy, diagrams, alcohol etc for a cf developer making the move greatly appreciated!!!

cheers,

Luke



Jeev
Asp.Net User
Re: newb coming from CF1/8/2008 2:30:59 PM

0/0

Hi Luke.. let me try to answer your questions

) i've got a web.config page with a connection string it... is this where i would store such things as session variables? ie - is the web.config available all the time to the app, or just when the page is first called? -- Web.config is not where you would store session variables.Session variables are infact stored in the server memory and the values are user session dependant, hence the name session variables .The values in the web.config ie connectionstring, appsettings etc are available to you at any time you need them in code

 at the moment i seem to be putting everything into the Page_Load subroutine (my old top to bottom approach) - is this good normal practice or indeed required? -- You would be better off splitting it into  methods depending upon what functionality you wish to accomplish. Also depending on the need to do certain things at certain times in the page lifecycle, you can put things in the init, Prerender events etc to name a few

c) do SqlDataReaders only work when the SqlConnection is open or is the output cached anywhere? cf would hold a resultset which you could pull at anypoint on the page.-- SqlDataReaders work only when the connection is open and by default output is not cached. Could you load the information into a table which is a page level variable if you need it at multiple places

d) how do you know if your page has too cumbersome and needs breaking up into new pages? -- Well you have the concept of user controls to break a single page into multiple pieces.

I'd suggest looking at some tutorials that are available on this site just to familiarize yourself with the new concepts

Hope this helps and all the best on this new journey. I'm sure you will enjoy it

 


Jeev
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you get the answer to your question, please mark it as the answer.
lukenukum
Asp.Net User
Re: newb coming from CF1/8/2008 2:57:15 PM

0/0

hi Jeev,

thanks for getting back to me so soon!

> Session variables are infact stored in the server memory and the values are user session dependant,
> hence the name session variables .The values in the web.config ie connectionstring, appsettings etc
> are available to you at any time you need them in code

yes, sorry... i think what i was trying to get at was is the web.config like and application.cfm.

> you would be better off splitting it into  methods depending upon what functionality you wish to accomplish.
> Also depending on the need to do certain things at certain times in the page lifecycle, you can put things
> in the init, Prerender events etc to name a few

more reading up here then!

> SqlDataReaders work only when the connection is open and by default output is not cached. Could you
> load the information into a table which is a page level variable if you need it at multiple places

interesting, i shall look it up.

> Well you have the concept of user controls to break a single page into multiple pieces.

yes, the more i use it i guess things will become clear.

> I'd suggest looking at some tutorials that are available on this site just to familiarize yourself with the new concepts

yep, have been... its just i seem to be in a middle ground of knowing what i want to achieve and being able to do it in many ways but the syntax is foxing me a bit.

> Hope this helps and all the best on this new journey. I'm sure you will enjoy it

sure does, many thanks for the reply... i've got a couple of books on the way so hopefully i'll get up to speed at somepoint...

cheers,

Luke

commadercody
Asp.Net User
Re: newb coming from CF3/11/2008 8:04:23 PM

0/0

Luke,

 Make sure you use the AJAX control toolkit, it will make your migration that much easier.  I have to admit that four years ago when I left CFML and it paid my bills since 1997 I was a little scared.  But, now, I don't even think about going back.  Just take a look at the toolkits, simple open and close tags just like <cfquery> :)


"From my point of view, the Jedi are evil!"
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
England Under the Norman and Angevin Kings, 1075-1225: 1075-1225 Authors: Robert Bartlett, Pages: 772, Published: 1999
Samuel Pepys and the Second Dutch War: Pepys's Navy White Book and Brooke House Papers Authors: Samuel Pepys, Robert Latham, Navy Records Society (Great Britain), Pages: 488, Published: 1995

Web:
newb coming from CF - ASP.NET Forums Re: newb coming from CF. 01-08-2008, 9:30 AM. Contact ... Re: newb coming from CF. 01-08-2008, 9:57 AM. Contact ...
ColdFusion Hosting Guide, ColdFusion Tutorials, ColdFusion Tips ... ColdFusion hosting guide, ColdFusion tips, ColdFusion tutorials, and ColdFusion hosting tips.
CF 28 newb - Notebook Forums and Laptop Discussion Newbie. Join Date: Oct 2007. Location: New Jersey. Posts: 2. Rep Power: 0 slowpoke is an unknown quantity at this point. Default CF 28 newb ...
Newb CF ? - MP3Car.com I've tried searching for this, but everything I've tried brings up 0 results. Doesn't make any sence, because I've tried very generic tearms, but ohh.
ColdFusion Newbie (CF-Newbie) Mailing Lists Fusion Authority Quarterly Update - ColdFusion 8 Special Edition ... ColdFusion Newbie (CF-Newbie). ColdFusion questions from those new to the language ...
[FreeBSD][Newb] How I use sendmail to send mail? Jun 11, 2007 ... Previous message: [FreeBSD][Newb] How I use sendmail to send mail? ... I nosed around on the box for clues about sendmail.cf It looks like ...
CarForums.net - Automotive Chat Forum - View Profile: grand prix newb CF Newbie. grand prix newb. Car Enthusiast ... Find all threads started by grand prix newb ... grand prix newb is not a member of any public groups ...
5 day newb install help - Ubuntu Forums Posts: 88. Thanks: 0. Thanked 0 Times in 0 Posts. Send a message via MSN to iLoVe.cF- Send a message via Yahoo to iLoVe.cF-. 5 day newb install help ...
cf-newbie is undefined in a Java object of type class coldfusion.filter. .... William Seiter. CF LOOP Problem - What's wrong with this code??? Joel Polsky ...
Migrating from Cold Fusion to ASP.NET - ASP.NET Forums Can we catch coldfusion session object in asp.net application.. by chinnibharath . Not Resolved ... newb coming from CF by lukenukum. Not Resolved ...

Videos:
Super Junior Making of NII CF (Eng sub) Subbed from Korean-Chinese then Chinese-English. May be inaccurate. Sorry for the bad subbing. I'm a newbie in subbing. T_T Please forgive for any w...
BoAxJaejoong- Out of my league !!!!PLEASE READ!!!!!!!!! Disclaimer: The videos and song used is not mine and will not claim them as mine. All Video contents of both BoA And TVXQ ...
CYBERFIGHTS.COM - PRO WRESTLING CYBERFIGHTS 46 CF newbie Hemlock is back for more pounding in this one-on-one with CF superstar Mikey Henderson. Some people just must be gluttons fo...
WiFi Battle Vs ToadPrince So this kid said he's better than my CF and wasn't willing to prove it till his friend asked him to...just watch what happens when noobs face CF! YES...
Dick Shack Posse The Castle Pub Ebensburg, PA Dick Shack Posse-Punk/Garage/Rock Live 8/8/2008 at the Castle Pub in Ebensburg, PA. Band Members Scoob Lanzendorfer-Vocals; Weibs-Guitar Bob Brunner-...
PSP News - April '07 **Note: Total newbs should watch PSP News - Ep 1 Parts 1 & 2 to become acquainted with what an OE firmware is and why you might want one and other n...




Search This Site:










user control not showing on postback

can i run asp.net applications from apache?

why create class library?

refreshing a page from code-behind

extracting email address from outlook to datagrid

lets try this again

indentified date sunday/saturday

creating bbcode system in asp.net

namespace within ...

such an easy question

problems with web.config

please help: ----how to custom the text format of radiobuttonlist?

how to change other language in browser

using window.showmodaldialog in vb

getting a list of online users

radio button groupname problem

calling an exe file from asp.net web application

forum needed

validation - how to use multiple validation fields

custom control

why is .net moving away from c# and going back to visual basic now?

insert image into word doc

refreshing the page

creating a cookie

return the html of a usercontrol in a webservice

error with global.asax

changing the menu for different roles

framework migration from 1.1 to 2.0

checkboxlist added into a pageview

how to export word to html document?i used asp.net

  Privacy | Contact Us
All Times Are GMT