DangerDev 107 Posting Pro in Training

What exception it is throwing?
How do you know its not working?

DangerDev 107 Posting Pro in Training

Based on what information you want to add child nodes?
Can you explain more about why you want to do this, this will help us to provide better solution.

DangerDev 107 Posting Pro in Training

I dont think any one will give you complete code. You first try your self and then ask question, if you face any problem.

The solution adatapost has given in mentioned post, is a way to solve the problem, you can extend it.

The Python solution is also a hint for you, you can take the algorithm and solve it in C#.

DangerDev 107 Posting Pro in Training

Its ok hket89, our point is use the english whatever you know, don't make it like SMS language, even if you are not understandable it is OK, but don't use SMS like language.
Now, if you dont have question just mark this thread as solved, so that people will stop posting here.

DangerDev 107 Posting Pro in Training

Simple way will be to fill the data in to DataTable and simply set DataSource property as table:

DataTable table = new DataTable();
//fill the table with data
dataGridView1.DataSource = table;

for filling the table, you create column with name ones,tens,hundred etc.
Here you can get detail of how to create and fill data table.

DangerDev 107 Posting Pro in Training

Some suggestions:
==============
1. Use data grid for it.
2. First divide number.
3. Fill it in data grid.

DangerDev 107 Posting Pro in Training

Please use proper English, didn't you read above posts by yellowSnow?

Salem commented: It appears they haven't read anything yet +36
DangerDev 107 Posting Pro in Training

Please post your question.
Please use English which every one can understand.
What is vf?

DangerDev 107 Posting Pro in Training

I think you should start with a basic C book. You can not learn each and every language construct by communities.

DangerDev 107 Posting Pro in Training

@ adatapost thanks for mentioning my mistakes. :)

regarding StreamWriter from msdn: "StreamWriter defaults to using an instance of UTF8Encoding unless specified otherwise."
so i think it would be ok to use it.
Please do post comments, if any.

DangerDev 107 Posting Pro in Training

Try to avoid GOTO. Put main loop inside one more loop or try some other logic. Use of GOTO will create all the mess at last.

Ancient Dragon commented: Absolutely yes. +36
DangerDev 107 Posting Pro in Training

if you have to create a file then you should not use:

StreamWriter oFile = new StreamWriter(@"C:\Users\fjones\Documents\Visual Studio Projects\bin\Debug\output.txt");

instead use this:

String file_name=@"c:\ab.txt";
using( FileStream fs = new FileStream(file_name, FileMode.OpenOrCreate, FileAccess.Write))
{
 //do something with open file
}

this will create a file if it doesn't exists and open it for writing.

DangerDev 107 Posting Pro in Training

The link i have is given is good to start what else you need?

DangerDev 107 Posting Pro in Training
sknake commented: that sums it up! +6
DangerDev 107 Posting Pro in Training

please also post the HTML code as in above code you have lot of divs

DangerDev 107 Posting Pro in Training

Interoperability
Interoperability is a property referring to and the ability of diverse systems and organizations to work together (inter-operate).
-wikipedia

DangerDev 107 Posting Pro in Training

Hi
Do this:

if (e.KeyChar == (char)Keys.Enter)
            {
                //do something
            }

inside textBox1_KeyPress function

DangerDev 107 Posting Pro in Training

Hi,
I am giving algo to do the job:
1. Sort the table row by Item ID.
2. Take two array arrayItemId to store Item Id and arrayAmountSum to store sum of amount.
3. Now look throw the data base rows. and sum the amount of rows where item id is same. and store item id in arrayItemId and sum of amount at arrayAmountSum , at the same index.

PS: above i have given hint.

Another method is to get the job done at throw the data base queries it self. You can search for it in google.

DangerDev 107 Posting Pro in Training

Dividing means dividing the big (complex number) struct in to several other classes. Or I should say regrouping all your methods in to several classes.
I am sure you wont use all of the methods at once. You would be using group of method in one app and another group of method in another app.
Dividing them will help you to use less memory by loading object of small classes. I hope i made my point clear.

DangerDev 107 Posting Pro in Training

Hi,
Simply user XmlDocument and its method LoadXml().
You can find example code here.

DangerDev 107 Posting Pro in Training

What about creating a small complex number struct and dividing methods around it in different classes?

DangerDev 107 Posting Pro in Training

if you dont want to display more than 1 Form2
keep following code out side the foreach statement:

Form2 form2 = new Form2();
                            form2.Show();
DangerDev 107 Posting Pro in Training

do in this way:

...............
Object x;
x = s.Pop();
ArrayList al=x as ArrayList ;
if(al!=null)
{
 al.Add("Something");
}
...............
DangerDev 107 Posting Pro in Training

Hi,
Read example here. It will help you. You have to call dataReader4.Read() before reading it. If still problem persist please post code what you have done so far.

DangerDev 107 Posting Pro in Training

there is a problem in following line:
string FileList = Directory.GetFiles(DirPath).ToString();

