|
Are you using the UpdatePanel to hide the TextBox, i.e. setting Visibility to false on the TextBox (or any control containing the TextBox)?
In that case, you are not really hiding the TextBox, but actually removing it. When you show it again, a new TextBox (which is identical to the previous) is added to the page. As it's not even the same TextBox, it can naturally not keep focus.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
So, what's the solution?
There must be some.
|
|
|
|
|
I have data in fields in a form and I want to have a button that when I click the button it will create a pdf report with
the data from the fields in the pdf report. I'm not sure what way to code this.
Anyone know how to do this?
macca
|
|
|
|
|
Your best bet is to use some reporting engine to create your reports, then they can be output to PDF. CrystalReports, ActiveReports, Sql Server Reporting Services all have solutions. Or just search google for "pdf report" and you'll find many solutions which are compatible with your platform.
|
|
|
|
|
|
Hi
I have a javascript function which at the moment is set for the mouseover in my div tag
I would like to control this function through my c# for checkchange of a checkbox
How would I do this?
thanks!
|
|
|
|
|
How do you want to "control" the function?
The server code and the client script doesn't exist at the same time, and not at the same place. The server code is run to create the html document, which is then sent to the browser, where the Javascript code is started.
You can send information from the script to the server when the browser is sending a request to the server. From the server code you can put things in the page, that will become part of the client script when the page is loaded in the browser.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
you can type code as checkbox's click method:
ClientScript.RegisterClientScriptBlock(this.GetType(), "control", "you function");
I love li li huang ,
ha ha ,
but you don't who is she!
|
|
|
|
|
cannot CreateObject("com.sun.star.ServiceManager")
--------------------------------------------------------------------------------
The error I get while running <varname> = CreateObject("com.sun.star.ServiceManager") is cannot create ActiveX object
I have got this working while running in dev mode (ie able to step through code) which means the worker process is running as the person I am logged in with (in this case Administrator), but when I access the page from another machine (on the same network) it falls over with cannot create ActiveX object on the line varname = CreateObject("com.sun.star.ServiceManager")
I think this is down to premission issues of the network user, so I have allowed network user permissions to open office in dcom+ which didnt solve it. I then tralled the registry giving permissions for anything with regards to openoffice and writer, still to no avail.
Has anyone out there experienced a similar issue? More importantly did you manage to get it resolved??
Details: Win2k3 server; ASP.NET 2.0; VS Express Edition 2008; IIS6.0
Thanks for any help offered.
|
|
|
|
|
What are you trying to do, and what programming language are you using?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi Guffa,
I am trying to count the number of pages in a document and return the value to a variable. I am using ASP.NET (VB) running ASP.NET 2.0 on IIS6.0 Win2k3. I have acheived this result when running the code as an Administrator, the problem comes in when running the code as Network Service which indicates a permissions issue of some sort?
What do you think?
Justin
|
|
|
|
|
Going by the CreateObject function he has mentioned, it looks like he is trying to do some automation stuff either with StarOffice or OpenOffice.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
Either the classID is not registered properly (installation issue) or Permissions problem for ASP.NET?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi Vasudevan,
I think it is a permissions issue persoanlly, but am completely open to suggestions for things to try.. The reason I think it's permissions is because when running the code under an administrator it works fine (ie creates the object) and continues running the code. Your thoughts?
Justin
|
|
|
|
|
Check out this thread:
http://www.oooforum.org/forum/viewtopic.phtml?t=13948[^]
LarsB (OOO Advocate) seems to be highlighting on a solution like tweaking the processmodel of ASP.NET.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Thanks I'll have a look at it tonight and post the results. Hopefully I'll have some good news (well for me at least) to post!!
|
|
|
|
|
Hi,
Well after much reading of many posts, I 'tweaked' the process model to make it run under a System Account but unfortunatley this does not work either. It does not fall over with Cannot create ActiveX object, it just 'seems' to hang on this line of code. When I have a look at the task bar on the server I see soffice.bin and soffice.exe being launched, but it's launched under Netwrrok Service.
Does anyone know if it is possible for me to physically log Network Service in and run Open Office while logged in to it? I just want to make sure this is not an issue with some sort of setup, ie like a spalsh screen asking me to agree to terms and conditions etc.
Thanks
Justin
|
|
|
|
|
Hi
I need to develop the control like r.a.d which resides in toolbox which will drag into our web page (eg: textbox,label,grid control etc.).
Normal user controls are used by <@Register> tag [i dont wnat like this].
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
What About AJAX ?
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Hi
Thanks for your reply.
I Need to create my own controls with specific rules.so i avoid to use AJAX. Please let me know the procedure for developing controls.
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
|
Exactly this is custom control not a "User Control".
Thank you very much.
r_palanivel83 10:01 4 Jan '06
|
|
|
|
|
I have a detail view with paging enable the user are allowed to view first three page of detail view and after that the user is authenticated if the user is registered then s/he is allowed to navigate to next pageindex other wise asked to registration.
How can I do this
|
|
|
|
|
well apply a admin/user column in your login table
apply 1 to user
0 for admin
then check which one they are when the page loads and apply appropriate filtering.
ps I didnt know jt was a programmer
|
|
|
|