|
Hi
Dim popupScript As String = "" & _
"window.open('PopUp.aspx', 'CustomPopUp', " & _
"'width=200, height=200, menubar=yes, resizable=no')" & _
""
Page.RegisterStartupScript("PopupScript", popupScript)
Now it is not giving the error
but it is not working (not opening the window)
Thank you
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Its working fine here. Are you getting any javascript error?
Best Regards,
Apurva Kaushal
|
|
|
|
|
No
I wrote in on buttonclick
But the window is not opening
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Even there it is working fine. Check whether popup blocked for your browser. And also try it by putting that javascript code in a javascript function and add that as an attribute to the button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi, How do I access an HTML control on my aspx's load event(code behind)? I've added a runat='server' to the control, but that buggers up my access to the control in javascript.
What do I do?
Regards,
Tintin
|
|
|
|
|
You just need to provide the runat and the id attbutes to access the html control in codebehind.
Best Regards,
Apurva Kaushal
|
|
|
|
|
if i add the runat attribute, document.getElementById('imgPic').src doesnt work anymore because the id tag changes to cl00_imgPic. And I cant get it to work with getElementByName.
Regards,
Tintin
|
|
|
|
|
where is the control placed in the webform? Are you using that inside of any other control.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
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
|
|
|
|