|
NO.There is no difference between them
Both r same.
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
check this link
http://www.meshplex.org/wiki/C_Sharp/Arrays_II
Read Passing Arrays to Functions and Passing Arrays to Methods....
Neeraj Rawat
|
|
|
|
|
NeerajSmart wrote: [Rep
The guy is an idiot, and should be banned from pretending to be able to teach C# in public.
I do not believe they are right who say that the defects of famous men should be ignored. I think it is better that we should know them. Then, though we are conscious of having faults as glaring as theirs, we can believe that that is no hindrance to our achieving also something of their virtues. - W. Somerset Maugham
My New Blog
|
|
|
|
|
In VB .net, there are two types of methods: functions and subroutines.
Subroutine Declarations:
Code: ( vb )
Sub method-name(parameter-list)
declarations and statements
End Sub
Function Declarations:
Code: ( vb )
Function method-name(parameter-list) As return-type
declarations and statements
....
return expression
End Function
So again, function is a method type that you can use to return values, where sub routines does not return a value. In fact, as you can see, a function or subroutine in Vb.net are both methods.
Example of a shared function in the FCL framework:
Code: ( vb )
dim quad as integer = math.pow(2,4)
That will make, of course, quad = 16.
Hope that helped!
lucky
|
|
|
|
|
In VB .net, there are two types of methods: functions and subroutines.
Subroutine Declarations:
Code: ( vb )
Sub method-name(parameter-list)
declarations and statements
End Sub
Function Declarations:
Code: ( vb )
Function method-name(parameter-list) As return-type
declarations and statements
....
return expression
End Function
So again, function is a method type that you can use to return values, where sub routines does not return a value. In fact, as you can see, a function or subroutine in Vb.net are both methods.
Example of a shared function in the FCL framework:
Code: ( vb )
dim quad as integer = math.pow(2,4)
That will make, of course, quad = 16.
Hope that helped!
lucky
|
|
|
|
|
I believe the technical difference is that a function is not in a class, whereas a method is.
You'll see method and member function used interchangeably which is fine (a function that is a member of a class, get it? Correct term when discussing C++). Function and method shouldn't be used interchangeably, but often will be.
I'd suggest you don't sweat it, they both represent blocks of code that do something and might return a value.
SSK.
|
|
|
|
|
Vri SSK wrote: I believe the technical difference is that a function is not in a class, whereas a method is.
You'll see method and member function used interchangeably which is fine (a function that is a member of a class, get it? Correct term when discussing C++). Function and method shouldn't be used interchangeably, but often will be.
I'd suggest you don't sweat it, they both represent blocks of code that do something and might return a value.
Check this[^]. This looks same. Have you wrote this ?
|
|
|
|
|
In c# we speak only of methods (a procedure or function within a class).
Other languages distinguish between them (is there a result value, (not) contained in a class, ...)
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Hi all,
I am generating textboxes and buttons generated on runtime. How can i store data from texboxes on button click????
Thanx in advance
Neeraj Rawat
|
|
|
|
|
Regenerate them,create EventHandler of Button control and Find textboxes and get values
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
How can i capture click event of generated button?????
Neeraj Rawat
|
|
|
|
|
NeerajSmart wrote: I am generating textboxes and buttons generated on runtime
1 - Are you adding controls to a content place holder ?
2 - In which event your dynamic controls are created ?
|
|
|
|
|
hey don,t thanx in advance try it first
double click on button then fire the query to saving data in database table
ok byeeee
lucky
|
|
|
|
|
I have moved the values from one listbox to another listbox by using Javascript. How can I reterive the values from the second listbox in server side ie., code behind? Because i will store the selected values in DB.
|
|
|
|
|
Looping through second Listbox.Item.Count and get selected values by using condition if listbox.Items[index].Selected is true then store them in DB
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
Hi All,
I have a Grid View which displays the product details using an SqlDataSource.I have an associated Details View through which I am inserting and editing Product Details using another SqlDataSource.The problem is whenever I insert a record into products the values are properly inserted and reflected in the grid but immediately after insertion, whenever i refresh the page the same record is getting inserted again.Why is it so?How wud I stop this.
Any small help in this regard wud be appreciated
Thanks
Haasini
|
|
|
|
|
Redirect the same page after inserting record
or
do not store Duplicate data in database using project Title or any other column name
Best Regard
---------------------------------------------------
|
|
|
|
|
Thanks a Ton Imran..
Its working perfectly fine..
Regards
Haasini
|
|
|
|
|
I have made one master page say master.aspx which is in the folder (ub/Forms/Common Forms/master.aspx) and has child form form1.aspx which is in the same folder(Forms/Common Forms/form1.aspx). I have included one image say image1.jpg which is in the folder(ub/images/common image/image1.jpg) in the master.aspx.Now when i run the form1.aspx, all the properties of master page comes except image1.jpg. The image1.jpg doesn't come.But when i take another child form say form2.aspx which is in the folder(/ub/form2.aspx),it shows all the properties of master.aspx including image1.jpg. But i want to show in form1.aspx...It's not working..Why so ??? How to solve it ?
suchitamanandhar@hotmail.com
|
|
|
|
|
maybe. try like that ../common image/image1.jpg (two dots)
OR
Use the full path (http://yoursite.com/ub/images/common image/image1.jpg )
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
hey guy
take a contentpanel in ur form then
retreive the masterpage in ur form
images automatically display in ur form
lucky
|
|
|
|
|
Hi.
From Database i m getting data in this format.
CAC PAT A 12/03/07
CAC PAT A 12/04/07
CAC PAT A 12/05/07
CMP CAT B 11/03/07
CMP CAT B 11/06/07
CMP CAT B 11/08/07
CPL AMT C 10/01/07
CPL AMT C 10/04/07
CPL AMT C 10/06/07
I want to display like that
CAC PAT A 12/03/07
12/04/07
12/05/07
CMP CAT B 11/03/07
11/06/07
11/08/07
CPL AMT C 10/01/07
10/04/07
10/06/07
How to do ?
Help me
Thanks
|
|
|
|
|
Use ItemDataBound Event of GridView.
|
|
|
|
|
thanks for reply
can you explain it
thanks
|
|
|
|
|
Try this is the code which i used for it.
private void DG_ItemDataBound(object o, DataGridItemEventArgs e)<br />
{ <br />
if (e.Item.ItemType == ListItemType.Item<br />
|| e.Item.ItemType == ListItemType.AlternatingItem)<br />
{<br />
TableCell cell = (e.Item.Controls[0] as TableCell);<br />
cell.Width = new Unit("120px");<br />
cell.Style["border-right"] = "2px solid #666666";<br />
cell.BackColor = System.Drawing.Color.LightGray;<br />
<br />
for(int i=1; i<e.Item.Controls.Count; i++)<br />
{<br />
cell = (e.Item.Controls[i] as TableCell);<br />
<br />
cell.HorizontalAlign = HorizontalAlign.Right;<br />
cell.Width = new Unit("90px");<br />
<br />
if (i % 2 == 1)<br />
cell.BackColor <br />
= System.Drawing.ColorTranslator.FromHtml("#EFEFEF");<br />
<br />
if (GetCellValue(cell) >= 8000)<br />
{<br />
cell.Font.Bold = true;<br />
cell.BorderWidth = new Unit("1px");<br />
cell.BorderColor = System.Drawing.Color.Gray;<br />
cell.BorderStyle = BorderStyle.Dotted;<br />
cell.BackColor = System.Drawing.Color.Honeydew;<br />
}<br />
<br />
} <br />
<br />
}<br />
<br />
if (e.Item.ItemType == ListItemType.Header)<br />
{<br />
foreach (TableCell cell in e.Item.Controls)<br />
{<br />
cell.Style["border-bottom"] = "2px solid #666666";<br />
cell.BackColor=System.Drawing.Color.LightGray;<br />
}<br />
}<br />
<br />
}
It is an Example only try it with your specs.
SSK.
|
|
|
|