|
How to avoid 'error on page' in IE's status bar while running ASP.Net website application?.This error is not a bug...But it is not looking nice when the web page is loading...If anybody knows answer me....
thanks,
emer
|
|
|
|
|
Ida_merry wrote: How to avoid 'error on page' in IE's status bar
why not fix the error?
led mike
|
|
|
|
|
table_ref = document.getElementById(table_name);
var table_row_ref = table_ref.rows[1];
new_row = table_row_ref.cloneNode(true);
table_ref.appendChild(new_row);
It adds the new row. But, table_ref.rows.length does not change to reflect the newly added row. I am using cloneNode so that all the styles are copied to the new added row.
Is this a known problem? Is there a solution to this issue?
I am considering creating a large table with a large number of rows, and show/hide depending on requirement. But, that feels soooo wrong.
modified 29-Aug-18 21:01pm.
|
|
|
|
|
I solved the problem in the following way.
<code>table_ref = document.getElementById(table_name);
row_innerHTML = table_ref.rows[1].innerHTML;
new_row_ref = table_ref.insertRow(table_ref.rows.length);
new_row_ref.innerHTML = row_innerHTML;
</code>
Since I use insertRow, the rows.length now reflect the correct row count after any number of inserts and deletes.
This said, I am still interested in other solutions that may be better than this one.
modified 29-Aug-18 21:01pm.
|
|
|
|
|
The previous solution that I listed worked only in FireFox, not IE7. The following code works in both browsers.
table_ref = document.getElementById(table_name);
var table_row_ref = table_ref.rows[1];
new_row_ref = table_ref.insertRow(table_ref.rows.length);
cellcount = table_row_ref.cells.length;
for (cellindex = 0; cellindex < cellcount; ++cellindex)
{
new_col_ref = table_row_ref.cells[cellindex].cloneNode(true);
new_row_ref.appendChild(new_col_ref);
}
I have not tested in Opera/Safari yet You can watch out for new versions of this. I am enjoying this javascript adventure.
modified 29-Aug-18 21:01pm.
|
|
|
|
|
I have a persistent build error that I'm finding very difficult to track down. Basically, I have a Default.aspx page that defines a drop-down list like so:
<br />
<asp:dropdownlist id="ddl_userName"><br />
runat="server" <br />
DataSourceID="user_data_source"<br />
DataTextField="user_name" <br />
DataValueField="user_name" <br />
AutoPostBack="true" ><br />
</asp:dropdownlist><br />
Then, in the code-behind (C#), I attempt to assign the value of the selected item to a string variable like so:
<br />
string username = "";<br />
username = ddl_userName.SelectedValue;<br />
This generates a CS0103 error that says:
The name 'ddl_userName' does not exist in the current context
It seems like a scoping error, but the code file is correctly identified in the page directive, and everything appears to be correct. Any ideas?
Thanks
|
|
|
|
|
Do you have id="ddl_userName" on your <asp:dropdownlist>?
C# is also case senesitive.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
ARRGGHH -- yes, the name is on the drop-down lists ID property. I thought I proofed that post, I'll have to put up the actual code tomorrow. But the name is the same in both the .aspx and the .cs file. I typed it the same, I copied - pasted it in, and I chose it from the intellisense options. All three ways produced the same error.
my co-worker actually may have found the problem, I'll check it in the morning and post it here if he's right.
|
|
|
|
|
I know I've had this happen to me before, just can't remember the circumstances off the top of my head. Possibly the name of the class in the .cs file doesn't match the inherits attribute on the page tag? Let us know what you find out.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
OK, the code in my original post should have looked like this:
aspx:
<br />
<asp:DropDownList ID="ux_ddl_userName" <br />
runat="server" <br />
DataSourceID="user_data_source"<br />
DataTextField="user_name" <br />
DataValueField="user_name" <br />
AutoPostBack="true" ><br />
</asp:DropDownList><br />
.cs:
<br />
string username = "";<br />
username = this.ux_ddl_userName.SelectedValue;<br />
The file names were Default.aspx and Default.aspx.cs, and the class name was _Default. The code-behind and the class were correctly identified in the Codefile and inherits properties of the page directive.
The "fix" ended up being to change the file names to DevDefault and change the class name to DevDefault. The original file and class names were generated by the IDE. I did find in the project, that there was a Default3 file that identified the same class in a different file, so that may have been where the conflict was. If it was looking at that _Default class, then the error would have made sense, since it was essentially empty. In fact, I'm sure that's what it was, since typing the control name didn't bring up the intellisense listing, but preceding the control name with "this" did bring it up. It was a name clash.
Thanks.
|
|
|
|
|
Hi All,
I have a page in which I am using ''. That page get called from many places and some thimes in the '' and some times in the normal window page. the position of <div> is at certain place by assigning the top position. i.e '<div style="top:150">'. This is causing problem when the page get opened in iframe. I am thinking that instead of placing the hard code value for top position of <div> let's place it at run time at the time loading the page. The problem is that I am not able to find out the top position of object in which the page is getting opened. Can any one please suggest, How I can perform this?
Thanks,
RK
<div class="ForumMod">modified on Thursday, March 20, 2008 3:58 AM</div></div></div></div>
|
|
|
|
|
I can't see the code that you posted. Use the "Ignore HTML" option when you are posting markup code.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Could anyone tell me where I could find out how to make a menu scroll vertically?
I've seen it before where the menu follows the page. So when you scroll down the menu follows?
I have a menu created with javascript. Now where could I find out how to get it to follow where the user is looking on the left side? Vertically?
I've search yahoo and everything, but I can't find anything.. I might just be calling it the wrong thing. I don't know if there is a specific name for this kind of thing.
|
|
|
|
|
|
Hi,
I'm trying to get the body element of a page using a webBrowser control. Right now I'm testing in javascript to make sure i can access the body through the webBrowser control, but soon I'll create an activeX control and use the control from there.
My code is:
var wb = document.getElementById("wbSave");
wb.Navigate(window.location);
var body= wb.Document.body;
The point is I don't know why the body is always null. If I analize the Document children I see it contains the "head" element and its contents but I would expect it to contain the body as another child too, and however it doesn't. I've searched online in several forums and everybody seems to access the body element this way, I just can't. I'm completely clueless.
So, please if anyone can give me any help on this, it will be appreciated.
Thanks in advance
Kenia
|
|
|
|
|
Hi I’m developing an internet ASP.NET application, which needs to interact with Microsoft Certification Authority Server, the
client (browser) will request a certificate to sign a file (word, pdf) later.
I'm really disoriented. Must I use CAPICOM? Signing in the server, and sending the certificate through an SSL connection? Is
there any class in the .Net Framework to interact with Certification Authority Service without CAPICOM or an external Api?
Where can i get a code example?
Regards
Sergio
|
|
|
|
|
Don't cross post. Read the forum rules.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hi,
I am a total nubie to web developing. I am trying to get two or more images overlayed and add transitions to them in order to display the next image. (i.e. wipe)I have the following code which is a total bodge but appears to do the job on a standard web form. But when I add the code to the ASP.NET project it doesn't recognise img1 as an object. Can anyone tell me how this should be done correctly??
Any help would be gratefully received.
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>]]>
<html>
<head>
<title>Timer Demonstration</title>
<script type="text/javascript">
var garImages = new Array(2);
var gstartImage = "Images/Red-Rock-Canyon-(6).gif";
var gendImage = "Images/Red-Rock-Canyon-(7).gif";
var giDuration = 2;
function init()
{
div1.style.filter = "progid:DXImageTransform.Microsoft.Wheel(spokes=4)";
runit();
}
function runit()
{
for (i = 1 ; i < 2 ; i++)
setTimeout("start(" + i + ")", 5000);
}
function start(i)
{
obj = eval("div" + i);
if (obj.filters.item(0).status==0)
{
obj.style.filter = "progid:DXImageTransform.Microsoft.Wheel(spokes=4)";
img1.style.filter = "progid:DXImageTransform.Microsoft.Wheel(spokes=4)";
if (obj.filterCount== 1)
obj.filterCount = 0;
else
obj.filterCount = (obj.filterCount)*1 + 1.0;
if (img1.filterCount== 1)
img1.filterCount = 0;
else
img1.filterCount = (obj.filterCount)*1 + 1.0;
obj.filters.item(0).Apply();
img1.filters.item(0).Apply();
if (img1.src.indexOf(gstartImage) !=-1)
{
img1.src = gendImage;
}
else
{
img1.src = gstartImage;
}
img1.filters.item(0).Play(duration=giDuration);
obj.filters.item(0).Play(duration=giDuration);
}
}
function done(i)
{
setTimeout("start(" + i + ")", 5000);
}
</script>
</head>
<body onload="init()">
<div id="div1" filtercount="0" style="filter: progid:DXImageTransform.Microsoft.Wheel(spokes=4)" onfilterchange="done(1)">
<img id="img1" filtercount="0" src="Images/Red-Rock-Canyon-(6).gif" style="filter: progid:DXImageTransform.Microsoft.Wheel(spokes=4)" align="left"></img></div>
</body>
</html>
|
|
|
|
|
Hai,
I've a component (vb6 dll) with one method. I've created one virtual
directory in my xp machine and registered the dll in it. I've
generated wsdl file using ms soap kit 3 in the same folder. Now when i
call the service from another vb program in the same machine / some
other machine i got the below error.
WSDLOperation: Instantiating the dispatch object for method <method>
name> failed HRESULT=0x80040154: Class not registered.
When i search on the web, it may the dll registration problem. But i'm
sure i've registered. I can add the dll as a reference in another vb
program. I can create an object in another asp program.
I've checked both are working fine. Now the problem is through web
service is shows the error.
I've tried in so many ways. After registered i've restarted the iis
and restarted the machine .....
But I've not get any solution.
If any idea pls help me.
Thanks & Regards,
Rishihar S
WinCrs
|
|
|
|
|
Hi To all forums members,
I want to know that Is there is any to fires any key press event?
e.g. I have to fires F11 key on a button click . How can i do this? After firing the F11
key current window get automatically resize to Full screen..
I have to used it where I have to capture only the current window body not the whole
screen which also includes browser menus.
Thanks
Vishnu Narayan Mishra
Software Engineer
modified on Wednesday, March 19, 2008 6:12 AM
|
|
|
|
|
function getCode(){
var unicode=event.keyCode? event.keyCode : event.charCode
alert(unicode)
}
F11 - 122
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
hi Laddie
Thanks to reply me, The function you told me it tells which event pressed by user but Actually I have to fires the event of key F11(Which maxmises the current window).Suppose when the user press a button then F11 key of keyboard runs automatically and maximises the cureent window, so that I can capture current window.
Vishnu Narayan Mishra
Software Engineer
modified on Wednesday, March 19, 2008 6:31 AM
|
|
|
|
|
F11 doesnt maximise the window on my computer. Relying on this may be a mistake
I would be very surprised if you could send fake keyboard presses from inside a browser - think of the mischief you could cause by having a script automatically close down your machine.
|
|
|
|
|
Actually I want to study this method with some examples which i didn't find on w3.org can anyone please give me some link to do some in-depth study. Thanx in advance!
AliAmjad(MCP)
First make it Run THEN make it Run Fast!
|
|
|
|
|