|
Hi All,
I am getting the following error when i am trying to execute my asp code:
aspSmartUpload error '800a0009'
Subscript out of range
/seba/marketing/updatejobs.asp, line 29
The code at Line 29 is:
mySmartUpload.Upload
Can anyone tell me what and where is the problem.
Thanks.
Anurag Gandhi.
|
|
|
|
|
Presently i have build a realestate webportal using ASP.NET with C#.
And Client requiremetn is : This webportal has to be appered in topten list while any user search for realestate sites in google.
Plz Help me how to do these.
thanks in Advance
|
|
|
|
|
There is no hard and fast rule how to do this - everyone wants to appear in the top 10 list, so you are going to have to fight really hard to achieve it and it's unlikely that in a hotly contested area such as real estate you will even get onto the first 10 pages. If you do a Google for 'SEO' (search engine optimisation) then you'll find many many tips.
|
|
|
|
|
I hope they don't hold you to that...
|
|
|
|
|
|
|
Hello,
i have a webbrowser control in my c# app. if i click on a link which includes php parameter like
"http://www.mySite.com/myscript.php&var=test" the navigating events fires up.
but when i check e.Url.AbsolutePath only "http://www.mySite.com/myscript.php" is being returned.
how do I get the complete url with all parameters in the navigating event of the webBrowser control?
thanks in advance, Opaknack
|
|
|
|
|
and if you understand that i guess you might be able to help ... here's hoping
so i'm firing off an ajax request to a server side script that updates a database and returns the rating widget that was clicked on but showing the rating the user voted ... all this is good ... my problem is that the rating widget itself is drawn via javascript and when i put some javascript in a div using the innerHTML method the javascript doesn't execute ... i know i'm supposed to do something with the xml dom but i can't get it working
any help appreciated
|
|
|
|
|
l a u r e n wrote: when i put some javascript in a div using the innerHTML method the javascript doesn't execute
When you receive the XMLHttpRequest reply in the designated ready state change function you are in a javascript. Execute the intended javascript code on the reply and replace the innerHTML of the div with the results of the that manipulation.
Something like "document.getElementById('DivId').innerHTML = RenderRating(reply);" in the ready state change function when to receive a successful status (XMLHttpRequest status of 200) from the XMLHttpRequest.
Where RenderRating(PARM) is you javascript function that takes the reply from the XMLHttpRequest as a parameter and returns the rendered rating.
|
|
|
|
|
jimmy
thanks a lot for the pointer ... i had to use a variation on the theme you suggested but you opened my mind to solving the problem
|
|
|
|
|
|
Hi all,
Iam new to javascript coding,
I have listbox1 and listbox2 if i double click on any item i need to add it into listbox2,
This is part is working fine with my code,
function MoveItemTo()
{
var ctrlSource=GetObject('CRS00027lstAvailableCourses');
var ctrlTarget=GetObject('CRS00027lstSelectedCourses');
var s_Index = ctrlSource.selectedIndex;
var s_Value = ctrlSource.selectedValue;
if(s_Index > -1)
{
var newOption=new Option();
newOption.value = ctrlSource.options[s_Index].value;
newOption.text = ctrlSource.options[s_Index].text;
ctrlTarget.options[ctrlTarget.length]=newOption;
}
}
If user click on same item that already exit in listbox2 then i need to display alert message i.e u have already selected particular item.
please send sample code,
Thanks N Advance;
|
|
|
|
|
shakeela wrote: If user click on same item that already exit in listbox2 then i need to display alert message i.e u have already selected particular item.
Use onclick event to compare selected item with contents of listbox2.
|
|
|
|
|
You just have to loop through the items in listbox2 and look for the item that is selected.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Guys,
I would like to use the DetailsView control for Insert, Edit and Delete of records. But my problem is that my tables consist of 50 fields. Is there a way to split the DetailsView into two columns? Or is there a way wherein I can use two DetailsView with only 1 common SQLDatasource?
Thanks in advance Guys
hifiger2004
|
|
|
|
|
How can I find out whether a page of iframe has been loaded completely or not?
Is there any event like onLoad, onUnload for iframe?
Or is there any method to find out??
Thanks in adv.
Thanks,
Ankur Bakliwal
|
|
|
|
|
IFRAME has an 'onload' event in MS IE browser; in other browsers... in depends. However, IFRAME has one event that works everywhere ok - onreadystatechange .
ifrm.onreadystatechange = handler; Within 'handler', you will need to check ifrm.readyState property , it should be "complete" followed by "interactive". (I don't remember the exact state codes, look at the W3C site).
Here are some other solutions.
Hope it helps,
- Dmitry.
-------------------------
Listen up! Teamwork means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Thanks for this information.
but f u give me some ex. of that
that'll be very helpful for me
Thanks,
Ankur Bakliwal
|
|
|
|
|
Can I use a javascript class method with the setInterval()? If I can use the method in the setInterval(), can some one look at this code to see what I am missing? It seems to give me an error when I call the setInterval() --> slide = setInterval("this.tableHide()", 10);
// JScript File
var slide;
function tableSlide(id, left, top, bottom, right, active)
{
this.tableId = id;
this.left = left;
this.top = top;
this.bottom = bottom;
this.right = right;
this.active = active;
this.slideInTable = slideIn;
this.slideOutTable = slideOut;
this.tableHide = hideTable;
this.tableShow = showTable;
this.currentLeft;
this.currentTop;
this.currentBottom;
this.currentRight;
if(active == 0)
{
this.currentBottom = 0;
}
else
{
this.currentBottom = bottom;
}
}
function slideIn()
{
//alert(this.tableId);
clearInterval(slide);
slide = setInterval("this.tableHide()", 10);
}
function hideTable()
{
//alert(this.tableId);
if(this.currentBottom > 0)
{
this.currentBottom = this.currentBottom - 2;
top.document.getElementById(this.tableId).style.height = this.currentBottom + "px";
}
if(this.currentBottom <= 0)
{
top.document.getElementById(this.tableId).style.display = "none";
}
}
function slideOut()
{
//alert(this.tableId);
clearInterval(slide);
slide = setInterval("this.tableShow()", 10);
}
function showTable()
{
top.document.getElementById(this.tableId).style.display = "block";
if(this.currentBottom < this.bottom)
{
this.currentBottom = this.currentBottom + 2;
top.document.getElementById(this.tableId).style.height = this.currentBottom + "px";
}
if(this.currentBottom >= this.bottom)
{
top.document.getElementById(this.tableId).style.display = "block";
}
}
var test1 = new tableSlide("test", -222, -14, 100, 100, 1);
function tableHideClick()
{
test1.slideInTable();
}
function tableShowClick()
{
test1.slideOutTable();
}
Thanks,
Chad
|
|
|
|
|
Browser gives you an error, because this doesn't exist anymore when setInterval executes.
To solve this, you must use closures. Look here.
-------------------------
Listen up! Teamwork means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
Thank you for the suggestion.
Chad
|
|
|
|
|
Hello,
I have a website with an ActiveX object embedded in the default.aspx. When I run the project, I am asked to install the embedded object. If I browse to a sub-page, when I return to default.aspx, I am asked to install the same object I just installed!
I assume this is intentional (for testing purposes?). Is there a way I can setup IIS so I'm asked to install the object only once per session?
Thanks!
Ian
|
|
|
|
|
How I Restore data from datatable to database within one step using c#.NET 2.0+MSSQL 2005
|
|
|
|
|
Let me get this straight -
1) You have a System.Data.DataTable object with data
2) You want to replace the data in a SQL Server table with the data in the System.Data.DataTable
With ADO.NET, using a data table you'd have to do it in two steps:
1) send a TRUNCATE TABLE statement to SQL Server using a SqlCommand object.
2) use the SqlDataAdapter.Update() method to insert the new records (just make sure that the row version for each row is set to "new").
|
|
|
|
|
Hi!
i m developing web portal in C# asp.net web application. i want to display image in hyperlink control rather than text. i can do it by using hyperlink's property that is 'imageurl', but problem is that in hyperlink,image displays in actual size not in that size which i have given in hyperlink height and width property.
can u plz tell me how i can restrict size of hyperlink upto my own requirment i mean i want to display all the images in hyperlink of size 100/100,even if image actual size is 500/500. just as i can do in image control.No matter how big image is but it always displays in that fixed size which i give to it.
Thanx
|
|
|
|