Topic profile page for Code behind.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Code behind.
Topic "Code behind" was discussed 6,794 times on 407 sites in last 3 months
Started 2 days, 22 hours ago (2009-11-26 16:45:00)
by MauroGv
Hi, new question about WPF designer. In WindowsForms when you change the control name, the code is automatically updated. Now I've changed the control name in WPF but in code-behind the control remains unchanged. No tip appears down the control in the Designer to rename the rest of the code. Compiling the code naturally I receive the errors for the old control name. The same situation happens ...
Started 4 days, 3 hours ago (2009-11-25 12:25:00)
by Ling Nina
Hi all, in my C# code behind, page_load , I wrote the following code: String jScript; jScript=" function changeBgColor()" + " { var td = document.getElementById('" + td + "'); "; jScript+="if (!td) throw 'td not found'; "; jScript += "td.Class='calendaritemtd-Weekend'; "; jScript+=" } "; Page.ClientScript.RegisterStartupScript(this.GetTy pe(), "changeColor", jScript); ...
Started 4 days, 8 hours ago (2009-11-25 07:12:00)
by qiling70
Hi All, why my javascript at runtime does not work? code as below in Page_load String jScript=" function msg(){ "; jScript=" function changeBgColor()" + " { var td = document.getElementById('" + td + "'); "; jScript+="if (!td) throw 'td not found'; "; jScript += "td.Class='calendaritemtd-Weekend'; "; jScript += " } "; Page.RegisterClientScriptBlock("changeColor", jScript); I ...
Started 4 days, 18 hours ago (2009-11-24 20:40:00)
by JanIgnacio
Hi all, I'm new to this forum, but I've been following the resources attached to this place, as I am trying to build my skills in C#, XAML, and Silverlight in general - attending PDC09 inspired me to really explore where Microsoft's tools can bring me as a developer, and I'm hoping I can find some support here as I continue learning :) Anyway, let me cut to the chase - I'm familiar with ...
Started 4 days, 23 hours ago (2009-11-24 15:30:00)
by blakemckenna
How do you call a new web page from the VB.Net code-behind file? I'm just not sure what object to use: I'm thinking it's the Response.Redirect("~/webpage.aspx") but not sure. If this is the case, I'm getting an error message: "Property evaluation failed!" on the highlighted line below: Code: Protected Sub Menu3_MenuItemClick(ByVal sender As Object, ByVal e As ...
Started 5 days, 5 hours ago (2009-11-24 09:35:29)
by colinejarvis
Hi, I have an error in my code behind which is as follows: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.OleDb; public partial class CRMAddConNew : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void ...
Started 5 days, 10 hours ago (2009-11-24 04:32:42)
by xhenryLx
Dear All, I want to hard code a user name & password in the web config rather than application, my question is, how to get the web config user name & password in the code behind, in order to check the user & password in correct when I click the login button. So , what should I do in the login.aspx, how to get the user name and password..?? Thank you ...
Started 5 days, 19 hours ago (2009-11-23 20:26:53)
by justindongqiang
I see we can use following javascript to call a soap service. just wondering if we can use code behind to do things like this using asp.net 3.5 with c#? function btn_click (a, b) { var xmlObj = new ActiveXObject("MsXml2.DOMDocument") ; var sXml = "" ; sXml += "
Started 6 days, 4 hours ago (2009-11-23 11:00:00)
by ToddHileHoffer
So I am working a on a new application. It is rather small, but critical. The maintenance section of the program has about 3 users with about 15 users of the display. Anyway, I have a few pages that do simple CRUD operations via some stored procedures. Personally, I am content to use a datareader in the code behind to load the form with data that will be edited. However, I know some developers ...
Started 3 days, 4 hours ago (2009-11-26 10:34:00)
by Dhruv Patel
I just pointed out the event, there are other events also, like onmouseover, onblur. In Page_load, you can set the attribute of control like : lnkObj.Attributes["onmouseover"] = "javascript:changecolor(this)"; but, remember, you should bind it in if(!IsPostBack) block, or you can even add attribute on every page refresh. And additionally, if client side work is possible by just writing ...
Started 3 days, 6 hours ago (2009-11-26 09:03:04)
by Rawler
Bober Song - MSFT: Hi Rawler , From your description, I recommend you to study the ajax. http://www.asp.net/ajax/ I hope it is helpful to you. thanks Bober, after lot of reading I just realized it is not possible to do this without calling a postback and even worse without doing all sub/function activated. I was too used to desktop environment, but now I'm thinking...
Started 5 days ago (2009-11-24 14:56:00)
by penny4yourthoughts
and also, so if i keep the resource dictionary there is no way to add a label in one of the control templates inside it and change its content in runtime? i m sorry for the multiple questions!
Started 2 days, 6 hours ago (2009-11-27 09:24:00)
by MauroGv
Thanks both, OK. WPF Designer and code-behind are separeted for the Refactor. It's necessary Refactor the name in the code-behind and then changing manually in .xaml. Regards, Mauro
Started 5 days, 7 hours ago (2009-11-24 08:18:00)
by Bruce.Zhou
You are welcome, glad to help. Best regards, Bruce Zhou MSDN Subscriber Support in Forum If you have any feedback on our support, please contact msdnmg@microsoft.com