|
Hello!
I´ve tried using a captchacontrol from this article: [^]
When I run it locally everything works fine, but when I publish it onto our webserver I only get a image generated now and then. I feel kind of lost as how I should solve this issue, does anyone have an idea of wherein the problem could lie?
/regards
|
|
|
|
|
Try putting a post on the website you provided a url for.
When you say:
livez wrote: I only get a image generated now and then
Do you mean sometimes it works sometimes it doesnt
We are not a Code Charity
|
|
|
|
|
"Do you mean sometimes it works sometimes it doesnt" yeah, sometimes I get no image at all. I´ve contacted the guy who made the control, but I´ve gotten no response yet. I thought maybe I did some very common mistake when working with httphandlers that could cause this, that someone immediately would know what to correkt.
|
|
|
|
|
Can you post some of your code?
We are not a Code Charity
|
|
|
|
|
Thanks for your response .Netman.
I now know a little more about what the problem is. The webserver was set to simulate web farm, when I turned this off the captcha worked fine. The captcha uses viewstate to store stuff, and this can be a problem in a web farm environment. I thought I had already solved this by setting a machinekey element in my web.config, but apparently something is missing.
|
|
|
|
|
OK, so have you got it fixed or is there still a problem?
Have you left web farm as turned off?
We are not a Code Charity
|
|
|
|
|
Problem remains
We will have a webfarm later on so I need to be able to use the captcha-control in a web farm environment. I have this (with another key)
machinekey validationkey="20B62370E8C940949E4734429E78CDE6F81E09BD63D5DB0A581CAE0C89704296E028DD544F2A184AFE7C45CA39A1540989A0880B948BCCCF23124226B5E738FD" decryptionkey="5A34CCAAC7973E35D80030F8457B16A18B1B6C459A7972F1" validation="SHA1" /machinekey
in our web.config, and I thought this would make viewstate work in a web farm environment, but that does not seem to be the case
modified on Thursday, May 29, 2008 5:19 AM
|
|
|
|
|
Hi
Sorry I do not know enough about this area to help you, I would try and research the web farm and see if that helps you
cheers
We are not a Code Charity
|
|
|
|
|
Found the solution =). The captcha control was saving stuff in cache.
Thanks for your time .netman!
|
|
|
|
|
Hi, i have a database of one company. i need to build the forms dynamically by placing the controls dynamically based on fields from database. i need to place the controls dynamically and also to decide which control based on fields from database
I need everything should be on fly.
Why because i am asking this for, if we are doing for another company acccording to thier database i need to generate forms on fly. Like this, for company to company i dont want to design all the forms through vs 2005 IDE. it takes too much time by desigining 50 to 70 forms. Rather to do it on fly any method is there?
If any have any idea, regarding this, please welcome them.
Thank you
G. Satish
G. Satish
|
|
|
|
|
So in fact you need one empty form which you will fill depending ont the datasource.. That's pretty much possible, I don't understand what your question is. You told us what you want but you didn't really ask a question.
What you want is possible, no problem... drag a placeholder on your form and create all controls on the fly...
for example
<br />
Panel pnlFirst = new Panel();<br />
pnlFirst.ID = "pnlFirst";<br />
<br />
Textbox tbName = new Textbox();<br />
tbName.ID = "tbName";<br />
<br />
pnlFirst.Controls.Add(tbName);<br />
PlaceHolder1.Controls.Add(pnlFirst);<br />
|
|
|
|
|
Thanks for your reply. But it is paniful by writing this type of code for each and every control in .cs file. Rather than forming controls like this, it is better to go to IDE and drag and drop the controls.
But i need some other method to place a controls at run time including postions also. For example if i have a table1 in database which contains 10 fileds. i will design a screen to select a table and then select a control for each and every field and i need to give x and y -axis postions. etc.
But except for positining, reminaing part is easy.
But i am seeing for any other way to build any number of pages in small time. The screen which i designed should be useful for any database to build the pages.
G. Satish
|
|
|
|
|
I still dont understand what it is you are trying to achieve.
You want a whole form to be created at runtime but you want to do it without any code, how do you expect that to happen?
Its almost like you want a CMS but Im not sure, your posts are confusing
We are not a Code Charity
|
|
|
|
|
Yeah, agree... posts ARE confusing. You should create a datasource capable of keeping al controls and it's properties and then place the on a form (also in datasource) but without code... Hrmm... I think i'll be interested in the result, this must be a pretty nice web application... Let me know if you're done...
Ofcourse you solution is a pretty nice solution (it may be) but requires loads of code, the fact you want to develop this application with the least amount of effort is erhm... silly
|
|
|
|
|
Dont take it my question as silly one. Think it about this. share your ideas. It's a nice concept in one singel click the form to be generated dynamically.
As i say above, its not mandatory to use database, you can do it any way. But the final goal is we need to generate a forms dynamically.
G. Satish
|
|
|
|
|
Hi,
I have one webservice on remote server with ip address "".i want to
create one proxy class for webapplication on local machine.my problem is,
how to create proxy of a webservice in .net application.
i need complete steps ( with example, any configurations and
settings needed,code,namespaces and refereces to use that proxy in a
webapplication on local machine ) for creating proxy and using that
proxy in a webapplication.
finally one thing i need complete details for remote webservice to
work in a webapplication on local machine
please give me the reply ASAP.
Thanks
madhavi.kona
|
|
|
|
|
First, I think your way of asking for help isn't really neat, we won't reply faster and every question on this forum requires an answer ASAP. Second, if you need complete details information how to work with a webservice, try the Webservice manual[^].
To help you now, right click your project in the solution explorer and choose Add Web Reference. A new window appears where you should enter the URL of your webservice. After you did that ways for Visual Studio to have completed 'reading' your webservice information and click OK. You're done... the proxy is generated for you
|
|
|
|
|
Read my signature and then come back with a proper question next time and dont double post
We are not a Code Charity
|
|
|
|
|
Hi,
I have one webservice on remote server with ip address "".i want to
create one proxy class for webapplicatio on local machine.my problem is,
how to create proxy of a webservice in .net application.
i need complete steps ( with example, any configurations and
settings needed,code,namespaces and refereces to use that proxy in a
webapplication on local machine ) for creating proxy and using that
proxy in a webapplication.
finally one thing i need complete details for remote webservice to
work in a webapplication on local machine
please give me the reply ASAP.
Thanks
madhavi.kona
|
|
|
|
|
My question is based on Intranet application.
There is a machine by the name of machine1 where i hosted the intranet application.
Now from machine2 which is attached with machine1 intranet application(virtual directory), i am trying to access the intranet application aspx page.This is working very fine.Even there is no shared folder on machine1.Simply , the windows firewall is off.It is an annonymous access.
But when i try to access those pages programatically , it says Access denied.
Please help
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
You posted this question yesterday and we answered it.
Have you not found a username and password yet?
We are not a Code Charity
|
|
|
|
|
We are using the "onkeypress" event in Javascript to determine when
the user hits a particular key. This works well unless an ASP.NET
control (such as a combobox) has focus. In this case the onkeypress
event does not fire. Unfortunately, our need is to handle key presses
when a control does have focus, so we are kind of stuck right now.
(Multiple key selection)
My question is, are we approaching this in the correct way? Is there
a better way to do this?
|
|
|
|
|
use the onkeypress event of the controls..
|
|
|
|
|
You can use the javascript and asp.net control on key press events.
However because users can turn javascript off in their browser then it may be better to use the server control onkeypress
We are not a Code Charity
|
|
|
|
|
Thanks for the answer...
i am using vs2005 for development and the problem is that combobox didn't offer the "onkeypress" event. i was successfully using this on select (html) tag and the javascript for my asp pages. but what should i do with my vs2005 combobox.
|
|
|
|