dickersonka 104 Veteran Poster

BitConverter is overloaded to accept double, int, and string i believe.

you can parse a double out of the textbox

double d = Double.Parse(TextBox.Text);
byte[] buffer_2_send = BitConverter.GetBytes(d);

I think this is what you meant, but if not, what are you meaning by 'just convert the double itself'?

dickersonka 104 Veteran Poster

on the second grant, use identified by password

and also at the end of it, add with grant option

after done, use

flush privileges;
dickersonka 104 Veteran Poster

what happens if you just use

setcookie(ID_my_site);
setcookie(Key_my_site_);
dickersonka 104 Veteran Poster

Please enclose the code in code brackets

int curLine = 0;
while (line != null)
{
curLine++;

if(curLine == 29)
{
//we are on line 29
}

// string[] stationtxt = line.Split('\t');

string name = line.Split('\t')[0];
string url = line.Split('\t')[1];
string desc = line.Split('\t')[2];

line = reader.ReadLine();
TextBox1.Text = url.ToString();

}

i don't know what col6-9 is, you are only showing three columns, but that is how it get the line number

dickersonka 104 Veteran Poster

session is only for the time the user has your site opened

if you need expiry time after you close the browser, use cookies as architact stated

dickersonka 104 Veteran Poster

agree with kavitha

use this to destroy the session

session_destroy();

this to reset the cookie
if its cookie just set to its name

setcookie('nameofcookie');
dickersonka 104 Veteran Poster

use a readline down to row 29, then however your columns are delimited, read 6 through 9

what piece are you having trouble with, please post the code

dickersonka 104 Veteran Poster

i can't tell completely what you are meaning, but looks like a group by should take care of it

dickersonka 104 Veteran Poster

on the submit, do a query on the database before trying to do the insert

display the message and make the user reenter the field

then do the same thing all over again

dickersonka 104 Veteran Poster

take a look at using a repeater control

dickersonka 104 Veteran Poster

i don't think that user has permissions on it still

grant all on airfapt_airfa.* to
     "airfapt_clusher"@"localhost" identified
    by "password";

substitute password with your password

dickersonka 104 Veteran Poster

not sure what you mean by how many bits to take in, you can always make the byte buffer any size you want

the method above converted the int 256 into a byte buffer, so you didn't need to use Byte.parse with a fixed size of 1 for the byte buffer

dickersonka 104 Veteran Poster

Use an ArrayList, so your list can automatically grow as you need it to.

dickersonka 104 Veteran Poster

to find the first in mssql use a order by with with select top 1

dickersonka 104 Veteran Poster

Typically in a web application, you would do this 10 times. It is possible to make 1 call, just depends what way you go about it.

What method are you thinking of storing all 10 at once, as far as how are you going to keep track of your 10 before you do the insert?

dickersonka 104 Veteran Poster

You can use this method, might want to change your previous method before too.

That method takes both strings and doubles

byte[] buffer_2_send = BitConverter.GetBytes(256);
dickersonka 104 Veteran Poster

So what problem are you getting now?

dickersonka 104 Veteran Poster

add an extra column to the select

SELECT completed, completed IS NULL AS isnull
from table
order by isnull desc, completed desc
dickersonka 104 Veteran Poster

Look at the foreach loop if you want insert multiple records at the same time

http://us2.php.net/foreach

If you need a date, just use getdate() for the current date, not sure what you are meaning

dickersonka 104 Veteran Poster

The problem is your "public" user most likely does not have permissions to call the insert stored procedures.

A lot of times, you may have a separate user for searching or selecting data, than inserting data.

dickersonka 104 Veteran Poster

If they are only supporting index.htm, they might not be supporting asp.net pages. Normally, you can set through cpanel or whatever you have, a startup page or set the order on default.aspx, index.htc, etc..


But if they do, then create an index.htm page to redirect to your home.aspx page.

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/home.aspx">
dickersonka 104 Veteran Poster

Maybe the thing he is worried about is that peraltu.edu is a registered domain name tied to an ip address.

For peralta.edu to be changed to a separate ip, you need to update it with the registrar. You can't flip a switch to get it to work also, the domain would need time to propagate before the ip changes would go into effect.

dickersonka 104 Veteran Poster

Yes, I thought you made a custom wrapper around it that only accepted a char.

Anyways here's a link
http://forums.msdn.microsoft.com/en-US/netfxbcl/thread/ebf6b7f4-123c-4de0-b331-2ea74769c94d/

Duki commented: Good link. +7
dickersonka 104 Veteran Poster

i use javascript for client side validation, not for functionality

lets say for a field that will be submitted needs to be a minimum of 8 characters, they type 4, and i can use javascript to warn them, but also validate server side that the input is 8 chars

this will ensure that your data is still valid, but adds an extra element just for look and feel on client side

with javascript enabled or disabled, this will work, just whether the client side gets a message before postback

yes i would repost the data back to itself, if its a button for submitting, read back the data, then redirect to final cart page with your updated data, otherwise stay on this page

dickersonka 104 Veteran Poster

You can just type it in using management studio, if you're in 2005.

SQL Server just offers a lot more features, much better stability, much better performance, and much better growth and scalability.

Don't be overwhelmed by all this, definitely a much better way to go.

dickersonka 104 Veteran Poster

Would you be able to convert the double to a string, then loop through the string and pass that on to the com?

