f1 fan 16 Posting Whiz in Training

firstly i would use the membership provider given with .net framework2 and VS2005.
Then you can create the tables and everything needed in the database using the aspnet_regsql program that comes with the .net framework (it is in the framework folder on your pc just do a search).
Then you can use webconfig to put your provider information and use the login tools etc with little or no code on your behalf.

f1 fan 16 Posting Whiz in Training
string culture = ddl_English.SelectedValue.ToString();

any .net control on a form is accessed directly in code behind so you can get to any of your control's properties.

f1 fan 16 Posting Whiz in Training

if you use a javascript timer and keep a reference to it in javascript you can run client side code on your controls to reset the timer if they make a keypress.

var timer = setTimeout(redirectfunction,600000);
redirectfunction
{
.....
}
function resetTimer()
{
clearTimer(timer);
 setTimeout(redirectfunction,600000);
}

<html code>
....
<input type="text" onblur="resetTimer()">...etc.
f1 fan 16 Posting Whiz in Training

to get the grid view to display the data then just bind the datasource you created to the grid (you can do it in the form designer in VS2005
To protect it so only logged in people can see it, either protect the whole page (use webconfig to protect different areas of your site) or use a login view control and place the grid in the logged in view.

f1 fan 16 Posting Whiz in Training

if it is in a table you have to have
td .tablecellhyperlinks in your css file.

f1 fan 16 Posting Whiz in Training

the easiest way is to put a response.redirect in the header of the page with the delay set to the same timeout (10 minutes in your case). Everytime the page loads after 10 minutes it will redirect the user to the page.
If the user submits something and refreshes the page it will start again as the page reloads (be careful if using ajax though!).
The other way is to use a timer to do the same thing.
The third and the best but also the more complex way is to use ajax and server callbacks.

f1 fan 16 Posting Whiz in Training

either flash or an animated gif if it is nice and simple. an animated gif is a series of "still" gifs put together one after the other and played fast (just as a normal movie is created). No extra tools are needed by the end user then - just a normal img tag will display it.

f1 fan 16 Posting Whiz in Training

for much nicer rollovers and other more powerful tools use AJAX. Get the microsoft ajax toolkits and most of it is done for you.

f1 fan 16 Posting Whiz in Training

the problem is because you deleted the form in your html code. You have no form therefore you cant postback to the server.
As you have no form the postback script you hightlighted couldnt find the form so couldnt get the viewstate.
Why did you delete it?
You have to have a form to have asp pages.

f1 fan 16 Posting Whiz in Training

use the formview control and bind it to a datasource control which is configured to access your database.
If you use VS2005 they are there and very simple to setup (follow the wizards). Drop a form view onto your page, where it says datasource use the drop down to make a new one and follow the wizard to configure the datasource to do selects, updates, inserts and deletes to your database.

When it is all done and working properly you will be able to see the code it created and understand what it did and then you can roll your own at any time.

The datasource is a powerful tool, especially the object datasource if you are using multi tier applications

f1 fan 16 Posting Whiz in Training

why not use the system.net.mail namespace if it is just for sending mail? I use it all the time and is very powerful.

f1 fan 16 Posting Whiz in Training

css css and more css!
your asp.net web sites should be split into 4 areas - the aspx page with just html (just what needs to be in the browser), the aspx.vb or cs code behind file with all the server processing, a folder full of css files (for presntation) and a folder full of script files (for javascript) if you use them.
Dont mix function with form (i.e dont put layout, colors and looks in the aspx/html page). This not only makes it easier to read and manage when you are developing but also easy to change things later.
As long as you organize everything correctly (personally i use divs) then you can place it where you like. And you can do some crazy things. Have a look at the home page on a site i built recently for a customer http://www.inspirationsbuyer.com which is all done using divs and css (with the odd javascript thrown in). Hardly anything is in a horizontal direction and took very little time to create.
CSS is VERY powerful when you know all the things you have to your advantage.
Also have a look at AJAX as this is a powerful tool and is free (the microsoft version is) and make sure you get the AJAX extensions and control toolkit ctp's. We are now building websites with the same rich ui as windows forms because of the power ajax gives us.
Both …

blacklocist commented: Great +1
f1 fan 16 Posting Whiz in Training

if the texbox was bound to the database and there is no value then num1 num2 etc. is empty or null, neither of which will parse to a double to be able to be added. You need to do a test to see if they are null or empty and make thier value 0.
The easiest way is to set the value to 0 when you pull it from the database (either set the value to 0 or put 0 in its place in the stored proc). Or you can do it just before you do your sum.

f1 fan 16 Posting Whiz in Training

Just run a select query in the master database where the object is a database. anything in SQL Server has to be registered in the master database. When you create a table, stored proc, user etc. it is stored in the master database. Of course you need the correct permission to access the master database, but it is all there.

f1 fan 16 Posting Whiz in Training

Ok. Because you reinstalled XP it is most likely the ASP.NET account or similar got messed up too.
The easiest (but time consuming) was to fix it will be to do a repair on Visual Studio (start the setup and choose the repair option - i think it is reinstall the same components or something).
That should reregister the ASP.NET account (Which i think is the problem) run IIS, register the isapi dll and a few other things to get everything back in sync.

You could try them all one at a time, but (i dont mean to sound negative) you are not familiar with the inner workings of windows and networks, accounts, IIS, com dlls etc and would be too risky to talk you through it. A reinstall will fix it.

f1 fan 16 Posting Whiz in Training

Did you enable IIS through the server management tool?
If you open IIS and expand the server, check that under web server extensions ASP.NET 1.1 is allowed.
Then on the properties for the virtual directory, make sure that on the Home Page tab the execute permissions are for Scripts only and the application pool is set to defaultapppool (you can change them later but lets get it going first)
My memory isnt too good with .net 1.1 but i think there is also a tab there saying asp.net (though it may have come along with .net 2) make sure you have your app set to use .net 1.1 on there
If these dont work then you should get some errors from the web browser and also should see some errors in the application event log and possibly the system event log too.

Let me know how you get on

f1 fan 16 Posting Whiz in Training

well c# can work with 1.1 if you built it with 1.1. something built on 1.1 will run on .net 1.1 or 2.0 but something built with .net2 will only work on 2.0 runtime

f1 fan 16 Posting Whiz in Training

no. every program needs its framework, whether it is java or anything else.
Why? Problems?

f1 fan 16 Posting Whiz in Training

Ok :)
You may have to register asp.net with IIS again as you have done a resinstall. you want reg_iis.exe in the .netframework folder.(sorry i cant remember where exactly it is located) this should get it working

