|
hi all..
I use 'try and catch blok' to report errors in asp(with jscript). But I could not find a way that show the error row number in the report. I could only take error message.
is there any way.
karanba
|
|
|
|
|
Hi,
How can I achieve image rollover in Javascript?
I've tried something like this:
function ImageSwap( index, imageID )
{
document.getElementById( imageID ).src = myimages[index].src;
}
function GetImages()
{
for( i = 0; i < myimages.length; i++ )
{
img = new Image();
img.src = "WebForm1.aspx?pointIndex=" + i;
myimages[i] = img;
}
}
But, this line:
img.src = "WebForm1.aspx?pointIndex=" + i;
"i" is the index of the image.
Is this correct line?
How can I get the file name?
Thank you beforehand.
Goran
|
|
|
|
|
What file name is it that you are trying to get? Where are the images?
---
b { font-weight: normal; }
|
|
|
|
|
The images are dynamically created (on the fly) on the server and they are stored in the web application root directory.
The names of the files are like this: ChartPic_000001.png.
|
|
|
|
|
My web page is flickering a lot and I'd like to have those images (5 of them) in array of images to swap them.
I'm getting images here:
I use mouse over event on the client side to swap them:
string scriptString = "onmouseout=\"javascript:document.body.style.cursor='default';\" onmouseover=\"javascript:document.body.style.cursor='hand';ImageSwap(#INDEX,'"+this.Chart1.ID+"');\"";
Chart1.Series[0].MapAreaAttributes = scriptString;
this.Page.RegisterArrayDeclaration( "myimages", Chart1.Series[0].Points.Count.ToString() );
The number of images that I need is 5 and I'd like to have those images in advance, not to call server side code that produces flickering.
|
|
|
|
|
What actually happens? When I move the mouse pointer over the control (which is image dynamically created), the first time generated image disapears and I only have small rectangle with red cross.
|
|
|
|
|
I checked the array and I have 5 images there, but for some reason this doesn't work. Could you help me, please?
|
|
|
|
|
Hi Goran
try this
//swap the images for the buttons
function swapButtonImage()
{
//get the id of the item
var oBtn = window.event.srcElement
var btnId = oBtn.id
var srcImgFolder = "../images/buttons/";
//swap the image
switch(window.event.type){
case "mouseover":
oBtn.src = srcImgFolder + btnId + "_hover.gif";
return;
case "mouseout":
oBtn.src = srcImgFolder + btnId + "_off.gif";
return;
case "mousedown":
oBtn.src = srcImgFolder + btnId + "_pressed.gif";
return;
case "mouseup":
oBtn.src = srcImgFolder + btnId + "_hover.gif";
return;
}
}
// id='oimage1' src='../images/buttons/oimage1_off.gif'
rgds vbturbo
|
|
|
|
|
I have a datagrid and I want when I click on the text in the specified column, this column will be change to the textfield so that I can update the text on it. How can I do this?
Hung
|
|
|
|
|
Do you know how to make the complete column into text field . If yes then make that specified column into text field , then set thye lock property of the text=true , then,on the on_click event. catch the item(i) clicked and make that cell text lock property false...
If still any question you Can Ask
|
|
|
|
|
Can someone kindly provide the regular expression for parsing the text below:
\$Destination #1\~Sheet 1X\~Row 1Y\~Column 1Z\~Long line of text and numbers 123\$
I would like to break the string into components like
Destination #1
Sheet 1X
Row 1Y
Column 1Z
Long line of text and numbers 123
Any suggestions on where to go to learn this stuff
|
|
|
|
|
|
I have a situation with an ObjectDataSource driven DetailsView, where the user is trying to insert a new record. The data for the new record needs to be validated on the server side (especially for validation steps that require calls to the database). If the validation fails (i.e. the user did not enter valid data), how can I cancel the insert /edit appropriately? If I simply cancel the mode change in the ModeChanging event, then I end up with empty fields on the screen. How can I cancel the insert / edit and display the values that the user posted to the server? My problem is especially on the second part. I can cancel the mode change, but I do not know how to retrieve and display the values that the user posted to the server. Does anybody have the answer to this problem? Even if I was to save the posted values to the Session or other repository, how can I programmatically change the values displayed in an ObjectDataSource-driven GridView?
|
|
|
|
|
You can handle ItemInserting or ItemUpdating events and validate data in them
(accessing to posted values is simple: e.Values["columnName"]).
If you see that data is not valid you'll set e.Cancel = true and
insertion/update won't be done.
|
|
|
|
|
The problem is what happened after the insert is cancelled. Does the form display empty fields or does it display the values entered by the user (as would be expected by the user).
|
|
|
|
|
hi ,
i how can protected files in the iis ?
|
|
|
|
|
You can use right management integrated in file system. If you have ASP.NET you can use HttpHandler. It depends on your needs.
|
|
|
|
|
What files, and from what and whom do you wish to protect them?
---
b { font-weight: normal; }
|
|
|
|
|
|
Hi!!
I have to develop a Web page which is going to load an Image and perform various manipulations on it like Zooming, Rotating, Mirror Effect(Horizontal and Vertical), Zoom Selected, etc. I am not able to find any control that supports these features and is free.
I have tried the Image control present in VB6 for DHTML projects, but it's not good enough. Also I have tried using InterDev but it also does not support such a control.
Please let me know, for a solution to this problem.
Thank you
AyBee
|
|
|
|
|
Hello, there,
I have a question about padding-right. I have a text input box. I put an image at the right end of the input box and it is inside the input box. But I don't want the image block any part of the content of the input box. So I put a padding-right in the style of the input box. But when I type text in, the text will still go all the way to the very end of the input box. It seems that the padding-right is not working.
Is there a way to fix this problem?
The following are some sample code for your reference.
Thank you very much in advance.
Bin
|
|
|
|
|
Shouldn't you put the style="padding-right:100px;" inside the style="WIDTH: 456px; HEIGHT: 22px"?
Try placing style="WIDTH: 456px; HEIGHT: 22px;padding-right:100px;"
It may be that your second style statement was not read, because I'm pretty sure it should work like what you said.
Ed
|
|
|
|
|
Thank you very much. But it is still not working. The text is displayed all the way to the right end. You can try that in an IE browser. I am using IE 6.0.
Thank you again.
|
|
|
|
|
Micrsoft apparently didn't choose to implement it that way in Internet Explorer.
It works as you expect in Firefox 1.0.3, Netscape 7.2 and Netscape 8.0.
Opera 7.54 and Opera 8.01 implements it the same ways as Internet Explorer.
---
b { font-weight: normal; }
|
|
|
|
|
I don't like Javascript. There are a lot of things are not possible in Javascript.
Thank you very much for your response.
|
|
|
|