|
I dont fine any problem in accessing that in javascript.
whta i have used is:
var y = document.getElementById("imgPic").src;
and this is html part:
<table>
<tr>
<td>
<img id="imgPic" name="imgPic" src="Image/69.jpg" runat="server"></td>
</tr>
</table>
Best Regards,
Apurva Kaushal
|
|
|
|
|
if u set the html controls in the reapter,datalist etc.. the htmlcontrols or webcontrols will be add some words like "ctl00" before the html id
|
|
|
|
|
sorry. document.getElementbyID im my Javascript (client side)
Regards,
Tintin
|
|
|
|
|
You can access that both in javascript and in code behind after putting ID and runat=server.
Best Regards,
Apurva Kaushal
|
|
|
|
|
tnx, seems to be working now.
Regards,
Tintin
|
|
|
|
|
always welcome
Best Regards,
Apurva Kaushal
|
|
|
|
|
if you have such type of code to be used
just add before the input or try to use this
"asp: input type=text id=_name runat=server"
this control will become server side control
Mairy
-- modified at 4:08 Tuesday 1st August, 2006
|
|
|
|
|
You can use the clientID property of the control on the server side to output the correct ID for the javascript function. Just output it in some script to the page as a var or something...
|
|
|
|
|
I need to post the ASP.net form to ASP file from another web Site. How to do this?
I had created ASP.net form. I submitted the form to another ASP form. but in that ASP form, I could not retrive the ASP.net from element values.
Thanks in advance.
|
|
|
|
|
|
Hi all
I am trying Redirect to a page but i want give the window size also
Example: Response.Redirect("Fpage.aspx")
For this i want to add these contents
height=520, width=780,status= no, resizable= no, scrollbars=no, toolbar=yes,location=yes,menubar=yes
is it posible any idea
THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
probably yoiu need to window.open of javascript to get the desired output.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi,
Is there any add in [component] which will create a mail compose screen with all formatting similar to windows word, like underline, bold, left align, right align, justify, add smiley, change font size etc.,
Regards,
Sam.
|
|
|
|
|
Use FCKEditor[^] for your HTML editing purposes.
It is one of the best and easiest (and free!) WYSIWYG editor there.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
Thanks Edward, I just wanna know whether it could be used for commercial purpose.
|
|
|
|
|
Yes it can be used for commercial purposes.
If I remember correctly it's under LGPL license.
"A democracy is nothing more than mob rule, where fifty-one percent of the people may take away the rights of the other forty-nine." - Thomas Jefferson
"Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." - Benjamin Franklin
Edbert
Sydney, Australia
|
|
|
|
|
Hi,
How do i specify a decimal number to take only two numbers after the "."?
for example:
if i have this number in a lable 23.222342114, how do i write my cobe to be displayed only like this 23.22 ??
thanks,
|
|
|
|
|
object.ToString ( "Fn" )
where F is a single alphabetic character called the format specifier, and n can be one or more digits called the precision specifier.
Format specifier for decimal D or d
so you have to use
object.ToString("D2");
|
|
|
|
|
I tried what you said but it's not accepting the D2..i'm using a vb.net code so are you sure it's right?
|
|
|
|
|
i will just show one example ok
decimal i=123.23444;
string j=Convert.ToString(Math(i,2));
if print j u will be getting 123.23
Hope this works for u.
|
|
|
|
|
no, it's not working
i think what you wrote is a c# code not a vb.net
when i wrote your code it displayed an error under the word "Math" !
|
|
|
|
|
you can simply use this to get the desired output.
string str = Convert.ToString(Math.Round(i,2));
here i is your decimal number.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Iam really sorry for the mistake. actually i missed one small piece of code.
Decimal i=Convert.ToDecimal(textBox1.Text);
textBox2.Text=Convert.ToString(Math.Round(i,2));
u should give Math.Round(i,2)
where i is the decimal no and 2 is the no of decimal places to be rounded to.
this will surely work. I am sorry for the previous error ok.
Vipin
|
|
|
|
|
Thanks guys it's working now
|
|
|
|
|
Hi all,
I want to store contents to database from Textarea, Sometimes the user put's the HTML tags in the textarea, this makes a little confusion in the CSS design while retriving the data. Any one plz kindly send me the regular expression to remove all the HTML tags before storing the data's in the database? I am doing this work in ASP.NET.
Please guide me.......
Regards
Exelio
|
|
|
|