|
|
hi,
I need to detect the URL that a browser is requesting using vb.net? Please tell me how do i go about it! I need it to work on Firefox and IE.
Please tell me ASAP!!
Thanks in advance.
Cheers!!
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
You have little choice but to write a proxy server and configure the browsers to use your proxy to make the requests to get web pages.
|
|
|
|
|
hi,
thanks for the reply dave! Thats an option but can we configure a browser directly via code to use a proxy server?? Moreover, i dont think firewalls or malicious page detectors work this way..do they??
waiting for your reply.
Thanks in advance.
Cheers.
Sincerely,
Pranav Bhat.
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
Pranav Bhat wrote: Thats an option but can we configure a browser directly via code to use a proxy server??
Yes, but it would require poking a bunch of stuff into the Registry, different for each browser.
Pranav Bhat wrote: Moreover, i dont think firewalls or malicious page detectors work this way..do they??
Software firewalls on the local machines don't interact with the browser at all. They work on the network stack and watch the packets, and data in them. This is impossible to write in VB.NET (well, not impossible - you have to use 3rd party libraries line WinPcap) and requires you know FAR more about the network stack than how IP works.
Other firewalls and proxy servers that sit between the Internet and the workstations DO work this way. The browsers have to be configured to use the firewall/proxy or else they don't get out to the Internet.
Anything else is a plugin to the browser, for which you'll have to write a seperate plugin for each borwser you want to support, and install it on every workstation. I hate writing the same thing twice, so I don't like that option.
|
|
|
|
|
hi,
thanks for the answer dave!!
I'll have to choose from which option to go for!! But thanks anyways....i really appreciate it.
Cheers.
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
i have text file and this file change run time (batch file create text file and if run it next time put new result )
the question is how can put pointer in new position after change with function (seek)?
|
|
|
|
|
Hi guys,
I am developing using .net 2005. The label text on some of my controls (labels, radio buttons and checkboxes) on a single particular form in my project is not showing the last character. e.g. one checkbox control is supposed to show the following text:
"Separate source files from XML " its being shown as "Separate source files from XM "
another radiobutton control is supposed to show:
"Absolute Path " instead the output is "Absolute Pat "
This is happening on different controls in different positions on the form. I tested it on a client machine and the problem also came up there. how can i teach my application to spell correctly?
Thanks for your assistance...
Regards
|
|
|
|
|
Hi,
Label.AutoSize property
"When this property is set to true, the Label adjusts its width to display its entire
contents. This property is typically set to true when you use a Label control to display
various lengths of text, such as the status of an application process. You can also use this
property when the application will display text in various languages, and the size of the text
might increase or decrease based on the language settings in Windows."
If AutoSize is false, you must allow for sufficient Size.
Hope this helps.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Can anybody help me by showing me how an application on a computer representing the client computer be connected to a SQL database server on another computer representing the server computer to enhance easy transfer of data from the database between the 2 computers.
language :VB.net/SQL
BBia
|
|
|
|
|
Your question is too broad and ambiguous. The answer will depend on wat you are trying to achieve and your level of understanding of the programming language and technology to be used. As a starting point, use ADO.Net, SQL Connection, SQL Command and depending on wat you are trying to do exactly, u can also use SQL Adapter, datasets, dataset tables etcs. You can search the net for basics and notes on how to use them.
|
|
|
|
|
The guys are right, you need to tell us what do you want to achieve. and we will adivice, i have an N-Tier Article here on codeProject, where i have sepatated the layers Physically and as they have advice that you should use ADO.net, check this
http://www.codeproject.com/useritems/N-Tier_Application_VB.asp[^]
Hope this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Greetings,
I'm building an App that reads a very big XML file and saves the data in a SQL database.
The XML file is in encoding windows-1250 and it can't be changed.
The main point is to read all characters in the XML including croatian letters (Č,Ć,Ž,Š,Đ)
I have tried this code first: (with this method I get an error 'platform not supported'
xmlDoc = New XmlDocument()
xmlDoc.Load(xmlPath)
The second try: (in which I try to transform the encoding windows-1250 to UTF-8, It reads the XML but it deletes the croatian letters)
fileS = New FileStream(putanjaXml, FileMode.Open, FileAccess.Read)
xmlContext = New XmlParserContext(Nothing, Nothing, "", XmlSpace.Default, System.Text.Encoding.UTF8)
xtr = New XmlTextReader(fileS, XmlNodeType.Document, xmlContext)
xmlDoc = New XmlDocument()
xmlDoc.Load(xtr) // Not supported platform
fileS.Flush()
fileS.Close()
xtr.Close()
I have also tried the above method with system.text.encoding.Unicode and UTF7. But no luck.
So please does someone know how to read this XML file with this encoding (the METHOD must be xmlDocument.LOAD)
Thank you very much!
|
|
|
|
|
Hello all,
Do anybody have some idea of the Rinjdael algorithm? I ahve encryt some data from this algo but i am not geeting anything accurate on web. Please tell me the logic of the algorithm.
Neema Jain
|
|
|
|
|
|
Don't cross-post the same question in three forums! Please read the forum guidelines!
|
|
|
|
|
nimsrav wrote:
Do anybody have some idea of the Rinjdael algorithm?
Yeah, it works pretty good
nimsrav wrote: Please tell me the logic of the algorithm.
There was an article about it years ago in Dr. Dobb's Journal.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
how r u all
I'm creating an application to download files from internet, but I faced a problem when downloading from rapidshare.com, coz I have to enter the user name and password.
if anybody know how to do this plz help me
|
|
|
|
|
if u need to pass parameters to a web address u say
www.theWebAddress.com?parameter1=value...
|
|
|
|
|
hamzahaidar wrote: I'm creating an application to download files from internet, but I faced a problem when downloading from rapidshare.com, coz I have to enter the user name and password.
Wouldn't it be easier if you just post your existing code and let people look at it to see what the problem is? Or at least describe the methods you are using to get the file right now.
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
DigiOz Multimedia wrote:
Wouldn't it be easier if you just post your existing code and let people look at it to see what the problem is?
Could be, but some people have the tendency to dump all of the code in the post rather than just the trouble spot.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I never use ajax..
I want to use AJAX in my asp.net 2.0 application how i can enable ajax for that application
Girish Soni
|
|
|
|
|
sonigirish wrote: I never use ajax..
I want to use AJAX in my asp.net 2.0 application
You want to start off with a book... Maybe Rama Krishna Vavilala can help you select one
|
|
|
|
|
I've added the following code to a test project, added the reference to Microsoft Shell Controls and Automation, imported the Shell32 namespace:
Dim objShellWindow As Shell
objShellWindow = CreateObject("Shell.Application")
MsgBox(objShellWindow.Windows.ToString)
I need the title bar text of Windows Explorer and each of it's instances, but with this code I only get:
System.__ComObject.
Thanks again and I'm sorry for keep bugging everyone on this problem.
Regards
Graeme Guildford
I am always greteful for any help!
|
|
|
|
|
The "Windows" method returns a collection of Shell-owned ShellWindow objects. You're calling ToString on that collection, which cannot be converted to a string. That's where you're getting the "System._ComObject" from.
You have to add a second COM reference to "Microsoft Internet Controls". Your code to enumerate the Shell Windows would look something like:
Imports Shell32
Imports SHDocVw
.
.
.
Dim objShell As New Shell
Dim shellWindows As ShellWindows = objShell.Windows
For Each window As ShellBrowserWindow In shellWindows
Debug.WriteLine("LocationName: " & window.LocationName)
Debug.WriteLine("LocationURL : " & window.LocationURL)
Next
|
|
|
|