the developer who wrote this code is no longer with us and there are absolutely no comments whatsoever for us to know whats happening. Me and my other co-worker are just learning .net and hence not that much experts. can some one please tell us what the code does in both the files below and how they are related to each other ( we are very +VE that they both are related) first file. its called products.aspx. the code is below
But it creates the relationship (and the third mapping table) with cascade delete switched off by default. How can I tell EF to create the relationship with cascade delete switched on when using many-to-many?
I have a designer working on several pages in Dreamweaver. The designer is creating .aspx files with the Page directive at the top. These are getting shipped to me and I'm adding them to the Visual Studio ASP.NET WebForms Web Application Project. The problem is that there's no code-behind file by default, and I'm trying to find a shortcut to have them autogenerated as if I've added a fresh page from Visual Studio.
I have an asp.net button, that when clicked calls a code behind function. The function does some evaluation, and then I want to call javascript from within this asp.net function.
I created a file cleanup function by using health monitoring. It is deleting file that is no access from another process. So, I want to check this. Is it stay access. If not access, I delete this file. How can I do?
I am fairly new to jQuery. All the examples that I find online and in the book that i bought refers to the functions that you declare in the web page <head></head>. Nowhere can I find a good example of how i can use an additional .js file to hold all my jQuery functions in. like normal javascript functions that you use, you reference the external .js file in the <head> and then you are sorted.I hope i am clear enough. Can someone please give me detailed steps on how to get this done? I am alwys on the lookout for best practices and know it is better to keep the code seperate from the web page.
The split function as it is written above is splitting the third line into 6 columns because there is a comma in the data. Is there a way for me to tell the split function to ignore commas in strings?
How can call som code behind in javascript? (asp.net 3.5) For example: we have javascript function to get textbox length,and we want to update gridview(Gridview1.databind()) when textbox.length=3
I wonder if I could call a Function in code behind from jquery(client side), not to trigger a jquery function from code behind? I can not use linkbutton and button it must be a A-tag otherwise it loose it's purpose
I often use this code or a form of this code throughout OnClicks and OnLoads:
DataTable dt = new DataTable(); using (SqlConnection con = new SqlConnection(conString)) { using (SqlCommand cmd = new SqlCommand("administratorGetAll", con)) { using (SqlDataAdapter da = new SqlDataAdapter(cmd)) [code]...
I have three TabPanels depending on which tab is clicked I would like to call a different c# function to display different content. I know I could just run all the functions when the page loads but this seems messy. I'm sure there is a way to do this but I'm not having much look. It's possible I'm thinking about this from totally the wrong angle so please let me know if you can think of a better way to do this.
Example ASP.net <ajaxToolkit:TabContainer ID="tabParameters" AutoPostBack="true" Width="100%" runat="server" ActiveTabIndex="0"> <ajaxToolkit:TabPanel ID="tabDetails" OnClientClick="Load_Details()" HeaderText="Details" runat="server">
I have a javascript function named as sss() . I want to call it from the code behind.
function sss() { $("#div-TableContent").show("slow"); alert("its Works"); };
I used this code
Private Sub dataGridView_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles dataGridView.RowEditing If (Not ClientScript.IsStartupScriptRegistered("sss")) Then Page.ClientScript.RegisterStartupScript(Me.GetType(), "alert", "sss();", True) End If End Sub
but it is not firing when the grid is in the ajax update panel. Why?