|
Hi,
I need users to click particular cell in list view, and on click need to change its back color.
I am having 3 rows and 4 columns. I need users to able to click on any row, 2 column cells, and on click i need to change its back color?
How to do this, any help?
Rams.
Be simple and Be sample.
|
|
|
|
|
when i run any project in .net, server controls like command button, text boxes, list boxes etc. are not visible. It might be a IIS problem. but how to correct it.
Chaitra N
|
|
|
|
|
Re-Install IIS.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Run aspnet_regiis from your .NET folder, sounds like ASP.NET in not installed. Reinstalling IIS would certainly mean you'd need to do this, before it would work again.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i am developing a project with asp.net web application and vb script. When i try to connect the interface wit the database it is giving errors. I am using datacommand.
what might be the reason for error?
Chaitra N
|
|
|
|
|
n_gchaitra wrote: what might be the reason for error?
How are we supposed to know if you don't supply the error message? A snippet of the code you're using would also help.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I need to multiply two integers that contain more than the 19 digit limit for long integer variables. At first I thought that I could place both numbers into an array list with each digit occupying a separate places in the array. And while that seems like a good way to get around the whole overflow problem, it still doesn't work because I wouldn't have a place to put the answer while I'm computing it.
It seems like it should be a simple answer to the problem, but I think that I am over thinking. Anyone with any kind of idea on answering this?
|
|
|
|
|
Couldn't you just use decimal instead.
|
|
|
|
|
Yeah, the Decimal type will handle this for you.
Or, if you wait until .NET 3.5, there's a built in BigInteger type you can use that'll work with integers of unlimited size, up to available memory of course.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
You know, that might work. It is an assignment for a ASP.Net 2.0 class where we are writing web services. My professor just says long integers are limited but how would you multiply two of them. I'll try that, maybe.
Thanks
|
|
|
|
|
Hey,
I am working on this project that requires me to save a picture/jpeg to a folder from a scanner.
I have download many twain software to help in the process, but with these software i am unable to complied my program and use it else where because these twain dll are not free, they all needs registration code..i am using vintasoft twain.
here are my questions?
1. does anyone know where i could get twain dll library that allows me to save a jpeg image from a scanner and at the same time its free so i can complied it in my project?
2.Is there a better or easier way of doing this: that is saving an image from a scanner to a file?
3. Does anyone have the vintasoft activation code i could use?
I have found a vb.net sample code that doesn't use any twain dll, but the problem is that it was done in C# and not vb. If any one know how to convert it to vb, please send your email address so i can send it to you to be converted. I have tried online conversion programs..but didn't convert it properly.
Please help..
thanks.
Nab
|
|
|
|
|
JustmeNick wrote: 1. does anyone know where i could get twain dll library that allows me to save a jpeg image from a scanner and at the same time its free so i can complied it in my project?
Not that I've ever seen. Everything I've ever come acrossed costs $$$.
JustmeNick wrote: 2.Is there a better or easier way of doing this: that is saving an image from a scanner to a file?
Nope. You can't really tell the scanner to save to a file anyway. Without TWAIN or something like the generic Windows Image Aquisition Interface (WIA), you couldn't tell the scanner to do anything anyway.
JustmeNick wrote: 3. Does anyone have the vintasoft activation code i could use?
You should be taken out and shot for even thinking of asking this question here, or anywhere else. Asking a bunch of developers to help you steal a piece of software? Developers that make their living selling software and you want them to help you steal it??
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Man you are harsh...I am sorry for saying that..but could you help me, i need help..thats why i asked.
any suggestions on how to get it done?
Nab
|
|
|
|
|
JustmeNick wrote: thats why i asked
You asked because you have no ethics, and wanted to steal something.
The Atalasoft TWAIN library is $400 and does a great job, their support also rocks.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
JustmeNick wrote: Man you are harsh...I am sorry for saying that..but could you help me, i need help..thats why i asked.
THEN BUY IT! Harsh?! You asked for someones license key that they spent a ton of money on. This isn't harsh.
You haven't begun to see harsh until you've had the FBI in your face. How's that for harsh?
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Dosadi has a free version of EzTwain Classic on thier website that works okay.
http://www.dosadi.com
|
|
|
|
|
Don't tell me. Reply to the OP. That way, he'll get an email notice that you replied.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi,
I'm currently developping an internet hotspot. This hotspot is connected to the internet by a cell-phone modem. Since this solution is used on passenger ships trough Europe, sometimes there is no connection to the internet. When this is the case, the hotspots clients will receive 'page cannot be displayed' errors. (the client can't reach the DNS server on the internet).
Right now I'm researching the possibility to write a DNS server, which normaly should forward all incomming request to another (internet) DNS server and return them to my clients. ONLY if there is no response from the forwarding DNS server, my DNS server should return a default address. On this address I will configure a webpage informing the clients about the current connection status.
If anybody has suggestions about this I would be glad to hear them.
Thanks in advance!
Kind regards,
Tom
|
|
|
|
|
You don't need your own DNS server. A Proxy server could do this though. Just about anything off-the-shelf would work and let you configure the error page.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Thank you for your reaction.
I'm aware of the possibilities of using a proxy server. The first version of my solution was in fact based on a proxy server. But there is one major problem with that approach. Since the clients are unknown users, I need to redirect them to a page where they can log in. Only after this, they are allowed to use the Internet. (the system is based on a radius server for authentication and accounting.) As far as I know, this isn't possible with a proxy server.
Authentication isn't a problem at all when using a proxy server, it is the redirection part that is quite hard to accomplish WITHOUT installing a proxy client or something like that.
It is my intention to have the clients use this hotspot without the need to install any software or having to make changes to their settings.
In fact, I have accomplished that part to my satisfaction. The only problem that remains is the problem that I described in my first post.
I think I need a multithreading server and a DNS component to reach my goal. In fact, all I want to do is forward all incomming DNS queries and return them to my clients. I only want to send a custom address when the forwarding server is unreachable.
Do you know of any project that is usable as a basis for this? I already found a DNS component for queriyng servers, but I still need something to listen / answer DNS requests.
Any comment would be usefull and appreciated.
Kind regards,
Tom.
|
|
|
|
|
TomPanjer1974 wrote: it is the redirection part that is quite hard to accomplish WITHOUT installing a proxy client or something like that.
What client? This is stuff that's built into every web browser already. You don't need a client, just the configuration.
TomPanjer1974 wrote: In fact, all I want to do is forward all incomming DNS queries and return them to my clients. I only want to send a custom address when the forwarding server is unreachable.
DNS servers already do this. but, they'll cache the fesults and pass the cached versions to the client if the upstream DNS isn't available. Now you run into the same problem. The DNS server doesn't care that the web page isn't available, but a proxy server does. Thats why i said this could be done using the proxy. If the page isn't available, it'll send down either a standard 400 or 500 error page or a custom one which you supply, like your status page.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Is it possible to automaticly configure an anonymous client's webbrowser to use a proxy server?
Dave Kreskowiak wrote: DNS servers already do this. but, they'll cache the fesults and pass the cached versions to the client if the upstream DNS isn't available
I know. That's why I'm still thinking of building my own DNS server, so I can controll the way it give's answers to my clients. No caching, just forwarding all the queries.
I realy appreciate your suggestions, it's just that I want to offer a solution where my clients do not need to change any settings. And as I sayd before: I don't know of a way to configure my clients webbrowsers to use a proxy server, while pointing them to a diffrent DNS server is easy enough.
|
|
|
|
|
TomPanjer1974 wrote: Is it possible to automaticly configure an anonymous client's webbrowser to use a proxy server?
Nope, and you don't have to.
You also don't have to write a DNS server to do this either.
I don't know exactly how it's done, but do some research into how Internet server works in a hotel. If you connect to the wireless network in a hotel and request a page, the first page you get is a login page for charges or some other "Welcome to Holiday Inn" page or some garbage like that.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi Dave,
Thanks again for your response.
Dave Kreskowiak wrote: I don't know exactly how it's done, but do some research into how Internet server works in a hotel. If you connect to the wireless network in a hotel and request a page, the first page you get is a login page for charges or some other "Welcome to Holiday Inn" page or some garbage like that.
That's exactly what I did some months ago. There are several programs available to do this, and in fact I'm using one. The only problem is, that ALL these hotspot programs depend on a normal internet connection, which isn't supose to fail. In my case, my internet connection is cell-phone based and therefore not as reliable as an xDSL line for example.
The software i'm currently using takes care of the redirection part. As soon as my clients connect to one of my accespoints, they are provided with an IP address, subnetmask, gateway and dns server. The gateway is my hotspot server which redirects my clients as soon as they try to access the internet. They get redirected to my authentication page. As soon as they are authenticated, there mac address is allowed in the radius server and off they go.
Again, this solution works perfect (in fact it does on a 100 or so locations) as long as the internet connection doesn't fail.
So I would like to thank you again for your comments, but I realy would like some help with building my custom DNS server. On this website I have found an article by Xiangyang Liu
called "A Simple .NET TCP Socket Component". In your opinion, is this usefull for what I'm trying to accomplish? I would like to use it as basis for my server, but I can't get it to work...
Looking forward to hear from you again!
|
|
|
|
|
Please respond only if you can complete this assignment immediately! I need to create a name list program using parallel arrays. The first array lists names and the second array holds the gender of each person. There is an M for male names and an F for female names. I have created a list box (lstNames) and command buttons (cmdBoys, cmdGirls), but I need the code set so that the user will get a list of male names or female names in the list box. I've created the arrays, and put some code in but it's not working.
This is the code I wrote... well... the mess i've created
PLEASE any help greatly appreciated, but I'm just learning... please keep it simple!
' Declare and initialize the name array
Dim strNames() As String = {"John", "Paul", "Mary", "Jane", "Peter", "Sam", "Andrew", _
"Laura", "Juan", "Rachel", "Clifford", "Thomas", "Rebecca", "Susan", "Roberto", _
"Stefano", "Sara", "Jean", "Fred", "Roseann", "Alan", "Sally", "Dean", "Karen", "Carol"}
' Declare gender
Dim strGender() As String = {"M", "M", "F", "F", "M", "M", "M", "F", "M", "F", "M", "M", _
"F", "F", "M", "M", "F", "F", "M", "F", "M", "F", "M", "F", "F"}
Private Sub cmdBoys_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdBoys.Click
lstNames.Items.Clear()
'Declare an index variable
Dim intIndex As Integer
Dim intGender As Integer
'Set the index to the lower bound
intIndex = strNames.GetLowerBound(0)
'While the index is in range compare an element in the array with the search text
While ((intIndex < strNames.GetUpperBound(0)) And (strGender(intGender) = "M"))
intIndex += 1
End While
If strGender(intGender) = "M" Then
lstNames.Items.Add(strNames)
End If
End Sub
End Class
Laura
|
|
|
|
|