it should be :
String[] FileList=..............

DangerDev 107 Posting Pro in Training

install framework 2.0, it will have backward compatibility, but vice verse is not going to work.

DangerDev 107 Posting Pro in Training

return true or false from WPChk() based on success or failure,
on the base of return value of WPChk() you decide whether you want to proceed further or not. ex:

if(WPChk())
{
//do this
}
else
{
//return;
}

DangerDev 107 Posting Pro in Training

thank you for your responses thus far

however, is there any chance some one can show an example what goes inside the BeginInvoke(here)??

Many Thanks

check this.

DangerDev 107 Posting Pro in Training

Create a method as RamyMahrous said then invoke it using any UI thread. You can do it by control.BeginInvoke().

DangerDev 107 Posting Pro in Training

Hi,
define a new array with function: arr3=new Array(no_of_element);
then use for loop to populate member of both array in to it as u want.

use arr_var[index] to access individual member of array.

DangerDev 107 Posting Pro in Training

Hi,

FastCar fc = new FastCar();
        Car c1 = fc;

will be ok.
but what you have done is opposite.
you can assign pointer of object of child class to pointer variable of parent class but cant do opposite directly.
Ex. Whole concept of Stream Zoo in this way.

DangerDev 107 Posting Pro in Training

I have called it submit1 and submit2.

yes i got it, i just forgot it, any way thanks,,,
then there is no problem at all, you can check at server side the name of button and on the base of this you can have intended functionality.....

DangerDev 107 Posting Pro in Training

yes it is correct, but when you are submitting how you are making difference at server side(of which button user has clicked), if you have problem in that see my suggested solution....

DangerDev 107 Posting Pro in Training

Hi,
you cant have two submit button on one form, do one thing:
have two simple button< input type="button" value="delete"......> and have on hidden field in form with name "task".On onclick event of these button call a function where you set the value of task="delete" or whatever you want, after this submit the form using javascript.
On server side check the value of task, according to value you take the action( either delete or add or....), one more thing in all cases you'll be having only one php page, where you will perform action according to "task" value.
Have a nice time !!!

DangerDev 107 Posting Pro in Training

you can store that object in data base. and later you can retrive it.

why actually you want to do that ?

DangerDev 107 Posting Pro in Training

try to use code what i have posted just above your post,
i think you need to give action on form, remove src from iframe.

DangerDev 107 Posting Pro in Training

can you post your code here ?
are you trying like following ?

<form name="form1" action="url_here" method="post" target="hidden_form">
        <input type="text" />
        <input type="submit" value="submit" />
     </form>
    <iframe name="hidden_form" height="0" width="0"></iframe>
DangerDev 107 Posting Pro in Training

as that discussion suggested now no need of using ajax, simple use your previous method just use invisible iframe.
actually i forgot previously that you have to send file not data. so ajax will not work effectively.
any way as discussion suggested use target="hidden_form" attribute where hidden_form is name of iframe, any way you can look in to discussion again.

DangerDev 107 Posting Pro in Training

hi
you try here, may be it will help you to solve your problem.

DangerDev 107 Posting Pro in Training

hi
here you can find help !

DangerDev 107 Posting Pro in Training

you can get rid of this problem using ajax.
if you are using ExtJS in your application, use it for ajax, or you can write your own function to handle ajax.
basically in ajax you will send and receive data without refreshing the page. so your page will not reload.

DangerDev 107 Posting Pro in Training

Hi,
what's your question ? if you want to put code snippets for others, to help, please go here

DangerDev 107 Posting Pro in Training
DangerDev 107 Posting Pro in Training

Hi
use onmousemove event on textarea element. There you get event object and its clientX and clientY property will give you the x and y co-ordinate of cursor current position.

DangerDev 107 Posting Pro in Training

i guess another programme is using port 80.
did you install any thing before some day?
try some software to know whether 80 is free or not.

DangerDev 107 Posting Pro in Training

hi
try this loop:

for(var ctr=0;ctr<form.elements.length;ctr++)
	{
		x=form.elements[ctr];
		output += x.name + "=" + x.value + "&"+"id="+x.id;
	}
DangerDev 107 Posting Pro in Training

you can use data base,
from the second application (after authentication has been done) you can query session variable from the browser and check the value of that data from data base.

DangerDev 107 Posting Pro in Training

ooh
that is kind of library MS is providing, but without that also you can work with ajax, using pure java script. Actually that library also internally use javaScript for ajax.
I would suggest that you start without any installation using pure JavaScript. Later you can have test of those library.

Those library will make your life easy, but since you are trying to learn ajax, try out without that.

DangerDev 107 Posting Pro in Training

can you post your client side code ?

DangerDev 107 Posting Pro in Training

hi
ajax is totaly client side javaScript technology, so what ever server side scripting language you are using it should work.
One more thing it doesnot need to install any thing as it is pure javaScript technology.

Have a nice time with this beautiful technology !!!