//Might want to use a format provider here
string s = A.ToString();
foreach(char c in s)
{
comBobbySue.Write(c);
}
dickersonka 104 Veteran Poster

If they have javascript disabled, you'll never be able to update the quantites.

Think of adding an item, the same as changing quantities, overall it is a change.

You could repost the quantities and reflect them that way along with any new additional items.

dickersonka 104 Veteran Poster

Good catch lizr, forgot I was in c# rather than asp.net forum.

dickersonka 104 Veteran Poster

Might want to use ajax with a pop up date time picker and a read only textbox. This way, you can be sure to have a consistent display and parsing of the value.

dickersonka 104 Veteran Poster

You are just missing the additions of the strings here, in all your numbered lines do this

System.out.println("1." +first.getTitle()     [B]+[/B]     "........." +first.getPages());
dickersonka 104 Veteran Poster

CSS is only in asp.net, well web-based, but you know what i mean

If you want the same look and feel for everything, use inheritance for all your custom controls and use those in your application

If you are really into using css, here's a pseudo-css for winforms
http://www.codeproject.com/KB/miscctrl/StylesSheetManager.aspx

dickersonka 104 Veteran Poster

Keep an arraylist or some other sort of list of columns.

ArrayList columns = new ArrayList();
columns.Add("column1");

int columnCount = columns.Count;
dickersonka 104 Veteran Poster

Do some research on impersonation

dickersonka 104 Veteran Poster

You iis application will run with the security account associated with its app pool.
By default this is the asp.net service account, which def wouldn't work. Change the app pool to the appropriate user for thise site.

dickersonka 104 Veteran Poster

Lol virtual hug.

I normally use a developer's or server version of sql server, and not the express version.

I didn't realize it was a little different to set up sql authentication, that link should do the trick though.

You might want to look at getting the developer's version of sql server to save you many headaches like that, and its only $50 from microsoft.

http://www.microsoft.com/products/info/product.aspx?view=22&pcid=f544888c-2638-48ed-9f0f-d814e8b93ca0&crumb=catpage&catid=cd1daedd-9465-4aef-a7bf-8f5cf09a4dc0#HowToBuy

dickersonka 104 Veteran Poster

The actual database server has properties of allowing sql authentication and windows authentication which you were using.

Are you able to open Sql Server Management Studio?
If you don't have it, here is the link
http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&DisplayLang=en

You right click on the database and select properties from there then security.

The concept is, you are authenticating inside sql server only and you don't need to be a windows user to gain access. That is why there needs to be a user if not present in the database. But first you need to set the database to allow this type of authentication.

Here is also a link on how to enable sql authentication with sql express if the option isn't there in management studio.
http://sqlservernotes.blogspot.com/2007/06/enabling-sql-authentication-in.html

dickersonka 104 Veteran Poster

In .net 1.1 you can use the configuration namespace

System.Configuration.AppSettings

but as stated, in .net 2.0 this is deprecated

dickersonka 104 Veteran Poster

Very good.

That is the general concept of object oriented programming. Although, everything works together, they are still separate entities that are used to communicate with each other, and only do THEIR specific task.

dickersonka 104 Veteran Poster

Reporting services is much better than crystal.

Not sure if you are meaning asp page, as manually generating a report. There is probably a little more overhead with reporting services, but much more user friendly than crystal in my opinion.

dickersonka 104 Veteran Poster

Is that User.mainuser or User mainuser?

Create the user as a private variable inside of the form.

dickersonka 104 Veteran Poster

Here is one on Microsoft, a little technicalhttp://msdn.microsoft.com/en-us/library/aa645739(VS.71).aspx


Here is a little less technical and probably easier to follow
http://www.csharphelp.com/archives/archive253.html

Once you read them,
create the event in the server class, such OnServerStarted

in the notify class, create a server private variable and subscribe to each event

then on each event that is received, you can update your text as the event is received

dickersonka 104 Veteran Poster

If you're not into the singleton thing, you need to think of the separation between the display and server.

Look at using events,
example when server is started, you catch the event in the notify icon and update the display properly, without having the server ever know about what is displaying in the ui portion.

dickersonka 104 Veteran Poster

Can you post the table schema

dickersonka 104 Veteran Poster

From the example you wrote, there isn't an order by home

Can you post an example that shows what you want?

dickersonka 104 Veteran Poster

If you pass server to it, any other class that uses this notify icon will require to instantiate it with server, when possibly they might not have anything to do with server.

dickersonka 104 Veteran Poster
select date, count(date) from blabla
group by date
dickersonka 104 Veteran Poster

ahhh sorry about that, see it now on the inner join

glad to see its fixed

dickersonka 104 Veteran Poster

The server doesn't know about the icon, because its part of a separate class

I forgot to add the private constructor to the server class, plus a few things to do

try this, add this to the server class

private Server()
{
}
private string _status;
public string Status
{
get
{
return _status;
}
}

public void Stop()
{
_status = "Stopped";
}


//in your last piece of code
icon.text = Server.instance.Status;
//might need to be this
icon.icn.text = Server.instance.Status;
dickersonka 104 Veteran Poster

user_id isn't a string is it?
if not, it doesn't need the ticks, can you try running it without them?

can you try to run the same query in query browser if you have it?

dickersonka 104 Veteran Poster

i meant store the query in a variable, then output it, just to make sure all the semicolons and commas are out there, just as a degub step

i think something isn't getting set properly when issuing the query and just want to see it output