|
Hi all
i was downloaded the mathml control and alrady added on my page for entring mathmatics equations on my webpage, its woking fine but i have no knowledge how to use that control. I want to save that equation into the database and use that for displaing also but i dont know how to do the same.
Plz do reply
Yogesh Agarwal
|
|
|
|
|
If the control is a CP article, ask in the forum provided by the article. If not, look for a forum where you downloaded the article. Most people here will not have used it, so how can we help ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the reply, i am also looking for the same but i didn't find any fourm could you give me some links where i could read the article.
or
plz tell me only how could we use the addtional controls in our asp.net pages which are downloaded from web. i tried to use others also (other than mathml) it gives me the error as follows
Error 1 The type 'System.Windows.Forms.UserControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. E:\projects\mathtype\Default.aspx.cs 24 9 E:\projects\mathtype\
you just help me to remove the same rest i tried to search by other resources.
thanks again for reply.
with regards
Yogesh Agarwal
|
|
|
|
|
Ah - the problem is that you're trying to use a windows control in a web application. You can't do that.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hai i use ,
TextBox1.Text = "This is a test.";
string find = TextBox2.Text;
string repalace = TextBox3.Text;
myString = Regex.Replace(TextBox1.Text , find, repalace);
TextBox4.Text = myString;
it is only replace runtime but i want to replace
<title>hai
replace---->
<title>buy
so if you know the answer replay to me....
|
|
|
|
|
so u want to change page title at runtime...?
Ashish Sehajpal
|
|
|
|
|
hai,
not one title Suppose i use
function call()
{
var name='suguna';
}
it is a aspx page html code.for example the word call() is change to string().it is possible.if u know the code replay to me...
|
|
|
|
|
http://www.builderau.com.au/program/asp/print.htm?TYPE=story&AT=339286810-339028371t-320002001c[^]
First google hit. You can use a literal to set the header.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thank to you. but i want
not one title Suppose i use
function call()
{
var name='suguna';
}
it is a aspx page html code.for example the word call() is change to string().it is possible.if u know the code replay to me...
|
|
|
|
|
Did you read the article ? Once you have a literal, you can change the title in code, anywhere you like.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
if one needs to change the value in HTML (as he is asking) one can use javascript and search for the the particular TAG (<title> in this case) ans set its innerTEXT / innerHTML as per requiremnet.
try to use javascript ... it is bit easier solution for your problem without implementing anycode in CODE BEHIND
cheers !
<div class="ForumSig">Ashish Sehajpal
</div>
|
|
|
|
|
No, you're wrong. Doing stuff in code behind is elegant, allows for object orientation, and works on any browser. Doing stuff in javascript requires that you know for sure that only certain browsers are going to be used, and increases the load on your traffic, because the pages are bigger. It also means you can't comment your code unless you want to also send the comments to the client.
Indeed, because he wants to set his header based on server side events, doing it with javascript would require injecting javascript into the page in the code behind, which would just make this approach doubly retarded.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
thank you so much for your replay.i use find and replace.so thank you...
|
|
|
|
|
Hi, I am stuck big time with a problem in Data Grid.
I am using C#, in VS.NET 2003.
I am writing a simple web mail system, and I am using the datagrid to display the inbox.
It is a very standard inbox, nothing fancy, and I am displaying the sender, subject, as well as the date sent. For each message there is an extra column "opened" which denotes whether the message has been read.
Here's what I am stuck, I need to BOLD the message subject for those messages which are unread.
I have absolutely no idea where to place the codes, the pseudocode is very simple, simply:
If the "opened" column for that particular message is NO,
then BOLD the subject
Where do I place the codes? I tried to place it in the HTML code as well as the codebehind, no luck.
Any suggestions??? HELP!!!
Thanks!!!
|
|
|
|
|
First suggestion, post your code so we can point out what you're doing wrong.
I would do something like writing a div to contain the text, and then having the style set the font weight via a property that comes from the codebehind, which in turn is passed the opened value, and returns the right string for plain or bold text.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks for the reply.
Here is the code for the part that displays the Template Column.
<br />
<asp:TemplateColumn HeaderText="Subject" ItemStyle-CssClass="content"><br />
<HeaderStyle CssClass="subtitle"></HeaderStyle><br />
<ItemStyle Width="350px"></ItemStyle><br />
<ItemTemplate><br />
<asp:HyperLink id="Viewmessage" runat=server CssClass="content" NavigateUrl='<%#"viewmessage.aspx?messageid=" + DataBinder.Eval(Container.DataItem,"messageid") %>'><br />
<font class="content"><br />
<%# DataBinder.Eval(Container.DataItem,"messagesubject") %><br />
</font><br />
</asp:HyperLink><br />
</ItemTemplate><br />
</asp:TemplateColumn><br />
As you can see, the code above only retreives the SUBJECT and displays it.
Is it possible to put a IF condition in the HTML Code? It is possible to do something like this?
<br />
<asp:TemplateColumn HeaderText="Subject" ItemStyle-CssClass="content"><br />
<HeaderStyle CssClass="subtitle"></HeaderStyle><br />
<ItemStyle Width="350px"></ItemStyle><br />
<ItemTemplate><br />
<asp:HyperLink id="Viewmessage" runat=server CssClass="content" NavigateUrl='<%#"viewmessage.aspx?messageid=" + DataBinder.Eval(Container.DataItem,"messageid") %>'><br />
<br />
<%#<br />
if (DataBinder.Eval(Container.DataItem,"opened") == "no")<br />
{<br />
SET FONT = BOLD<br />
}<br />
%><br />
<br />
<font class="content"><br />
<%# DataBinder.Eval(Container.DataItem,"messagesubject") %><br />
</font><br />
</asp:HyperLink><br />
</ItemTemplate><br />
</asp:TemplateColumn><br />
Thanks!!!
|
|
|
|
|
You can do this:
]]>
// add tags for column here
]]>
I may have some details wrong here, but I know I've done a control that added columns to a datagrid in certain modes using code similar to this.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
why don't you do this from code behind...it is bit easier from there.......
Ashish Sehajpal
|
|
|
|
|
Hi Friends,
I have one Com Dll to hash the password.
How to use that DLL in ASP.net to hash the password.
Thanks
Hari
|
|
|
|
|
Import it into your project the same way you would any COM dll and call it in your business layer.
Of course, it makes more sense to use the crypto stuff built into .NET
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Asalaam Alakum,
I am finding list of controls from another aspx page within a project, for this purpose i am tring reflection. If reflection is appropriate solution please give me code else tell me another solution.
Thanks alot
Regards Syed Kamran ul Haq
ALLAH HAFIZ
|
|
|
|
|
There's not really any way for one page to examine another page, because the only page that exists in your project at runtime is the page currently being generated. What do you need this for ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
IF your using user controls it isn't an issue simply expose the user control and the controls on that page you wish to access via public properties
A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty I am a Optimist
|
|
|
|
|
I would assume if he wants to enumerate controls on a page, he's actually hoping for their state to be maintained, and to get their previous values.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
just like we give form level security to users in our application, i am developing a form which will get the list of controls of a aspx page (page will be selected from ddl) and give rights (visible,enable etc) to them and save in database.
thanks for answering.
Regards Syed Kamran ul Haq
ALLAH HAFIZ
|
|
|
|