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.
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 !
In a base class object, I have an overridable subroutine that I would like all derived objects to have the ability to include. However, they don't have to, and if it's not necessary for them to use it, I don't want them to be forced to declare it. To enforce this, I've left the default behavior empty. For example, here's my whole sub:
Protected Overridable Sub MySubroutine(ByVal someObject As Object) End Sub
Is this bad practice? I don't want to declare it as MustOverride, but I don't want default behavior. Is there a "better" way of doing this, or is this perfectly acceptable? I don't want to be that hack programmer... just trying to learn :)
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 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 am trying to create one subroutine that can handle all deletes for a web app. I have one delete popup panel in my master page, and I call it each time from my content pages. When an instance of delete is called from a content page, I store the name of a delete subroutine specific to the delete instance in a session variable and popup the delete panel in the master page. If a user types YES into a delete textbox in delete popup panel, a confirmDelete Subroutine in codebehind of the Masterpage is called. When the confirmDelete subroutine in the Masterpage is callled, I want to call a subroutine in the content page that has the name stored in the session variable. What is the simplest way to do that?
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.