Yes I did.. and it's a really good article!(I also didn't know how to drag files..) I'd seen you used the CSharpProvider, i just thought it could be possible also with CodeDom like i did, cause I used it to compile other kind of .cs files. Ok, I'll switch to the CSharpProvider.. THANKS for everything! bye
kontax
Posts
-
Compile a project from code, or explanations about CodeDom... -
Compile a project from code, or explanations about CodeDom...I just tried but I got a lot of errors.. I used this sample code: http://msdn.microsoft.com/en-us/library/system.codedom.compiler.codedomprovider.aspx. Most of the errors are about missing assemblies(I didnt' use custom assemblies, only from the framewrok)..Obviusly when I try to compile from the project, there are no errors.. Any advidce? Thanks anyway
-
Compile a project from code, or explanations about CodeDom...Yes,i tried that way. But I understood only how to compile a source files. I could just compile from a .cs file to a .exe file. I need to compile a project made from a form and its .cs file together in an executable file. Is there a workaround to do this with CodeDom or CSharpProvider?
-
Compile a project from code, or explanations about CodeDom...Ok Thanks again!
-
Compile a project from code, or explanations about CodeDom...Yes, it seems to be the solution! Ok, last two questions.. 1)Have you ever used it? A little little explanation of how it works is possible? 2)What do you mean with "via code (hard) or just as a process (easy)." Thanks again!
-
Compile a project from code, or explanations about CodeDom...Hmm I think I explained it bad, or perhaps I couldn't understand your answer.. I try to explain better the problem: First application generates the .cs file and puts it in the second application folder. First application in still running. Now First application should compile the second application in an .exe file. I just can't understand how to do this. With CodeDom I understood how to create a simple console application, but it isn't what i need, my second application should be a windows form application. If your answer was right, can you explain it better to me? Thanks anyway for the answer!
-
Compile a project from code, or explanations about CodeDom...Hi everyone, I have a big problem I can't manage to solve.. This is the explanation: I have two windows form projects. The first one is needed only to output a .cs file, with inside parameters given by the user. And thi is ok. The generated .cs file should be the code file for the other windows form application. And this is also ok. Now I need to compile the project from the first application, and this is what's missing. Any advice? I tried to use the CodeDom, but I just could manage to create a console application,like in the example given in the msnd documentation. Thanks Bye Gabri
-
Tabs control - Ajax Control ToolkitThe matter is that it' doesn't depend from the code I used.. Every time I create a Tab panel from the Control Toolkit, even in a new page of a new project, the active tab is not preserved after postback. Could it depend from Visual Web Developer?I'm trying to test it with the virtual server of VWD, perhaps it should work if the application is online.. Or not? Is it normal to have it not working if trying from VWD? Thanks!
-
Adding textbox to gridview at runtimeTo add a textbox runtime just try protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ViewState["txt"] = 0; } } public void name(object sender, EventArgs e) {int txt = (int)ViewState["txt"]; TextBox txt1 = new TextBox(); txt1.ID = "txt" + (++txt).ToString(); Panel1.Controls.Add(txt1); txt1.Text = ; ViewState["txt"] = txt; } After creating a Panel in the .aspx page. Can't understand why u need gridview. Hope it helps BYE
-
Tabs control - Ajax Control ToolkitI think I can do something similar, but I can't understand why it doesn't works with me, while it's supposed to work! suggestions??
-
Tabs control - Ajax Control Toolkitno, i'm not using the ActiveTabIndex, I'm just using the tabs without properties at all.. ??
-
Tabs control - Ajax Control ToolkitHi, I'm using the Ajax Control Toolkit, and I have a problem with the Tabs control. On the Control Tollkit description it's written that the selected page should remain enabled after a postback..But it doesn't happens. I'm using Visual Web Developer, and testing the pages using his virtual server. After a postback the selected tab is changed, and is always selected the one who is open in the Web developer page.. Suggestions? Thanks!
-
HOW TO MAINTAIN DYNAMICALLY CREATED CONTROLS AFTER POSTBACK C#http://www.denisbauer.com/ASPNETControls/DynamicControlsPlaceholder.aspx[^] try here, a simple anf useful control..
-
Question about controls and assembliesHi to everyone, a stupid question: I added an Ajax control to Visual web Developer, adding a reference to the .dll compiled file in the project.. Now I'd like to use it, but I can't declare it in the asp.net page... I also would like to add it to the toolbox..How could I do this? Thanks! Bye
-
RadioButton WidthOkk...I'm using C#, you're right :) but I'm developing a web application, so I thought it was better to post here, otherwise i could have got an answer about windows applications... Yes, I tried to change the autosize to false, but it didn't work... Don't know what I have to think... Anyway, Thanks!
-
RadioButton WidthHi everyone, I need to create runtime RadioButtons with C#, and I want to set the width of the label (or of the entire control). This way it's not working: RadioButton rdb = new RadioButton(); rdb.Width=300; :sigh: Suggestions? What am I doing wrong? Thanks!
-
Naming randomly a DropDownListYessss Thanks, that's perfect!
-
Naming randomly a DropDownListHi, I need help for a stupid question.. I want to cicle this: DropDownList s = new DropDownList(); And so i can't use the same name for more than one DDL.. I thought to use this: Random i= new Random(); string s = i.ToString(); DropDownList s = new DropDownList(); but obviously it all ends in an error cause s was assigned before as string... Suggestions?? :sigh:
-
DropDownList CreationYes, the second one should have the same values except for the previously selected one. The problem is that after the first selection made with the DropDownList, the user can chose, for the selected value, properties from another DDL, and then another value for this one. So, when the user opens the page, he see a row of DDL. I need that, after the row he finish fulling it, another raw is created under the existing one, and so on, and only the mix of choises done before couldnt be re-done after... That's the reason why I can't use a multi-select box.. I hope I explaned it well.. About javascript:i'm not used to it, do you really think I can do what I need better using javascript? how could i do it? Thanks anyway for the reply :-D
-
DropDownList Creationhi, i'm posting because i have a problem i can't manage to solve... i have a page with a row of DropDownLists, and what i want to do is this: when the user selects a value from one of the dropdowns , a new one is created under the selected, with the same values of the previous one, except for the selected one. i know i have to write a function in c# called from OnSelectedIndexChange, but i can't understand how to create the new ddl from the code.. can anyone one help me or suggest a better way to do that? i'm working on Visual web Developer using C# thanks anyway, and sorry for the poor english.. bye Kontax