f1 fan 16 Posting Whiz in Training

when do you call CalcColumn()?
You havent quite grasped the concept which is where you are going wrong but thats why we are here :)
Are you using a strong typed dataset to get your data? You dont want to add the unbound column to the grid in a grid editor (this isnt an unbound grid column its an unbound datacolumn - there is a big difference in the two).

Wherever you get your dataset from... before you pass it to the grid to bind it, thats where you need to put those lines of code.

It will work, its just you arent calling it at the correct time (if at all).

So you need to
1. Get your dataset from the database
2. Add the unbound column with the expression to the datatable
3. Bind it to the grid.

If you have a strong typed dataset then you can add the column there and even set the expression there. IF not then you have to use those few lines of code.

Try and grasp this concept (unfortunately they are similar names so everyone gets confused in the beginning). You have a database which has tables and columns. You have an ado.net dataset which has tables and columns (these can map one to one but do not have to! thats very important.. it was done deliberately to give us more power... old ado before ado.net would …

f1 fan 16 Posting Whiz in Training

database1Dataset.Columns.Add(Column1);
that line is incorrect
Cannot add a column to a dataset... need database1dataset.Tables["sales"].Columns.Add(Column1); if sales was the table name

f1 fan 16 Posting Whiz in Training

oh wow you have a lot there. something went majorly wrong somewhere.

You say that it worked this morning but not recently?

Did you install then uninstall googletalk this morning then it stopped working?

My advice it to use system restore to go back to either this morning when it worked or to a prior known good time.

You wont lose your project

f1 fan 16 Posting Whiz in Training

Go to your administrative tools and then event viewer

f1 fan 16 Posting Whiz in Training

Can you check your application event log and your system event log to see if there are messages in there about the problem.

Hopefully they will shed some light

f1 fan 16 Posting Whiz in Training

So have you checked to see if WWW publishing service is running on your pc? Is it somehow set to manual and stopped? Can you restart it? Then check the error logs and tell us what it says.

Something has stopped IIS so need to find out what it is. Then we can fix it

f1 fan 16 Posting Whiz in Training

for some reason the posted message didnt show up.
It is probably because he doesnt have the framework on his pc. Just go to MS Downloads and download dotnetfx.exe for .net 2 (that way he can run 1.1 and 2.0 apps with no problem). Make sure it is the dotnetfx.exe which it the runtime not the sdk or he will be downloading all day!

f1 fan 16 Posting Whiz in Training

not paying attention again!!! lol
hklp = hklp.OpenSubKey("HKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users");

is wrong. hklp already equals HKEY_CURRENT_USER so you are asking to find a subkey the same name... try
hklp = hklp.OpenSubKey("Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users");

f1 fan 16 Posting Whiz in Training

lol dont worry.. will teach us both to pay more attention.
Like i said before... take a break and come back to it.. sometimes you cant see the wood for the trees or just keep following the wrong path over and over.

It should work now. The GetValueNames() should return a string array with all the names in the key (not the data you highlighted in pink but the corresponding Name column) then we went through each of those in turn and called the GetValue passing in the name one at a time... this will then return your highlighted data one at a time.
Follow it?

f1 fan 16 Posting Whiz in Training

c# is case sensitive... i thought you wouldnt just blindly copy n paste.
valnames.Length

f1 fan 16 Posting Whiz in Training

sorry my fault not paying attention..
valnames.length

f1 fan 16 Posting Whiz in Training

ok that helps a lot :)

