Fungus1487 55 Posting Pro in Training

use javascript if you are calling another browser window as you cannot pass data to another browser window. The server cannot see browser windows and therefore cannot distinguish where to send any information this way. javascript is your only option if this is what you want to achieve.

Fungus1487 55 Posting Pro in Training

http://aspalliance.com/articleViewer.aspx?aId=144&pId=

theres a good website with alot of basic tutorials on. just do the ones you find interesting and youll pick up the basics in no time.

the msdn website helps too

Fungus1487 55 Posting Pro in Training

are you using the grid mode or flow layout.

personally always use the non grid method as absolute positioning is bad!

Fungus1487 55 Posting Pro in Training

no errors are thrown ? can you post some code ?

Fungus1487 55 Posting Pro in Training

? sorry can you rephrase that as i have no idea what you mean. if you know insertion and connection why cant you do it ?

Fungus1487 55 Posting Pro in Training
$this->

is reffering to the current class instance.
it allows you to differentiate between objects and can help speed up compile time as the compiler knows that $this-> is referencing an object in the document

e.g.

var $num1;

function set_num($num1)
    {
        $this->num1= $num1;
    }

not only does it help the compiler but it helps visually as you can see where its exactly pointing to.

Fungus1487 55 Posting Pro in Training

? what is the project or do you want project ideas ?

Fungus1487 55 Posting Pro in Training

im pretty sure this is because the user control wont have focus as it is simply a control whereas the MAIN FORM will have focus. Simplest way i can think of doing this is to put your methods to listen for the keypresses in your main form. Make your methods PUBLIC in your user control and on keypress in your main form reference the method i.e.

Private Sub MAINFORM_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
    USERCONTROL.whatyouwantmetodo()
End Sub
Fungus1487 55 Posting Pro in Training

oh yes. final note never use ASP.NET treeview or any other type. build your own with javascript. it took longer but load time increased by no word of a lie 20 fold. The server just couldnt handle such a large tree in a decent amount of time.

Fungus1487 55 Posting Pro in Training

hey, thanks for your help. After undertaking the task and in the end testing both solutions for performance. In all circumstances of EXCESSIVE numbers of records or data i suggest using frames. the increase in speed was at leat 6 - 8 times faster. Taking 20 odd seconds without using frames for me was not an option. I now have the app down to roughly 3 sec startup time with no lag during use while its counterpart was to say the least abismal. This is pushing the barrel as this is the largest number of records ive ever seen anyone use in the software we create, so knowing that it can handle this task is a load off my mind. thanks for the help

Fungus1487 55 Posting Pro in Training

cheers for that, just what i needed

Fungus1487 55 Posting Pro in Training

i understand that this can be done the problem is i cant find any good tutorials or sample code and i dont really know where to start. Could anybody help please ? looking to mail merge with a ms word doc 97 - 2003 and my database

Fungus1487 55 Posting Pro in Training

i am a web designer. i have been asked to create a web app for use on a company intranet. the problem is i have a treeview on my page which allows the user to pick records they wish to view. all the records have sub records and sub-sub-records etc. the company has so much info that the first level is equating to 3600 nodes already. this totals at a massive 2.6mb file size including the page info. As i understand everytime i post back etc the browser has to re-draw the page. i am not doin anything stupid like recalculating the tree on postback etc but there is a huge amount of lag while i wait for the information to be rendered. Now would using a frameset with two frames left/right be of use.

i.e. left = the tree
right = records data

as i understand this would mean that the tree isnt refreshed just my right frame can someone clarify that this is the method i am looking to implenment to increase performance ?

Fungus1487 55 Posting Pro in Training

i am a web designer. i have been asked to create a web app for use on a company intranet. the problem is i have a treeview (those that dont know asp a simple menu structure) on my page which allows the user to pick records they wish to view. all the records have sub records and sub-sub-records etc. the company has so much info that the first level is equating to 3600 nodes already. this totals at a massive 2.6mb file size including the page info. As i understand everytime i post back etc the browser has to re-draw the page. i am not doin anything stupid like recalculating the tree etc but there is a huge amount of lag while i wait for the information to be rendered. Now would using a frameset with two frames left/right be of use.

i.e. left = the tree
right = records data

as i understand this would mean that the tree isnt refreshed just my right frame can someone clarify that this is the method i am looking to implenment to increase performance ?

Fungus1487 55 Posting Pro in Training

im really not sure then. maybe take a look on their website forum and see if anybody else had this problem ?

Fungus1487 55 Posting Pro in Training

