This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.
Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.
Before posting questions here you might want to review the developer documentation.
Hi everyone !
Here is my problem : I have 2 files, one is page.aspx.cs and the other one page.aspx. I would like to use a string variable defined into the .aspx.cs page in a textbox from my .aspx page.
.aspx.cs : string test = "123456";
.aspx : <asp:TextBox ID="Command_display" (Text=test) Width="650px" runat="server" Font-Bold="True" Font-Size="Large" TextMode="MultiLine"></asp:TextBox>
(Text=test) is what I put but when I run the code, the textbox shows me : test ... of course ...
Does anyone knows how I can use the variable test and not the char "test" ?
Thank you for your help !
jey
In your C# code:
Command_display.Text = test; //Variable assignment
or
Command_display.Text = "123456"; //Static assignment