What exception it is throwing?
How do you know its not working?
Salem commented: It appears they haven't read anything yet +36
Ancient Dragon commented: Absolutely yes. +36
DangerDev 107 Posting Pro in Training
What exception it is throwing?
How do you know its not working?
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.
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#.
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.
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.
Some suggestions:
==============
1. Use data grid for it.
2. First divide number.
3. Fill it in data grid.
Please use proper English, didn't you read above posts by yellowSnow?
Please post your question.
Please use English which every one can understand.
What is vf?
I think you should start with a basic C book. You can not learn each and every language construct by communities.
@ 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.
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.
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.
The link i have is given is good to start what else you need?
please also post the HTML code as in above code you have lot of divs
Hi
Do this:
if (e.KeyChar == (char)Keys.Enter)
{
//do something
}
inside textBox1_KeyPress function
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.
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.
What about creating a small complex number struct and dividing methods around it in different classes?
if you dont want to display more than 1 Form2
keep following code out side the foreach statement:
Form2 form2 = new Form2();
form2.Show();
do in this way:
...............
Object x;
x = s.Pop();
ArrayList al=x as ArrayList ;
if(al!=null)
{
al.Add("Something");
}
...............
there is a problem in following line:
string FileList = Directory.GetFiles(DirPath).ToString();
it should be :
String[] FileList=..............
install framework 2.0, it will have backward compatibility, but vice verse is not going to work.
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;
}
Create a method as RamyMahrous said then invoke it using any UI thread. You can do it by control.BeginInvoke().
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.
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.
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.....
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....
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 !!!
you can store that object in data base. and later you can retrive it.
why actually you want to do that ?
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.
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>
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.
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.
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.
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.
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;
}
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.
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.
can you post your client side code ?
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 !!!