just take a look at this fellas source code and use it for top-left-righ+bottom ?

Fungus1487 55 Posting Pro in Training

sorry what i mean is how do i open up a port on the server to allow me to access the email. ive only just started to realise what has to be done from googling. i believe i have to setup a port forward on my router but i have no idea how to setup my server to notice this ?

Fungus1487 55 Posting Pro in Training

are you sure nothing is left in the registry ? i cant see hopw the computer thinks it is installed if there is no record ?

Fungus1487 55 Posting Pro in Training

have you checked the registry? there may be some references left that still think it is installed on your comp

start > run > regedit

then use view >> find and enter 'pc-cillin' and see if you get any matches

Fungus1487 55 Posting Pro in Training

i dont think that png alpha values are suported in 5.01 i saw somebody make a hack around it. it was very nasty tho

Fungus1487 55 Posting Pro in Training

does anyone knwo of any good online services that will allow me to view my email stored on my exchange server at a static IP address away from my network with an internet connection ?

Fungus1487 55 Posting Pro in Training

just like you have your make table array method in a seperate method which is then called to get the current array you can do the same with creating the table

in your code you will have the INIT() statement and inside this method will be your table being created i.e.

runDisplay.setModel(
new javax.swing.table.DefaultTableModel(
            makeTableArray(),
            new String [] {
                "Date", "Distance (Miles)", "Run Time (hh:mm:ss)", "Run Time (Minutes)", "Avg. Time (Min/Mile)", "Route", "Conditions", "Notes"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });

all you have to do is make another method e.g.

private void CreateMyTable(){ .... table code above ....}

and remove it from the INIT method and replace it with CreateMyTable()

therefore it will still create your table but whenever you need to refresh it you can call 'CreateMyTable()' ? understand? if not let me know which bits u dont quite understand. Hope it helps

Fungus1487 55 Posting Pro in Training

it looks fine to me ? ive just looked at it in ie 7 wat ver of ie u used ?

Fungus1487 55 Posting Pro in Training

there are some free components available that allow you to view excel documents in asp.net i cant think for the love of god where i saw them tho. best to GOOGLE it. Another alternative is to use something like a datagrid and create your own excel like application. this way you would have full control over everthing as youve hand made it.

Fungus1487 55 Posting Pro in Training

im guessing your db is set up correctly with primary keys etc. if so just pass your primary key to your form if you are updating the record else if not. create a recordset add your user entered details to it and add this to the database as follows.

On Error GoTo Exit_RaiseError
        Dim cnn As New ADODB.Connection
        Dim rst As New ADODB.Recordset
        Dim sql As String
        Dim nid As Long

        cnn = New ADODB.Connection
        cnn.ConnectionString = "your connection string"
        cnn.Open()
        sql = "SELECT * FROM tablename WHERE tablekey = " & nid
        With rst
            rst.Open(sql, cnn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)
            .AddNew() ' add new record
                .Fields("fieldname").Value = "add some stuff here" ' edit the field with fieldname 'fieldname'
            .Update() 'update the db
        End With

        rst.Close()
        rst = Nothing
        cnn.Close()
        cnn = Nothing

     Exit_RaiseError:
        ' close the sub as an error has occurred
        Exit Sub

this code is used in a vb project for asp.net i know that you will not need to use ADODB reference as you are doing it locally but the rest should work fine. just google search for your connection string

Fungus1487 55 Posting Pro in Training

create a background that can be re-used across the screen i.e. 100px by 100px block. as nobody wants to wait around for your image to load. also images condense them to 72dpi as you will not require a 300dpi print quality image to cover your background. other than that the design is down to whoever designs it.

Fungus1487 55 Posting Pro in Training

im pretty certain you will have to recall the 'table.setmodel' again. As it is not dynamically updating from the array it just sets the table to the data given at the tume the table is created. probably best to create another method that creates your table and sets its defaults etc then call this when you need to update. hope that helps

Fungus1487 55 Posting Pro in Training

its against the licence to use them after the 30 day trial period

that still doesnt stop 99% of people using it. as they realise they can get away with it. until a surefire way of allowing people to try a product for a period of time becomes available it will always be the same. and then people will still crack this software if it is useful. endless circle

Fungus1487 55 Posting Pro in Training

Be careful you dont write your vb6 code on the intranet as you will see big performance losses. You not only have to port it to a web based application but also to .net and asp.net (along with ajax, javascript etc.) all of which will help performance if you use best practices.

File size wont really be too much of an issue when it comes to an intranet application - data will be the bigger problem. Your choice of data objects (business objects, ado.net datasets, the new linq objects (well worth using if you have .net3) xml etc) will all play a vital role.

Without going into too much detail you can look at image sizes (give thumbnails or small images and a way to look at a large image if they want to). Image resolution is a biggie too. A screen is no better than 90dpi so dont have hi res images that are at 300 dpi for printing. Create different sizes of the same image for each place you use them. This will give the smaller file size then.

Data input validation should be done on the client, and then checked on the server, the rest of the logic should all be on the server.

Use Ajax where you can as this will give a more desktop look to your application and also allow you to do a lot more server round trips without page refreshes.

Use pages in grids - dont get all …

Fungus1487 55 Posting Pro in Training

i hate free trials - i mean, how many of us have used winzip/winrar past the 30 days eh?

thats what makes them great ? [no fee ?]

Fungus1487 55 Posting Pro in Training

i understand that this will work when you have an element on the page that contains the IFRAME but what im looking to achieve is to remove the div containing the iframe from within the iframe itself so where you have specified...

<iframe id="id" name="name" src="d.html"></iframe>

'd.html' would contain the button to close the div which is holding the iframe it is currently in. hah ive just even confused myself. maybe this will help.

-- MAINPAGE.html
---- DIV
------ IFRAME
-------- d.html
---------- onclick delete DIV ^^^

thanks for the help

Fungus1487 55 Posting Pro in Training

hello, im guessing this question is quite trivial. i have a page setup as follows.

MAIN PAGE

<html>
  <head>
  </head>
  <body>
    <div id='innerlogin'><iframe src='INNER PAGE'></iframe></div>
  </body>
</html>

INNER PAGE

<html>
  <head>
    <script type="text/javascript">
      function RemoveDiv(){
      d = parent.document.body;
      d_nested = parent.document.getElementById("innerlogin");
      throwaway = d.removeChild(d_nested);
      }
    </script>
   </head>
   <body>
     ........
   </body>
</html>

now i am using asp.net and after all has been said and done with the INNER PAGE i would like to fire off the javascript 'RemoveDiv' to get rid of the div and the inner page. i realise this could be done using asp.net and no javascript at all. but my page is already heavily consistent of controls and i wish to remove the strain of the server as much as possible and allow the client to take care of presentation.

the problem is this does not work as you may have guessed so can anybody spot what ive done wrong ? or am i doing it completely wrong

Fungus1487 55 Posting Pro in Training

yes it can

Fungus1487 55 Posting Pro in Training

im converting a vb6 desktop application to run on an intranet obviously there are some things which will never work but the majority is doable but im quite worried about filesizes. i know the intranet will have faster connectivity than your average web page they are mostly running 100mbps lans and some wireless 54mbps but i just took a look at my average page filesize and it is already at roughly 149kb. There isnt too much more to add in terms of usage but after add in all my user validation, Images and your regular html markup i can see the filesize increasing does anybody know if this will be a problem.

Fungus1487 55 Posting Pro in Training

or use a session variable ?

Session("session_name") = DATA

then get it back wherever you wish by using

Session("session_name").value()

then free up memory and

Session.remove("session_name")

(SYNTAX VB.NET)

Fungus1487 55 Posting Pro in Training

easiest way is to store your data in a multidimensional array on the page load.

then when a user presses a button i.e. next record just increment the array value. the same idea is used for getting values from a database for every request.

you need some way of storing where you are at in the list of records that are returned from the db. And you wont want to loop through with a for loop everytime. if u change that for loop to add the data to an array then use the array youll find its alot easier

Fungus1487 55 Posting Pro in Training

two ways.

1) USE TABLES

