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 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.
What I need to do is update a label during a loop (simplified from my implimentation). If I can refresh the whole page or an update panel that would work too. I want to give the user more info than just "Please Wait...". So the extreamly simplified version of what I'm trying to do is:
Because ASP runs all of it's code behind events before sending the HTML to the user it will not update the label text until after the entire loop has run. I've tried using and update panel and using the UpdatePanel1.Update(); command. I've turned off out buffering Response.Buffer=false; and Response.BufferOutput=false;. I've been searching forums for the past 2 days trying for find a solution. Is this even possilble with ASP or are we at the mercy of ASP only giving HTML to the user when after it's done with it's server side events?
how do I update a field from code like inserting a date. i have something like below. i want to insert the date when the record is updated or edited, but it does not work what is the correct way to do this in mvc
I have version 2.6.10 in my project. I have not modified any of the settings. The generated code is getting updated on build. I added a new method to a controller. It doesn't show up in the Views property. I added new javascript files that don't get added to the Scripts class.
Also, what is the correct method to update to a new version of T4MVC when it comes out. Do I just copy over the existing files in my project?
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 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
I have a group of two radio buttons and I would like to set the state of them in my code-behind page. I can do this quite simply by setting the checked state of each (e.g. RadioButton1.Checked = true; adioButton2.Checked=false;) The problem I'm having is that the state of the buttons on the screen is not updated until I navigate away from the page the buttons are on then return to the button page. Question: how can I make the button checked appearance change from the code on the server?
I have a FileUpload control that allows a user to upload an image. After the image is uploaded, I'd like to update an Image control I have on the page.
The uploading part is working, as I can see the files in the folder after. However, the image never updates.
I'm relative new to .NET but I think maybe it has something to do with postback?
I've been working on the ASP.NET Development Server recently (on an MVC project and I'm finding that it is inconsistent in how it serves the changes I make to my code. For example, I make a change to the C#/HTML/CSS/JS in the dev environment and run the page, and the change appears on the screen. But if I edit the HTML again and run the page again, the new change doesn't appear. Even ctrl+F5 doesn't do it. I have to stop the web server and run the app again for the changes to update. Has anyone else experienced this? Is there a way to sort this problem out?
If I'm working in IIS and I change something, a ctrl+F5 will always update the page with the changes I've made. I'd like the dev server to be as reliable.
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