|
Please don't create a new account every time you ask this. Instead, try asking it a bit better. Possible reasons that you can't find your answer, after I gave it to you
1 - you want the code to run on the client ( this is impossible )
2 - the sort of code you want to run and the way you want to get the result, is your real problem/question and instead of asking the same thing over and over, you should refine your question to make it clearer
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, how do execute the textbox script value at dynamically in .net with c#.if you know the answer replay to me..
|
|
|
|
|
um not sure if I understand you correctly so here is some possible answers
You can have an ontextchange event so that when someone clicks on your textbox enters a value, then clicks elsewhere the event is ran
You could have some script run on a button on the onclick event which executes what you want
please give more info on your problem if this doesnt help
|
|
|
|
|
Thank you for your replay,
i want do Ads in website project.my client need,in runtime i give a some java script code in textbox,it will execute in web page header.i change java script code in execution time it will be change in web page header.it is clear...if you know help me..
|
|
|
|
|
Why do you want to change the javascript code at runtime, sorry i dont think im understanding what you mean
|
|
|
|
|
my client need to different Ads in web page header and fooder colums.admin change the script in textbox it will be execute in runtime.so javascript change dynamicaly.so help me...
|
|
|
|
|
You want to execute javascript in your page from a textbox ? That's trivial, on postback, inject the text as code into the header of your page.
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 )
|
|
|
|
|
function displaymessage()
{
alert("Hello World!");
}
onclick="displaymessage()" >
it is a normal call to javascript but i want to execute text1.value (it contain
function displaymessage()
{
alert("Hello World!");
}
)
so how to execute that script if know help me....
|
|
|
|
|
So let me get this straight when someone clicks the button
sugunavathysubramanian wrote:
onclick="displaymessage()" >
you want
sugunavathysubramanian wrote: function displaymessage()
{
alert("Hello World!");
}
to run, is that right? becuase there is no text1.value on your page
|
|
|
|
|
<asp:textbox id="TextBox1" runat="server" textmode="MultiLine">
<asp:button id="Button1" runat="server" onclick="Button1_Click" text="Button">
<asp:label id="Label1" runat="server" text="Label">
it is my form design.i give code to textbox1.how it is execute .and how to call and execute
|
|
|
|
|
just use c# code behind for this form, does this help? is this what you want to do because so far it makes no sense!
|
|
|
|
|
Can you do a postback ? Like I said, if you do a postback, you can take the text and inject it into the page so it executes.
Otherwise, use eval.
http://www.danbbs.dk/~erikoest/js_eval.htm[^]
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 )
|
|
|
|
|
|
Hello All,
i made an aspx page and created an html input control with button type
and onclick i entered the following command "javascript:window.print()" and it work fine but the problem is the page is printed missing a part from the right side (the page contain table which is contain all controls)
i resized the table which containe everything but it did not work so can you help me plz ?
Final Fantasy Maniac
|
|
|
|
|
This could be something to do with the margins set up for the page.
On the page you are trying to print go to print setup and try and view the print margin lines to see if any information is outside of these
hope this helps
|
|
|
|
|
thank you .netman
it works fine now
Final Fantasy Maniac
|
|
|
|
|
glad to hear it, what was the problem? just so that we can show other users if they ever have the same problem
|
|
|
|
|
i have a treeview , which contains four root nodes , each node contains it's sub nodes , i want to display each root nodes along with it's sub nodes seperately in datalist. I mean datalist will have four template columns .How should i do it?
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
The obvious way would be to reshape the data from the data source so it represents a table in the format you want, and then bind to it.
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 )
|
|
|
|
|
I noticed that gridview fires the selectedindexchanged twice
I read that thas the way it works and theres nothing wrong with my code
If i have a sqldatasource that has the selectedvalue of the grid as a parameter
Does this sqldatasource also access the database twice??
Alexei Rodriguez
|
|
|
|
|
Write your own database code, so you have control over stuff like 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 )
|
|
|
|
|
I cant believe how inneficient this controls are
I guess that if one wants an optimal solution, one would have to rewrite the whole framework
Alexei Rodriguez
|
|
|
|
|
Hi Friends,
I am developing an web application which will download the files from a specified FTP folder (source) and copy it to a network shared folder (Destination). The network shared folder is given full rights to a particular user.
The application should log on to the shared folder using this credentials (credentials can be hardcoded) and copy the files from FTP to this location.
Can any of my friends help me out to achieve this...
Thanks & Regards,
S. Ranganathan
|
|
|
|
|
I don't think ASP.NET is the way to do this, you're assuming your browser has permission to wander the network file system, it does not.
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 )
|
|
|
|
|
The application is working fine for a destinaation folder with full rights for "EVERYONE" and run from local computer and but the same is not working when deployed in server...
|
|
|
|