2) add a margin to your content i.e.

<div style="margin-left:200px;">CONTENT HERE, CONTENT HERE</div>

hope that helps

Fungus1487 55 Posting Pro in Training

do you want the contents to move one click at a time or similiar to a scroll bar. if a scrollbar. why not use a <div style="overflow:scroll;"></div>

im guessing you could do an

<head>
  <script language='javascript'>
    function move(amount) {
      val margin = document.getElementById('content').style.marginTop();
      amount = parseFloat(margin) + amount;
      document.getElementById('content').style.marginTop= amount.toString() + 'px';
}
  </script>
</head>
<body>
  <p><a href="#" onclick="move(5)"><img src="up"></a>
  <a href="#" onclick="move(-5)"><img src="up"></a></p>

  <table>
    <tr>
      <td id="content"><p>blah blah</p></td>
    </tr>
  </table>
</body>

this is untested so i dunno but i rekon thats a basis of what you should do.

hope it helps

Fungus1487 55 Posting Pro in Training

this code is under next button click ?

have you checked what is stored in maxrws ?

what integer value does it contain ?

Fungus1487 55 Posting Pro in Training

i dont see what fields would change that would affect this structure. you would never change primary key or foreign keys throughout a db after it has been designed (unless it has been designed badly) anyway.

decision 2 is far more efficient

