|
Chaps,
I have this ActiveX control that we use rather extensively on our intranet to display test results, is it possible to use ActiveX controls on ASP.NET or would I have to make it into some kind of web service?
Thanks for any response
Wudan Master
|
|
|
|
|
I have not test it but I know at least you can use HTML code in ASP.NET,so you can use OBJECT tag.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Hi,
I have developed a set of .aspx pages that interact with a database. I have put the same database connection string into every page, but this isn't ideal for obvious reasons. Is there any way I can specify the database connection string outside of the .aspx pages or somwhere that all pages can access it from?
Cheers.
Dave.
|
|
|
|
|
Davey wrote:
somwhere that all pages can access it from?
Yes,in Global.asax
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Thanks for the pointer...
|
|
|
|
|
I have developed a web application that will only allow users to view pages once they have logged in. When I create a .aspx page I can call this will give me the current User or ID that is logged in:
Dim ClientID As String = User.Identity.Name
This works fine when I try and call the same line within a (.ascx) control page I get an error. Why can I not call the logged in user from a .ascx control or can I?
I also save a cookie at the login page but I also don’t know how to retrieve the data from within a (.ascx) page.
Response.Cookies("ClientID").Value = ClientId
|
|
|
|
|
I almost have the forums working, all except for a pesky little problem:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/forum/includes/forum.inc, line 65
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
I troubleshot it down to:
set m_Ax = Server.CreateObject("AspForum.Forum2.1")
any ideas?
tim
---------------------------------------
Tim Booher
|
|
|
|
|
How do I format a number using DataFormatString?
012345678901234 - Original
I need it to be in this format
##-##-###-###-###-##
01-23-456-789-012-34 - New Formatted Number
Any help would be appreciated?
Thanks
<asp:boundcolumn datafield="ROLL_NO" headertext="ROLL #" dataformatstring="{0:N2-2-3-3-2}">
|
|
|
|
|
check this sample from Microsoft. May be you can tweak it to your wish!!!
omkamal
|
|
|
|
|
I need to merge data in a database and have the application print out and look exactly like the current paper version. I have looking into generating a pdf file using XMLPDF, but to layout the entire app in xml might be too time comsuming. Does anyone know of any other solutions out there for creating a printable doc that is as good as the original paper app?
Joshua
Sonork ID: 100.9944
ICQ: 519642
Hotmail: JoshuaJGuy@hotmail.com
|
|
|
|
|
We have used an ActiveX product from Data Dynamics called Active Reports which allows the user to print the report from the web. This component also allows you to create PDF's. One of the great features from this company is they have a royalty free plug in for the end user to download. This is great when comparing licensing prices from companies like Crystal Reports. Hope this helps.
Nick Parker
|
|
|
|
|
When submitting a form...how can your compare the server time with the client time. If there is a restriction of 48hours.
The form must be submitted where as the people on the other side have time to set the request up...there needs to be a minimum of 48 hours. If the form is submited under that 48 hours...how can you return false or alert user...insufficent amount of time, please resubmit and adjust your time.
Thanks Lewis Ostrander
|
|
|
|
|
A couple things come to mind:
1) You could cookie them when they first get the form. Stick the server time and date into a cookie, then when they submit the form you can check cookie, compare it to the current time on the server and take any actions you need.
2) Use a database to record time / date of the user's first visit, then when they try to submit the form, check how much time has passed.
I'd go with option 2) I think, since it's not dependent on the browser accepting your cookie. Unfortunately you will need to identify the person filling out the form before you send it to them the first time.
Best,
Bill
|
|
|
|
|
In ASP I use querystring or forms to pass variables form one page to another.
What is changed with ASP.NET?? Are there any smart method to pass variables to other pages??
Tanks.
e.
|
|
|
|
|
|
Whenever I try to access a file by URL, for instance, like this:
$size = GetImageSize ("http://www.php.net/gifs/logo.gif");
or with a fopen() command, I always get this error:
Warning: php_hostconnect: connect failed in openurl.php on line X
Warning: fopen("http://www.binaryuprising.com/index.htm","r") - Bad file descriptor in myscript.php on line X
What gives? If I look at the php options on the server, it says:
allow_url_fopen = 1
That would seem to me to mean than opening of remote files is enabled. Any ideas?
~Cam Desautels (BinaryUprising.com)
|
|
|
|
|
Hai,
I have installed the .NET framework redistributable on a
machine. And I installed my ASP.NET web application that I
created. When I ran the application none of the ASP.NET
controls appeared. Can you tell me what I am missing?
I also found that in my development machine there is an
ASPNET user account created. This is not created in the
machine that I am testing (in which I only installed .NET
framework redist!!).
My project beta demo is broken because of this. Any quick help will be greatly appreciated.
omkamal
|
|
|
|
|
I have the same problem and also would like some help to why
none of my web form control appear?
note,. that the HTML controls do work and are visible,.. but
using web form controls ... well I just can't see them
|
|
|
|
|
Atleast this is what I found what!!! which solved the problem, but I am not sure whether this is the exact solution.
There must be an ASP.NET Server Service running on the machine in which you are viewing your website. This service runs under ASPNET user account. So two things,
1. Check whether ASPNET user account is created on your machine.
2. Then check whether the ASP.NET Server Service is installed. This is the aspnet_wp.exe file.
If none of these is fulfilled, then uninstall .NET redist, run windows update for latest security(see the requirements link in the .NET redist download page in microsoft website) and run updates for IIS.
Then install redist again. This is how I solved it. Any other suggestions/comments?
omkamal
|
|
|
|
|
ASP.NET Server Service running,.. what exactly is that,.. I have installed the iis and it is running fine,.. I can see normal asp webpages. but not with any web form controls on them.
what is a ASPNET user account?
I have tried looking for aspnet_wp.exe and couldn't find it.
plz note: I'm running this on an Windows XP
how do I reinstall the redist,.. I just installed the microsoft developer studio .net stuff,.. nothing more nothing less.
Peter
|
|
|
|
|
Peter Marino wrote:
ASP.NET Server Service running,.. what exactly is that
This service is used to manage state information while running asp.net web apps. Not clear though, about the exact details of this service.
Peter Marino wrote:
what is a ASPNET user account?
this account is used by your browser to run ASP.NET apps, again I dont know the exact definition.
Also, as I am using Win2K, I found the aspnet_wp.exe running in my machine and if I kill it, then my asp.net controls will not appear. I think that should also be existing in a Windows XP machine.
Peter Marino wrote:
how do I reinstall the redist
Go to add/remove programs and first uninstall the current Redist. (installed if any), and then just reinstall the Redist (either by downloading it from website) or if you have installed VS.NET final version then no need to worry about anything. It should take care of everything.
omkamal
|
|
|
|
|
where do I setup the ASP.NET Server Service?
and where do I create the ASPNET user account?, I
looked in the user account information and didn't find
anything about asp accounts.
|
|
|
|
|
I've been trying to work out how to create a search for a database (say, Excel or Access??) that is achieved through two or more dropdown menus on the webpage. Basically, the visitor is required to make selections from each dropdown menu, and once selections are made they post a search. But how do you allow these various combinations of menu selections pull up the information you're after? An example of a website that achieves this is www.carquote.com.au. I simply cannot work out how to connect up the database with the website, and then in such a way that allows a search of this database (without the user making any alterations to the database).
It would be fantastic to hear from anyone with some ideas! Thank you in anticipation!!!
|
|
|
|
|
Kate wrote:
how to create a search for a database
I am a little . Are you searching for a database? Or Are you querying some values from a database?
I went to the carquote website. I find it simple, that you keep all the car information in different tables. Then from your website dropdown menu selection, once the user clicks the find/search button, you build a query to the database using the selected values. Run the query against the database and display the result that you get back in whatever fashion you wanted to display.
Did I understand your question correctly???
omkamal
|
|
|
|
|
Hey Omkamal!
Sorry if I'm confusing you... it's just that I'm teaching myself how to do a database, so I don't know all the proper terms to use (nor really what I'm doing!!!)!
My problems are:
- working out HOW to connect a web-page to the database
- HOW to write an SQL statement that will operate like Carquotes' multiple dropdown menus
- what sort of database I should be using, and how the user using the web-page will draw its results from this database
- and hence how to get a new web-page of results!
Basically, I'm VERY new to this stuff, and unfortunately I haven't been able to find anything on the internet that might be able to help me out on web databases. If anyone knows of useful web-pages that would be great... or otherwise a more specific answer to my questions would be even greater!!!
CHEERS!
Kate
|
|
|
|