View Complete Post
I have a class library called WEM.portal which used Resource files to localise text in my composite controls.
I store my resource files (eg MyResourceFile1.resx) in App_GlobalResources folder and then refer to them using
MyLabel1.text = My.Resources.MyResourceFile1.MyResourceKey1
This is all working ok until I create seperate files for each language such as MyResourceFile1.FR-fr.resx.
I have implemented this throughout my other web applications but the Class Library doesnt seem to want to work the same way
When I load the page it correctly showes the resourced keys which I have done through the web application BUT the resource keys in the composite controls does not seem to pick up the culture code.
Am I missing something stupid. Ive tried
I am trying to build a custom webpart in VS 2008 for MOSS 2007. I am using only class library for that.
How to add web user control in class library and add div tags in class library using C#.net?
I am creating some label and textbox dynamically in a Panel. I am not able to do alingment. I need to allign all textboxes. Below is code.
private void LoadControls(string strGridId, DateTime dtGridDate)
pnlSectorGrid.Visible = true;
DataSet ds = GetSectorialGridData(strGridId, dtGridDate);
for (int Index = 0; Index < ds.Tables.Rows.Count - 1; Index++)
Label lblSectorName = new Label();
lblSectorName.Text = ds.Tables.Rows[Index]["tsu_SubSectorName"].ToString();
lblSectorName.Font.Size = 10;
Label space = new Label();
space.Text = " ";
TextBox txtAlloc = new TextBox();
txtAlloc.Text = ds.Tables.Rows[Index]["Alloc"].ToString();
txtAlloc.Font.Size = 10;
txtAlloc.Width = 90;
This is the code of the control:
public partial class My_Diet_Graph_Control : UserControl
private void My_Diet_Graph_Control_Load(object sender, EventArgs e)
Currently, I have many controls and objects such as Chart1 of mschart as part of the public partial class _Default : System.Web.UI.Page.
At the bottom, I've created a second class that is not part of the _Default webform class. How can I access the webform controls from this second class?For example, I want to do
Chart1.Series["Series1"].Points.AddXY((pointIndex + 1) * 40, datapoints[pointIndex]);
I want to pass pointIndex integer and the datapoints array.
I know that Chart1 was created protected global access modifier in the designer.cs but when I changed it to public, it still had a problem.
actually i have already created my web site project.Now i want to use login control in my project.So can you please guide me how i can use it in my existing project?
I recently read this article and implemented -
I changed my control (dev express pivot grid) to be created on a secondary background.
The control is loading and displaying faster (great) but now if I try t omove the scrollbar etc nothing happens. The control has stopped responding to events.
Can anyone tell me how to resolve this issue. I'm not exactly sure where to start looking.
I need a way of getting the mouse drag events across to my control on the secondary thread.
ControlType = "System.Windows.Forms.WindowsFormsApplication1." + "PictureBox1"; System.Reflection.Assembly asm; asm = typeof(Form).Assembly; ControlObject = (System.Windows.Forms.Control)asm.CreateInstance(ControlType); ControlObject.Name
= ControlName; The next code generated following exception for me: ControlObject.Name = ControlName;
NullReferenceException was unhandled Object reference not set to an instance of an object.
I have a listview which contains checkbox items
I need to know how to reference "listContro
Hi using VS2005 with sql2005 I get the above error message for all my package sql server destination objects. I also have vs2008 installed on my machine and am wondering whether this is causing this error. Either way, any idea for a solution?
Using the connection manager I have set up an ole db/sql connection that tests successfully.
I was develop a DLL file for our websitethis DLL is main application in our website.
I want to make it for work on one website
when copy to another website like www.ooutttgbhjj.com not work
How can i to do this?
Thank you :)