|
meirav wrote:
By using asp i am trying to build a chat, but i don't know how to send a message to a specific member - meaning a private message.
Is there anyone who can help me please???
There are plenty of people here that can and are willing to help with an issue, but you have to be more specific. For instance, how are you broadcasting messages right now?
Generally with chat programs you know the users that are in the room. Instead of sending a message to all the users, just single one out. That's about all I can say until you give more details.
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
|
|
|
|
|
In my Access database, i have a field called REVIEW. It contains many characters and sentences. What I wanted to do is to only display x amount of characters. Well, that would result in cutting half of a word if 150 characters happen to stop at said a word called "insurance". anyway, whats a better way to do this??? Can I only display the first sentence, when it stop at the mintue they see the "." (period)?? thanks
jlo
<%= left(rs("review"), 150) %>
|
|
|
|
|
Try using this function...
Function TruncWithChar (data, length, char)
' if we don't find the char, just return the string
If Not InStr(Left(data, length), char) > 0 Then
TruncWithChar = Trim(Left(data, length))
Exit Function
End If
' check for the char
If Mid(data, length, 1) = char Then
TruncWithChar = Trim(Left(data, length))
Else
' it's not, find the last position
x = InStrRev(Left(data, length), char)
TruncWithChar = Trim(Left(data, x))
End IF
End Function
Here's an example call you can use with the sentence situation...
TruncWithChar("Let me tell ya story 'bout a man named Jed. Poor mountaineer", 50, ".")
Jeremy L. Falcon
"The One Who Said, 'The One Who Said...'"
|
|
|
|
|
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.
|
|
|
|