Fungus1487 55 Posting Pro in Training

yes but i cannot understand what you are asking? i belive you want these files decrypted ?
1. this is illegal, companies encrypt these files to stop theft

2. you will pay through the teeth to get it decrypted if you find somewhere that can do it 100%. ive heard of these but never tried anything. http://www.qinvent.com/cyrj/dezender/index-en.php

Fungus1487 55 Posting Pro in Training

wat ? [english]

Fungus1487 55 Posting Pro in Training

depends if its an exhisting product (ie similiar are on the market) or not

if there are then try to build up a client base. offer trials of your software to businesses and companies and get FEEDBACK.

if there are no exhisting products (are you sure) well. get some interviews with large software wholesalers, they do this type of thing all the time and you may just sway them to purchase the rights if its good enough. (then this goes back to testing) 90% of a software project nowadays should be testing and its continous. so long as humans exhist there will always be errors. good luck.

Fungus1487 55 Posting Pro in Training

an application that suggests final year projects maybe ?

really pick something youll enjoy (you will do a much better job)

arjunsasidharan commented: :) +3
codeorder commented: could not think of a better final year project :) +1
Fungus1487 55 Posting Pro in Training

Normally I'd recommend completely normalizing your tables. It would be overhead (as you stated) when you start out and may seem inefficient. However, note that maybe some day your need to extend your database, or someone else needs to do your job, then a normalized table is the easiest to read and adjust. You can always trace back what's what. This also helps you if haven't looked at it in a while and need to do some work on it.

i create software for councils and for general testing we have a database with over 1100 tables. i believe that you should always normalise as it will reduce any headaches you have later, but if you dont have the time or you simply havent been paid enough to do the job :D then just slap one up trigger happy style. i have seen performance increase 3x when we did an update on another companies software (this included normalising multiple databases and tables into one)

Fungus1487 55 Posting Pro in Training

first of all you dont have to hard code all your <OPTION>'s into your page. it would be much better if you create them dynamically then you would not need to update the years every year.

i.e.

<select name="year">
<?
$count = 0;
while ($count < [num of years you want to go back]) {
$year = date("Y") - $count;
print("<option value='" . $year . "'>" . $year . "</option>");

$count ++;
}
?>
</select>

then processing this is quite easy. just use a POST or GET method to post it to the 'insert10.php' page then convert the values using this

<?
$day = $_POST['day']; //if using GET use $_GET['day'];
$month = $_POST['month'];
$year = $_POST['year'];

$date = mktime(0, 0, 0, $month, $day, $year);
// using the format mktime(hour, minute, second, month, day, year)

now $date contains your date and you may do with it as u wish hope this helps.

Fungus1487 55 Posting Pro in Training

you obviously have magical powers of which i do not.

Fungus1487 55 Posting Pro in Training

Maybe pasting your code here would help us provide some concrete suggestions.

> i dont believe javascript holds a method to directly change a css background
Something like this:

<html>
<head>
    <script>
    function changeOver(id)
    {
        var elem = document.getElementById(id);
        elem.style.backgroundColor = '#aabbcc';
        elem.style.cursor = 'pointer';
        elem.style.cursor = 'hand';
    }
    function changeOut(id)
    {
        document.getElementById(id).style.backgroundColor = '#ffffff';
    }
    </script>
</head>
<body>
    <span id="myP" onmouseout="changeOut(this.id);" onmouseover="changeOver(this.id);">Place your mouse over this text</span>
</body>
</html>

sorry what i meant was i dont believe you can change a background image via javascript. my bad

Fungus1487 55 Posting Pro in Training

i dont believe javascript holds a method to directly change a css background. but if you create two css classes for your menus you can use javascript to change the class. just google search for altering a css class from javascript im sure theres a few examples. An easier way tho perhaps could be a purely css menu ? try googling that aswell as they can be used by all clients unlike javascript. but this depends if you want a drop down with inner dropdown groups. But yer try having a look and see waht suits you.

Fungus1487 55 Posting Pro in Training

no idea why my first comment is there ?