you need this bit of code

RegistryKey hklp = Registry.CurrentUser;
            hklp = hklp.OpenSubKey("HKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users");
try
{
string[] valnames = hklp.GetValueNames();
for (int i = 0; i < valnames.count; i++)
     {
	Object obc = hklp.GetValue(valnames[i]);
	sw.WriteLine("Users: {0} " + obc.ToString());
     }
}
catch (Exception exc)
{
	sw.WriteLine(exc.Message);
}

See if that helps

f1 fan 16 Posting Whiz in Training

what version of visual studio, windows and IIS are you running at home and at college?

f1 fan 16 Posting Whiz in Training

use the System.Random class in C# its 2 lines of code

f1 fan 16 Posting Whiz in Training

where are you typing the url? on the win2k3 machine?
also have you checked that it is running as an asp.net app? Does it have an application pool on the IIS page? have you allowed asp.net to run under iis on the win2k3 machine?
Are there any other asp.net apps running on this server?
If you dont understand how to setup a Win2k3 machine for IIS and ASP.net let me know and i will give you the steps to take. It is quite simple :)

f1 fan 16 Posting Whiz in Training

what messagebox? This is asp.net ... web pages.. what messagebox? message box is in windows forms projects not web pages.

Do you want to pop up a message to a user? you can use the javascript alert. Are you sure you understand the concept of asp.net? If not say so and we will try and explain it a bit

f1 fan 16 Posting Whiz in Training

you wont have lost your project it just cant open it as there doesnt seem to be a webserver on your pc. I have googletalk and it isnt interfering.

1. What version of visual studio are you using? 2005 or 2003?
2. What version of windows are you running?
3. Do you have IIS installed on your pc? (It isnt installed by default)
4. Has the project ever opened on this pc before and if so how long ago

f1 fan 16 Posting Whiz in Training

Lets make it simple and to the point.
1. This is C# not C++ forum
2. Read the forum rules.. we dont do your homework for you
3. If you want help then post code using the code tags, and ask specific questions giving specific error messages at specific points if you have them, also saying what you have tried and we will help gladly

f1 fan 16 Posting Whiz in Training

if you can see it in reg edit then it can be done in C#.
The trouble is i am working blind here as cannot see your registry etc and dont have AIM myself.
Can you tell me what the value is in your registry that you are trying to display? I dont need the names of your contacts, just whether it is a dword and a sample of the content (eg comma delimited string, or semi colon or what. Then i can help more

f1 fan 16 Posting Whiz in Training

but you went and changed the key now.
it used to be
Object obc = hklp.GetValue("Users");
and now you just posted
Object obc = hklp.GetValue("Identifier");

be careful when you code you make mistakes if not paying attention. If it is frustrating then walk away for 30 minutes - you will come back refreshed.

Anyway, put the proper key in from your registry and it will work

f1 fan 16 Posting Whiz in Training

Thats because you made a mistake. In C# a \ is an escape sequence (used for special characters such as carriage return \r or new line \n). So a \ in a string is also a special character and so needs the escape sequence ie \\. As you see in your other reg strings (you left it out in this one).
The other way round it if you are not using special characters in your string is to use the @ symbol in front of the quotes which tells c# to take the string literally (beware if you use this then \r will appear as \r not a carriage return.

So your choices are hklp = hklp.OpenSubKey(@"HKEY_CURRENT_USER\Software\America Online\AOL Instant Messenger (TM)\CurrentVersion\Users"); or hklp = hklp.OpenSubKey("HKEY_CURRENT_USER\\Software\\America Online\\AOL Instant Messenger (TM)\\CurrentVersion\\Users"); both will work :)

