Learning MVC - How To Write Code Behind For The Page
Apr 4, 2010
I have started learning MVC and I have few questions in my mind,
1: As I seen that there is no .cs file in View, then how would I write my code behind for the page. I am very new to inline coding, do I need to learn it ??
2: What if I want to develop pages like I have already done for asp.net 2.0/3.5 websitepreviously.
I want to write a code that open a new page in for ex : ".aspx?id=1" . like this site : [URL] when my user click on his article then go to "aspx?id=76" what am i going to do ?
how can I create stored procedure and write my select statement in it, I know how to create dataset then put type stored procedure and assign it to the sp ... what I want is writing my sp... how can I make it ?
check the following code, this is what I want to write put I don't know where or how !
I want to write a page where user's can write a blog post and publish it to the blog. I've downloaded blog engine .NET and looked at the code and I like the way they do it, but it's completely an overkill of what I need. What I need is only a title, author, date, and the blog post it self. I don't even want users to post comments or anything like that. My approach is to save all those blog post information into an xml and then when a page loads it loops around those xml files to show the blog post.
I have a code which I repeat over and over so I am thinking to write subroutine. Not sure if there are functions in C#. Could you advise how to pass arguments to it. An example of add two numbers would be great.
Using VB.net, C# and SQL ServerI want to write a pseudo for my application.pseudo code is like coding or flow chart...?Can any one provide a sample pseudo code for any type of application.
i have been assigned a task to develop ICR in asp.net using c# i have no idea to implement it please give me idea from scratch, and also how to write code and which name space is used to perform this task
But I can't figure out the way to write back to the same display from code behind. In other words, I need to send a message back to the textbox from code behind. Because I did not defined the tbdisplay to runat="server", I can't see the control tbdisplay. Also, I can't run the tbdisplay at server because the keyboard doesn't work.
How do I write code for a label in thedetailsview insetitemtemplate: I'm trying to write a profile property to a label and then the dv saves to a database. Here is what I have but I get and error
I had write a code about get a picture from url and save as bitmap. However, there was a problem in HttpWebResponse. It didn't run the code start from HttpWebResponse.Then my whole website die there.