Use variable into textbox .aspx

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.

This forum is for discussing mojoPortal development

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.

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.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/17/2011 4:08:43 PM
Gravatar
Total Posts 3

Use variable into textbox .aspx

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

5/17/2011 4:18:55 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Use variable into textbox .aspx

In your C# code:

Command_display.Text = test; //Variable assignment

or

Command_display.Text = "123456"; //Static assignment

 

You must sign in to post in the forums. This thread is closed to new posts.