hope it helps

f1 fan 16 Posting Whiz in Training

maybe consider using a property for each of these. It would appear that you will want something outside of your class to change the values so you dont want to make your fields public (or internal) as you have no control over the values in there.
To create a property you need a private field and a property for each as follows:

private string _name;
public string name
{
  get 
     {
       return _name;
      }
  set
    {
      //do some validation if you want
      _name = value;
      //do some other stuff if you need to based on the new value
    }
}

You have full control when someone changes the value now.
I use them alot as private properties for just in time instantiation (the field is populated the first time the property is used so it isnt taking up memory.
Also you can make it read only by not using the set part of the property (leave it out altogether)
You can also have different accessors so the get part can be public and the set part can be private or internal.

Hope it helps you

f1 fan 16 Posting Whiz in Training

What are you using to deploy the project? If you create a setup and deployment project you control the install directory there (though if you dont want the end user to be able to change then you have to do some changes to the setup UI too - though i always recommend you let a user choose).
If you want to fix the path for some reason - it rings warning bells. Why are you hardcoding paths? They should be relative to the application. If you need to hardcode to get to something then you should use isolated storage instead (for example if you are storing settings or some information that the user configures).
If it is to get to something in your app then you should use a relative path from your app directory (if you need to pass the full path to something you can get the app directory path at runtime).
Hope i have helped an not confused or made things worse

f1 fan 16 Posting Whiz in Training

you create an unbound column in the sales and use the Expression property whose value is quantity*price (assuming those are the two column names). Only create bound columns if you want data saved in the database or pulled from the database (you could have created the column in your query and pulled it into your grid but when a new row is added the total wouldnt automatically update - whereas it does with an expression).

f1 fan 16 Posting Whiz in Training

Whats the problem? you didnt say if there was an error.

What is the value in the registry? Is it a delimited text?

f1 fan 16 Posting Whiz in Training

One other point worth mentioning (I just saw your hosting info) is that playing music over the net (whether embedded or not - its the same) is heavy on bandwidth useage which you will be limited to a monthly amount. An average song in both MP3 and WMA is just over 3Mb. An average CD is about 50Mb. So for EVERY USER (not song but visitor to your site) that plays music is chewing up your bandwidth heavily - 50Mb instead of an average 50kb for a web page with a pic or two.

f1 fan 16 Posting Whiz in Training

Ah no, that is a totally different set of requirements. You asked to have files being able to be played and downloadable. The tutorial and embedding streaming is for online radio station type scenario. In this way you control the files played (its your playlist so they play in order you selected - so for the end user this is like listening to a radio station, and all they do is press play (or you can have it play on load). In the first scenario then it is more like a juke box where you give them a list and they can play one or more but need the player on their pc.
It all depends what you are trying to achieve?

f1 fan 16 Posting Whiz in Training

1. Rip a CD (if using win media player there is a rip button) either in MP3 or WMA
2. Upload the file to your website
3. Put a link to the file on your website

When the person clicks the link it should automatically play on their pc providing they have a player (which just about everyone does). If they want to download it then they just right click and save as.

f1 fan 16 Posting Whiz in Training

oh wow. now you are pushing my memory limits :)
I still think the problem is the acForm. It isnt declared anywhere.

I think you can put a break point in access 97 on the line of code for debugging?
either that or put a message box on the line before to show the value of acForm or one of its properties. I think it is null

f1 fan 16 Posting Whiz in Training

You really posted this in the wrong forum, but i am sure someone will move it for you.

DoCmd.Close acForm, Me.Name

My vb is rusty but i dont see acForm declared anywhere. What is it? Seems like its your problem.

What development tool are you using? Visual Studio? What version? Let me know and i can tell you how to debug. The second most important thing a developer HAS to know, is how to debug correctly. It saves hours of frustration and time, as no one can write a program bug free first time (unless it is a mickey mouse one that has no real value).

f1 fan 16 Posting Whiz in Training

cant you change the html and use css to put it where you want? or is it going to be a huge rewrite?
If it is so far ahead of the other two why not drop it to 1 and put your own ads or something in those other two spaces? I have dont that with some sites.. i replaced one google adsense on a page with a google adsense button which performed well. And some other space i sold to sponsors.