|
use onblur Property for Lostfoucs on Client Side
<asp:textbox id="yourtext" runat="server" onblur="YourJScriptMethods();" xmlns:asp="#unknown" />
|
|
|
|
|
thanks,
actually iam new to javascript... i have to check this first...
Pravin
|
|
|
|
|
sure , just check it and let me know .
|
|
|
|
|
Hi,
I have an website which has few pages accessing data in an old method(The ADODB method) and few pages using the ODBC method. All the pages works fine in an 32 bit XP machine. We have a server with 64 bit, when i deployed this website in that server, i got the following error,
Class not registered
Exception Details: System.Runtime.InteropServices.COMException: Class not registered
Stack Trace:
[COMException (0x80040154): Class not registered]
ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options) +0
When it tries to opdn the ADODB connection, it fails. I have installed MDAC 2.8 in that server.
Do i have to do anything more to get it work. Any suggestions would be of great use.
N.Surendra Prasad
|
|
|
|
|
did you install 64bit .NET Framework on that system !!!
|
|
|
|
|
Yes, 64 bit .net framework is installed in that machine.
N.Surendra Prasad
|
|
|
|
|
How did you deployed the sites on IIS ? did you published the Sites from visual Studio?
|
|
|
|
|
Yes, i published it through Visual Studio.
N.Surendra Prasad
|
|
|
|
|
Did you Embed you DAta access code into your page or you have a DLL for that ? if so did you deploy it with your Application ?
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
The Data Access code is embedeed in my page. I donot have a separate DLL for that.
N.Surendra Prasad
|
|
|
|
|
hi
I deploy my application like this. I after i Build the Project,i use the Copy Website feuture of VS to the Production Folder that i have Created, and that will be all i dont use Publish feuture, i think thats where you got a Problem. i know what the Publish do , but in that case i dont rely on VS to do it for me. try not to use Publish, i have a 64 machine and i dont have problems.
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi I have developed an asp.net webpage which contains one textbox.I want when the user presses M key inside the textbox,a serverside event(aspButton1.Click) to be fired.We tried with _doPostBack.But failed.
ARINDAM
|
|
|
|
|
Hi Arindam,
please check your last post. you have the answer. dont repost the same topic
|
|
|
|
|
I can not use AJAX.My webpage will run on a mobile browser.I am not sure whether mobile browser supports AJAX or not.
ARINDAM
|
|
|
|
|
then you need to mention it first while posting. Any way, i am not sure about mobile application but i think it should support Ajax.
i am not sure!!
|
|
|
|
|
yes i sould have mentioned it first.anyway thanks for reply Abhijit.
ARINDAM
|
|
|
|
|
Hi...
I am making a website in asp.net using c#. I want to give functionality of downloading a file. For dat i tried using SaveFileDialog in codebehind as under.
SaveFileDialog DialogSave = new SaveFileDialog();
if (DialogSave.ShowDialog() == DialogResult.OK)
{
}
else
{
}
Bt wen comparing if condition, it gives me following error.
"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process."
Can someone tell me the way to use this SaveFileDialog or some other way to achieve this functionality.
|
|
|
|
|
needhi_p wrote: I want to give functionality of downloading a file
Just redirect to the file which you would like your users to download. Say you have a file in files directory. To download it, Response.Redirect("files/yourfilename.extension")
needhi_p wrote: SaveFileDialog DialogSave = new SaveFileDialog();
if (DialogSave.ShowDialog() == DialogResult.OK)
{
}
else
{
}
You are lost completly. Take some good books on ASP.NET and learn how it works. SaveFileDialog is commonly used in stand-alone applications not in ASP.NET.
|
|
|
|
|
If you do this, you're trying to display the save file dialog on the server, not the client. Not going to work.
If you send a file to a web browser, it will automatically try to give you the option to save it if it's not a recognised html file.
|
|
|
|
|
thnx everyone for helping.. have solved it
|
|
|
|
|
Hi I want a server side event(e.g aspButton1.Click) to be called from a javascript.How can I do this?
ARINDAM
|
|
|
|
|
You can do with AJAX.Please try Google
Cheers!!
Brij
|
|
|
|
|
|
Try this
Javascript :
__doPostBack('RAISE_Your_Event','specify_argument_here_if_needed');
ASPX.CS Page_Load Event:
if (this.IsPostBack)
{
this.GetPostBackEventReference(this, string.Empty);
string eventTarget = (this.Request["__EVENTTARGET"] == null) ? string.Empty : this.Request["__EVENTTARGET"];
if (eventTarget == "RAISE_Your_Event")
{
string argumentValue = (this.Request["__EVENTARGUMENT"] == null) ? string.Empty : this.Request["__EVENTARGUMENT"];
}
}
"Change is permanent, somethings never change!"
|
|
|
|
|
Hello everyone,
I am using loadcontrol method to load custom controls.
I have a single .aspx page and a left menu (.ascx control) which is loaded dynamically.
When i click on the left menu's link, control is loaded accordingly.
The problem is:
Loadcontrol always loads control with ispostback=true.
It happens bcoz i have used __doPostBack() onclick of the leftmenu's link.
I want the ispostback = false in the control's load event.
Any help is always welcome.
Thanks,
Malay Khandhediya.
|
|
|
|