|
I am using scriptManager and JQuery in a same page. when i click anywhere on that page i am getting following error.
Line: 5959
Error: 'top.screenLeft' is null or not an object
When i debug this its pointing to following code in scriptResource.axd
var offsetL = w.screenLeft - top.screenLeft - top.document.documentElement.scrollLeft + 2;
please give solution for this.
Cheers..!
Vijay s
modified on Monday, September 14, 2009 2:22 AM
|
|
|
|
|
Hi
I'm getting error in "using Qse;" please help me.
locally it's working but after uploading on server not working.
I have created some functions in .cs file with namespace Qse in
App_Code folder in asp.net web application.
and in .aspx.cs trying to accees like this..
.
.
using Qse;//coming error error not able to find Qse
.
.
public partial class _Default : System.Web.UI.Page
{
Dbconnect DC = new Dbconnect();
protected void Page_Load(object sender, EventArgs e)
{
}
.
.
.
|
|
|
|
|
The error must mean your code is not present. Are you sure it is ? If so, perhaps you need to just force refresh your page to force it to compile and load ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
still it's coming.......
and locally working fine.
thanks for your kind response.
|
|
|
|
|
|
lsh486love wrote: do you know how to add fonts that I want?
How can we know ? I would assume you want to look at hte source code to see how fonts are added. Then you want to research if the fonts you want are going to be on every computer you want this to work on ( does this include Windows PCs only ? ). Then, if you think it's OK, add them.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Dear All,
My datalist paging is handled at page_preinit with dynamic link buttons. There is a combobox affecting the page count. So the number of pages is changed by the selected value of the combobox. However I am unable to retrieve this information at page_preinit. I tried hidden field and javascipt, however also hidden field value comes null at page_preinit.
Please help me...
|
|
|
|
|
your hidden field is empty precisely because you're in pre init, and you're in pre init because it runs before viewstate is restored. Why does this number change while it's on the client ? I mean, why is it that when you serve a page, you don't know when the next page is requested, what the number will be ? If you do, then put it on the URL, or in the session.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
use
this.Request.Params["yourid"] as in Pre_Init controls are not initialized... You can only find the data in Params or Form using its id. Or you may use Page_Load.
|
|
|
|
|
You are the man, thanks...
it is the solution and done...
|
|
|
|
|
Thank you so much ..
|
|
|
|
|
I have the following situation in an ASP.NET web application.
A parent aspx page has a usercontrol that has a button (say B1). A click of this button causes another aspx page to open in a pop-up via javascript in a .js file associated with the parent page (i.e window.open("........")).
The pop-up comes pre-populated with data retrieved on page_load of pop-up.
The pop-up has a button (say B2) which when clicked sends an email (to a valid address) via javascript-webservice. The button click is bound to a javascript method which has a webservie call, to which all necessary data is passed. After the B2 click the popup closes.
Now problem:
B1 click: Popup opens, B2 click : Mail is sent, Popup closes.
B1 click again: Popup opens, B2 click : Mail is sent, Popup closes.
B1 click again: Popup opens without content, just freezes up.
Work Around:
If window.close() after the Webservice call is removed and the pop-up is left open, n no. of B1 clicks sent mails successfully. Any closing of the popup immediately after B2 click followed by an immediate B1 click causes the system to hang.
SOS
|
|
|
|
|
Its difficult to make a guess without looking at the code.
Could you please post your code where you call the web service.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Is there a good reason for calling webservice from a JS? The best way to solve JS errors are to use FireBug and analyze the JS.
I would use a different method in this case rather than using JS to call web-service,
1) B1 click: Popup opens,
2) B2 click : A new thread is started in which web-service call will be executed.
3) Emit JS to close the popup to the response.
|
|
|
|
|
just Past ur code thats why I can find out solution
|
|
|
|
|
I even tried that.
The method in Business Logic that sends mail is a public static method which calls Smtpmail.Send(). Here visibly the call halts till the mail is send.
I tried then with Smtpmail.SendAsync(). Here the debugger passes the Async immediately and returns to the WebService but does not return to the javascript (I tried also by preventing immediate closure of the window).
Here is something similar:
function InWebService()
{
// Code that gets some values from hidden fields etc.
XYZFullyQualifiedNamespace.MailWebService.SendNotifyMail(//All Parameters,OnSuccess,OnFailed)
window.close(); // Also worked with commenting it.
}
function OnSuccess()
{}
function OnFailed()
{}
//-------------------------
Webservice
[WebMethod]
public bool SendNotifyMail(//All required Paarmeters)
{
// Code
bool isSent = MailBusinessLogic.SendMail(//All required Paarmeters);
}
//-------------------------
MailBusinessLogic
public static SendMail
{
// Smtp preparation, Port, Server, bCC, cc etc
objSmtp.SendMail(objMsgBody); // <= OPERATIONAL LINE [OL]
}
I changed [OL] with
objSmtp.SendMailAsync(objMsgBody,stringObject);
Then tried starting a new thread in a new method and delegating a non-static version of SendMail to it. But to no avail. This problem seems all too powerful.
//
GIST:
If the window is left open the mails can be repeatedly sent. If closed, it cannot be sent after 2nd time, the window freezes. Also I noticed that on third send with the window open, there is a small lag as though its waiting for the thread to return or something.
--- Thanks for the concern Navneet.
P.S. The peculiar setup of functionality is courtsey the client's wet dream
Best Regards
|
|
|
|
|
I want to create my own website such as www.abc.com in asp.net and want to make it live.
Do I need to purchase some license to create it?
if yes than how coslty it is?
Please suggest..
Thanks in advance!!
Gaurav
|
|
|
|
|
G.K.M. wrote: Do I need to purchase some license to create it?
if yes than how coslty it is?
You need to buy a domain name (i.e. www.abc.com) and a hosting plan. This should not be very expensive.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
G.K.M. wrote: Do I need to purchase some license to create it?
You may need to get a licensed version of Visual Studio to program.
|
|
|
|
|
No, there are no restrictions on the use of express editions.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yes. I forgot about express editions.
|
|
|
|
|
i am using ajax calender extender control.in my page i place textbox and calender extender control and dropdowndown controls.i select one date from extender it display to textbox .but when i select a item from dropdown the page refreshed .the textbox value is missing.plz help???
|
|
|
|
|
J.Vinod wrote: but when i select a item from dropdown the page refreshed .the textbox value is missing.plz help???
Its because Dorpdown box having Postback Enabled and while you are chaging the item from drop down its postback the whole page.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hello,
I have developed an app that allows users to upload asp files to a webserver, and would like to have them play dynamically. Does anyone have any suggestions as to how to make this happen? I have tried ASPNet Audio and PseudoMP3, but neither work.
|
|
|
|
|
dboy221 wrote: I have tried ASPNet Audio and PseudoMP3, but neither work.
Well, odds are very good that they work and you just can't work out how to use them.
There is no way ASP.NET can play an mp3. you need an activeX, java or other plugin to do that. So, you need to choose a plugin, and stick with it until you can work out how it works, perhaps asking for help on the forums of the people who provide it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|