|
hi
can any body tell me how can i create a popup with click a button? i wrote this code but it dose'nt work.
Response.Write("<script>function d(){windows.open(Default2.aspx);}</script>")
|
|
|
|
|
Seriously -- don't.
Use a hyperlink. That's kinda the whole point of having hypertext.
|
|
|
|
|
Hi Guys,
I have an asp.net page that has a Dropdownlist control linked to ListSearchExtender to have an incremental search feature. And my problem is that, everytime I key in something in the dropdownlist there's also a text at the top of the dropdownlist will display, this is the prompttext.
Is there a way to manipulate the Promptext either placing it next to the dropdownlist control at the right or just simple remove it?
I just can't find a way if how to manipuate or remove the promptext.
Hope you can help me with my current problem.
Thanks
hifiger2004
|
|
|
|
|
I need to create an IM Service just like the MSN Messenger,
but I don't know where to start from, what is the form of the server application
because I don't want the clients to poll data from the server every some seconds,
is there an application that I can put it on the Host that the client can open a tcp/ip session (winsock) with it,
what is that application? any idea may help.
thanks
|
|
|
|
|
I have spacer div with a height of 5px. In FF and Opera, the page is displayed correctly. In IE6, the div was significantly larger (about 20px).
Here's the style that works in opera and firefox:
.netSpacer
{
width:100%;
height:5px;
line-height:5px;
padding:0;
border:0;
margin:0 auto;
background:transparent;
}
I had to add overflow:hidden; or font-size:0px; to make it display as expected in IE6. It took me an hour to figure that out. I hate IE.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
This is a well known problem with IE. For some reason it thinks that an element has to be at least one character (1.0em) high.
Setting the font size changes the size of em unit so that one em isn't higher than the specified height. Setting overflow keeps the contents from expanding the element. The contents is still one em high, but only part of it is visible.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Salam Guys,
I have a small problem right there, here are my 2 small functions in which i'm trying to add two images in each row & set the onclick event of each image to trigger a function depending on the Image Type : I hope you can understand those stuff :
<br />
<html><br />
<head><br />
<title></title><br />
<script type="text/javascript"><br />
<br />
function AddRow(id){<br />
<br />
HiddenNumber = document.getElementById("MyHidden").value;<br />
var Args = AddRow.arguments;<br />
var tbody = document.getElementById(Args[0]).getElementsByTagName("TBODY")[0];<br />
row = document.createElement("TR");<br />
<br />
var ArgsNumber = Args.length;<br />
var Minus = ArgsNumber - 1;<br />
<br />
for (var i = 0; i < Minus ; i++)<br />
{ <br />
var td = document.createElement("TD");<br />
td.appendChild(document.createTextNode(Args[i+1]));<br />
row.appendChild(td);<br />
}<br />
AddImages("C:/wamp/www/Edit.gif",'Edit');<br />
AddImages("C:/wamp/www/Delete.gif",'Delete');<br />
<br />
tbody.appendChild(row);<br />
HiddenNumber++;<br />
}<br />
function AddImages(Path,ImgType)<br />
{<br />
var td = document.createElement("TD");<br />
var MyImg = document.createElement("input");<br />
MyImg.type = "image";<br />
MyImg.src = Path;<br />
<br />
if (ImgType == 'Delete')<br />
{<br />
MyImg.id = "Delete["+HiddenNumber+"]";<br />
MyImg.onclick = DeleteRow(MyImg.id);<br />
}<br />
else if (ImgType == 'Edit')<br />
{<br />
MyImg.id = "Edit["+HiddenNumber+"]";<br />
MyImg.onclick = EditRow(MyImg.id);<br />
}<br />
td.appendChild(MyImg);<br />
row.appendChild(td);<br />
<br />
}<br />
function DeleteRow(FrmName)<br />
{<br />
<br />
document.write("Salam, This is the DeleteRow function My Name is "+FrmName);<br />
}<br />
function EditRow(FrmName)<br />
{<br />
document.write("Salam, This is the EditRow function My Name is : " + FrmName);<br />
}<br />
</script><br />
</head><br />
<body><br />
<input type="hidden" value="1" id="MyHidden" name="MyHidden"><br />
<input type="button" value="Click Here" onclick="AddRow('MyTable','Amine','Yesfi','Assimi','Karim')"><br />
<table border="1px" id="MyTable"><br />
<tr id="FirstRow"><br />
<td id="FirstColumn">FirstColumn</td><br />
<td id="SecondColumn">SecondColumn</td><br />
</tr><br />
</table><br />
</input></input></body><br />
</html><br />
<br />
this is the page try it Please. the main problem is with the onclick event, there are 2 cases :<br />
<br />
First : MyImg.onclick = DeleteRow(MyImg.id);
<br />
the sencond one is MyImg.onclick = "DeleteRow("+MyImg.id+")";
<br />
it drives me crazy Guys, please try your best if you ever have a solution send it to me please i have to deliever the page on time.<br />
<br />
<br />
Salam <br />
<br />
Mohammed Amine Ouriaghli <br />
<br />
<br />
<br />
<br />
try to be good if you can't be the best
|
|
|
|
|
hi everyone,
I have a slight problem with update panel.
<asp:updatepanel>
<contentpanel>
<asp:textbox id="dob" runat="server" autopostback="true" ontextchange="getAge">
<asp:textboc id="age" runat="server">
//cs file
protected void getAge(object sender,EventArgs e)
{
txtAge.Text="24";
}
now the problem is after after age is populated, i lose focus from age textbox after the update panel is updated. i even tried txtAge.focus();
how can i focus to age textbox ??
Suman
Suman
|
|
|
|
|
I am developing a website and a problem has been occured..well i have seen a lot of website(probably all) that when you join the website..the website send's you auto respond mail for activation link in email to your email address by which you activate your membership on that particular website.
i want to do stuff similler to above while i dont have any idea..also i want to send my website's member's to newsletter automatically(Something like alert!). any help is heartly appreciated..
thank's in advance..
Manoj Sahu
|
|
|
|
|
|
Hi Friends,
i have one problem .Pls help me. i am having image(not url) in database and i want to show that image in webapplication .how i have to convert that image and show the user.
pls help me..
regards...
kiran
|
|
|
|
|
Make a proxy page that loads the image from the database and sends it in the response using Response.BinaryWrite .
Use the url of the page as src in an img tag in a page.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
Hi all,
I'm trying to share my calendar via web here in our ofc. I'm using this command
"My Shared Calendar"
But this just give an error of missing parameter and stuff... Why is this happening...
But when Im using only the outlook://calendar without the mailbox name I see my calendar. Hope someone enlighten me with this..
Thanks....
-=H=-
|
|
|
|
|
help pls
-=H=-
|
|
|
|
|
Now in its third year, MIX is an intimate opportunity for cutting-edge technical, creative and business strategists to engage Microsoft in a conversation about the future of the web. Come explore the latest wave of opportunities and help redefine the boundaries between: content and commerce, PC and TV, Windows and the Web. The event is hosted in Las Vegas, March 5 -7.
Keynote presentations from Steve Ballmer, Scott Guthrie, Guy Kawasaki, and other distinguished speakers will unveil the latest web-oriented products and technologies. A comprehensive program of sessions for designers, developers and business strategists will be led by industry experts. And there will be hands-on labs and workshops for developers and designers.
Discounted registration ends January 15. The event is sure to be a sell out. Register here for MIX08[^].
|
|
|
|
|
I have created a asp.net project in my PC i.e offline.My Project is in wwwroot>NGO folder.NGO is my virtual directory.Now i want to put this project on server for making it online.I tried putting it on server,.html files are visible but .aspx files are not loading,it shows page not found error.Plz help me,thank you.
coolsatty
|
|
|
|
|
Do you have IIS installed on that machine? HTML doesn't require a server to compile it. ASPX on the other hand is Active Server Page, meaning the server does the work. If you have IIS installed, it is quite simple to set it all up.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
There r many other sites running and its running properly.Only my site is facing such problem.Thank you.
coolsatty
|
|
|
|
|
Do you have code execution turned on? You should see something that says execution permissions, you need at least Scripts only. And need to make sure FrontPage Server Extensions are setup, and that you have the right version of ASP.NET selected under the ASP.NET tab.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
The server is handled by some third party,i am uploading my site through ftp.I can access that server only through ftp.
coolsatty
|
|
|
|
|
Hi, I need help please
I usually code in coldfusion but now i want to create 2 text html files where i
pass a parameter on href?
This normally works in coldfusion!
Page1
<a href="test.htm?test=100','','height=300,width=300">
Page2
<html>
<head>
<param name="test" value="" />
</head>
<body>
<cfoutput>
#test#
</cfoutput>
</body>
</html>
It displays #test# but in the url i can see the value it's passing but the second
page does not pick it up!
Quote"Without some kind of server-side processing (PHP, ColdFusion, etc.) or
some fancy JavaScript, you aren't going to be able to display a URL
variable. Raw HTML can't do that"
Does anyone have an example of some javascript/ or other that can do it?
Regards </a>
|
|
|
|
|
|
Hi: Thank You very much but the idea did not come off as what i thought!
I found another script but my initial problem is not fixed!
script:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
;(function(){
var field='Something', //set the name of the field
getQval = function (n) {
var r=new RegExp('[?&;]'+n+'=([^&;#]*)'), m=location.search;
return (m=r.exec(m))? unescape(m[1]) : null;
}, updateForm = function() {
var fname=getQval('fname')? getQval('fname') : 0;
document.forms[fname].elements[field].value=val;
}, val=getQval(field);
if(val){
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", updateForm, false );
else if ( typeof window.attachEvent != "undefined" )
window.attachEvent( "onload", updateForm );
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
updateForm();
};}
else window.onload = updateForm;}}})();
</script>
</head>
<body>
<form action="ajax.htm">
<div>
<input type="text" name="Something">
</div>
</form>
</body>
</html>
I downloaded this example: Dowlod this example - very small file!http://www.codylindley.com/blogstuff/js/jtip/
from the net to fix the problem i have with my projects tooltip. We use the 'ALT' on a image to give tooltips so I download a workaround from the net - which works but it displays typed text pages.
so if i had 5 fields with tooltips - i would have to create 5 html pages. So i thought of passing a parameter like you assisted but the tooltip does not picki t up.
The script works great on page1 to page2
but not on the below code: on mouse over it shows the next page with text box but blank-no value - but if I open i new window then the value is there!
Please download the example - i'm not to sure how to fix this!
<html>
<body>
This works:<A HREF='ajax.htm?Something=test'>Click here</A>
Example from Net does not like it
<style type='text/css' media='all'>@import 'css/global.css';</style>
<script src='js/jquery.js' type='text/javascript'></script>
<script src='js/jtip.js' type='text/javascript'></script>
<tr>
<td colspan="10" align="center">
<a id="one" href="ajax.htm?Something=test" class="jTip">?</a>
</td>
</tr>
</body>
</html>
|
|
|
|
|
Hi All,
I am insterested in either building or purchasing an application that will assist users in troubleshooting technical issues. Something similar to the Modem Troubleshooter in the Windows XP help and Support Center. Does anybody know if it is possible the customise the troubleshooter tools in the Windows Help and Support center?
thanks for you help,
Tom
|
|
|
|
|
Hi Guys,
In ASP.net, how can I call the session or application variable using java script?
for example in my vb code behind I have the following codes:
Dim sTemp1 as String
Dim sTemp2 as String
Application("sTemp1") = "AAA"
Session("sTemp2") = "BBB"
What is the correct of calling the application value and session value in Java Script?
I tried this one but it doesn't work:
<script language="javascript" type="text/javascript">
function GetSession_Application()
{
var s1 = '';
var s2 = '';
s1 = Application("sTemp1").value;
s2 = Session("sTemp2").value;
}
</script>
hifiger2004
|
|
|
|