|
Imports System.IO
Public Class Form1
Dim f1 As New FileStream("d:\weexcel.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read)
Dim bw As New BinaryWriter(f1)
Dim br As New BinaryReader(f1)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer = 1
While i <= 5
bw.Write(CStr(i))
i = i + 1
End While
br.BaseStream.Seek(1, SeekOrigin.Begin)
TextBox1.Text = br.ReadChars(10)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class
|
|
|
|
|
Just a quick question:
I ran across the following operator in one of our application's javascript functions: !==
Has anyone ever seen this before? I can't find any reference to this operator using Google, but the code doesn't throw any errors when it sees this operator.
I started wondering if this is the opposite operation for "===". Any information is welcome.
Thanks in advance.
Have faith in yourself; amateurs built the Ark, professionals built the Titanic.
|
|
|
|
|
It's the opposite, if you like, of the identity operator ==
Non-identity[^]
|
|
|
|
|
Thank you.
Have faith in yourself; amateurs built the Ark, professionals built the Titanic.
|
|
|
|
|
Hi Guys,
Have you encountered problem in reporting services project deployment?
I am actually using visual studio 2005, mssql2005 express edition with advance services. I actually transferred the report manager and report server folder in C:\inetpub\wwwroot\ and configured the IIS6.0 properly.
It's been 2 days already finding correct solutions from different forums but still not luck at all on how to fix it.
In visual studio 2005, in TargetUrl I placed http://localhost/reports$SQLExpress. And also, I configured the report server correctly but during deployment an error will display -
Error:
A connection could not be made to the report server http://localhost/reports$SQLExpress
Anybody has the fix?
Thanks
hifiger2004
|
|
|
|
|
Hello,
I am new to java technology. I have a jsp page wich contains a DropDownList (SELECT), two text boxes and a button. What I need to do is, I need to display one textbox (txtName) and hide the 2nd one (txtEmail) when the 1st index of SELECT is selected; and on selected index change if 2nd index is selected, the txtEmail to visible and txtName is to hide.
and on Button press it should submit values at another page.
Can any body help out.
Regards, Qaiser Nadeem
|
|
|
|
|
i'm sure they could if you posted in the java section. there's a link up top next to where it says .NET
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hey all,
Think this is the best place to post this, correct me if i'm wrong...
I've been putting together some html emails for the company I work for and I cannot get them to render properly in Outlook 2007.
I have been through all the tutorials that I can find, have downloaded the validators for Dreamweaver, and visual studio 2005 and they all say that what I'm doing is just fine.
However, I'm still getting horizontal spaces between some images.
The layout is being generated by fireworks and so is completely table based. I have checked all of the widths, and added these to individual cells to try an force them to be the same size as the images contained within...
I have checked that the right no. of columns is being created and I'm now at a loss.
Does anyone have a clue what else could be wrong? I have no background images etc and no positioning, my css is limited to font-family, td img {display:block}, background-color and font-size, so it shouldn't be that.
Thanks in advance, I know this can be a sore subject..
Mark
|
|
|
|
|
Check that there are no spaces after the closing > img tags, and that border="0" attrtibutes are added to them.
What happens whne you create a webpage using the same HTML? How does that display?
|
|
|
|
|
Hi,
I have removed all whitespace after imagetags etc and all the images have border="0" on them ( I also tried swapping that to css but with no effect)
When I view in a normal browser it renders just fine, ff3, opera, safari, ie7, ie8, chrome...
this is the encoding I'm using (again, tried changing this in the past but tp no effect):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
fireworks has this horrible habit of creating an extra row and column filled with spacer.gif, which i have tried removing, but thanks to the complexity of rowspans/colspans, it always ends in tears.
I have another department designing the emails for me and I can't get them to build it from the ground up, I'm just at a bit of a loss now..
Also, don't know if it helps, some (not all) of the images are links, as with most html emails, these seem to be the ones mis-behaving for me. I'v run out of attributes to add / change that i can think of.
Thanks for the reply
Mark
modified on Monday, September 29, 2008 11:28 AM
|
|
|
|
|
Hello friends can anyone tell me ow can i import and export ".xls" files from php.
|
|
|
|
|
|
|
I am trying to setup a site where I connect to an SAAS system via an iframe in my default.asp page. However I seem to be having troubles getting the iframe to pass a variable in the URL.
Here's what I'm trying to do. If I click on the following link, I am immediately logged in as a guest at the SAAS site. Just pasting the link in my browser works correctly.
http://www.mywebapp.com/home/login.asp?FromLogin=1
However, if i use the same URL an iframe, it doesn't seem to pass the variable because I end up at the login page.
<iframe src="<a href="http://www.mywebapp.com/home/login.asp?FromLogin=1">
Can anyone provide a suggestion? This is driving me nuts!
Thanks in advance for your help!
|
|
|
|
|
Don't suppose the obvious occurred to you?
|
|
|
|
|
Thanks for the suggestion. Actually the link i s am using is:
<iframe src="a href="http://www.mywebapp.com/home/login.asp?FromLogin=1"></iframe>
So no. Unfortunately it did not work.
Michael
|
|
|
|
|
Dear All,
i am new to php, i am querying data from mysql database using php.
i can query data from mysql,but when i query the persian (farsi) data from mysql i see these characters (??????) in my browser i dont know how to solve this problem. the character "????????"
plz help me
|
|
|
|
|
More than likely you need to set the character encoding of the HTML page to something that supports Farsi (for example, UTF-8)
|
|
|
|
|
your answer is correct, i saved my page in utf8 format and i even add the script Header (... charset=utf-8) but still it is not working
Abdul Rahaman Hamidy
Senior Student Student in Computer Science
Kabul, Afghanistan
Software Developer
|
|
|
|
|
Hi Rahman.
First you should set Column Charset to utf8 and set Column Collate to utf8_persian_ci in your MySql table.
Then before each query first send these queries :
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET 'utf8'");
mysql_query("SET character_set_client = utf8 ");
mysql_query("SET character_set_results = NULL ") ;
mysql_query("SET character_set_connection = utf8 ");
By the way there is a great Persian Forum here[^] that you can ask your questions over there in Persian.
|
|
|
|
|
Thank you very much and You solved my problem.
I do really appreciate your assist and cooperation.
It works fine.
Abdul Rahaman Hamidy
Senior Student Student in Computer Science
Kabul, Afghanistan
Software Developer
|
|
|
|
|
No problem.
I'm glad to help.
|
|
|
|
|
I'm trying to access my eMail contents using "telnet". My eMail Address is testpopid@yahoo.com (I've made it temprarily and will delete it after your answers ). here is my conversation with the server:
telnet pop.mail.yahoo.com 110<br />
+OK hello from popgate 2.4 ...<br />
USER testpopid<br />
+OK Password required.<br />
PASS MyPassword<br />
-ERR [AUTH] invalid user/password
I use the password I defined when creating the eMail account. When I try to log into my account within my brower, ther's no problem and the above password works (I use www.yahoo.com to log in)
Thank you masters!
|
|
|
|
|
Yahoo may use more advanced authentication than simple plain-text passwords.
|
|
|
|
|
Yes, that's what I was getting across to him in his cross-post in another forum.
Johnny ² wrote: more advanced authentication than simple plain-text passwords
And for obviously good reason.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|