|
For that you can create Thumbnlis of that Image. If you search google , you can find many code for that.
please let me know if any issue.
|
|
|
|
|
thanks for reply again.. i have used this javascript:-
i have taken a div in design and applied this css
css:-
divAbsPosition1
{
z-index: 1;
left: 0px;
position: absolute;
top: 0px;
visibility:hidden;
}
function hideWindow()
{
document.getElementById('dv').style.visibility='hidden';
}
function LargeWindow(ev,str)
{
var e = ev ? ev : window.event;
var s = e.clientX + ',' + e.clientY;
document.getElementById('large_Image').src=str;
document.getElementById('dv').style.visibility = 'visible';
document.getElementById('dv').style.left = e.clientX -10;
document.getElementById('dv').style.top = e.clientY-10;
}
its working perfect in ie but not working in firefox..
|
|
|
|
|
can you put the code from where you are calling LargeWindow (), I want to check "ev " ?
|
|
|
|
|
ya sure..here is my Code..i made a sample page...
onmouseover="LargeWindow(event,'images/Large_Card1.jpg')" onmouseout="hideWindow()" />
|
onmouseover="LargeWindow(event,'images/Large_Card2.jpg')" onmouseout="hideWindow()" />
|
onmouseover="LargeWindow(event,'images/Large_Card3.jpg')" onmouseout="hideWindow()" />
|
onmouseover="LargeWindow(event,'images/Large_Card4.jpg')" onmouseout="hideWindow()" />
|
|
|
|
|
|
|
I am trying to redirect the user to different pages on click of various available images for different websites.
How can use a single common function say, 'openSite' in script so as to handle all the redirection from various image clicks?
Is it possible to get parameters like tag's id on run-time and use that to switch statements in the 'openSite' method to redirect the page to the appropriate one?
Regards,
SPanicker.
modified on Wednesday, December 3, 2008 7:09 AM
|
|
|
|
|
you can write an onclick that passes 'this' and it will pass your img tag to the javascipt method.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Are you trying to say one should get the sender object and reflect back its properties by using GetType()?
Regards,
SPanicker.
|
|
|
|
|
Hi.
i would like to move down vertical scroll bar automatically to show last inserted row in gridview after cliking "Submit" button.
Could any body help me please?
thanks in advance!
|
|
|
|
|
I think you can do it , by set the Div ScrollTop Property
|
|
|
|
|
thanks for your answer.
could you give a little more of using this,pls?
thanks and regards,
|
|
|
|
|
Check this site. Probably it may help you.
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hello All,
Can anybody suggest how to reproduce thread switching scenario in ASP.Net. I would like to test whether during thread switching thread's local storage info is migrated to new thread properly or not (mainly current principal info).
http://piers7.blogspot.com/2005/11/threadstatic-callcontext-and_02.html[^] this article explains how to reproduce but i am unable to reproduce. I am trying with ASP.Net Development server (VS2005).
Thanks
|
|
|
|
|
I have A query
Insert Into DEPARTMENT_MASTER(DPM_ID,DPM_CM_COMP_ID,DPM_BM_ID,DPM_NAME)
values(-2147483614,'2','2','abc,xyz')
//// string StrQue Contains Above Query////////////////////////
string StrQue=Query.ToUpper();
String[] Arr1 = Regex.Split(StrQue.Trim(), "INTO");
String[] Arr2 = Arr1[1].ToString().Split('(');
String[] Arr3 = Arr2[1].ToString().Split(')');
String[] Arr4 = Arr2[2].ToString().Split(')');
String[] ArrCol = Arr3[0].ToString().Split(',');
String[] ArrVal = Arr4[0].Split(',');
In ArrCol I am Getting Correct 4 columns but
In ArrVal I am Getting 5 Values because it is Spliting coma(,) from last
value('abc,xyz') Thats whay I am getting 5 Values but I want 4 Values.
Can anyone give me solution. Its urgent
Thanks,
|
|
|
|
|
ArifShaikh wrote: Its urgent
Of course it is.
The solution is to call ToString(), apparently. This has nothign to do with ASP.NET, and I mean, absolutely zero.
Overall, it looks to me like the solution is to use regex to find what you want to in these strings. This code is very fragile IMO.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hello,
i am new in ASP.net and i have a problem.(i can't read the value of the session in my class.cs)
do i miss something or ....
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
Yes, you missed that the session object is contained in the page class. Your classes shouldn't be tied to the session anyhow, but if they must be, you need to pass the session object through to them. It's really this.Session["key"]
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
use the below code to acces the session in the class
System.Web.HttpContext.Current.Session["key"]
Cheers!!
Brij
|
|
|
|
|
You can access the session variables in the current context using HttpContext.Current.Session .
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hello i am using ajaxToolkit:ModalPopupExtender in my site to display some detail its working very well on my local pc(localhost) but when i uploaded the site on server...its throwing javascript error ajaxControlToolkit is undefined and modelpopupextender is not getting displayed..i am trying to solve it from yesterday but the problem is still same.
I copied all the dll in bin folder and also included
<![CDATA[<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>]]> on top of page....and
<atlas:scriptmanager id="scriptmanager" runat="server" scriptmode="Release" scriptpath="./Script" enablepartialrendering="true" xmlns:atlas="#unknown">
<scripts>
<atlas:scriptreference assembly="AjaxControlToolkit" name="AjaxControlToolkit.Common.Common.js" />
<atlas:scriptreference name="AjaxControlToolkit.ModalPopup.ModalPopupBehavior.js" assembly="AjaxControlToolkit" />
</scripts>
</atlas:scriptmanager> in my master page
please tell me how to solve this problem...
|
|
|
|
|
Neetu Maheshwari wrote: ajaxControlToolkit is undefined
OK, so perhaps it needs to be in the GAC or something ? Have you tried just installing the MSI instead of copying the dlls ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
but how can i install MSI on server as i told you its working properly on localhost but throwing this error on server...so please give an alternate solution....
|
|
|
|
|
Neetu Maheshwari wrote: but how can i install MSI on server
It's a computer, isn't it ?
Neetu Maheshwari wrote: as i told you its working properly on localhost but throwing this error on server
Yes, so I assume that you installed the library on your local host, but you seem to say you only copied the files onto the server.
Neetu Maheshwari wrote: so please give an alternate solution....
Prayer ? Change of career ? Write your own AJAX code ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Prayer ? Change of career ? Write your own AJAX code ?
yeah i was expecting the same answer from you
Christian Graus wrote: Mr. Christian Graus
Thanxxxxxxxxxx
|
|
|
|
|
iam working on one web application i have this error when i go from one page to other
Microsoft JScript runtime error: Sys.ArgumentTypeException: Object of type 'Sys._Application' cannot be converted to type 'Sys._Application'.
Parameter name: instance
plz give me solution for this why this is coming
iam using .net 3.5,ajax.
|
|
|
|
|
Probably because you're using a nested framework of libraries designed to help lazy people by generating all their javascript for them, so when something goes wrong, it's because you've used something in the wrong way, and it's a long way from obvious what it is that you've done wrong.
Most likely cause is an operator = is not defined, and so an object cannot be copied. But that's my C++ thinking, I have no idea why js would throw that error.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|