|
I have used ntext for this and it is working perfectly fine
Shujaat
|
|
|
|
|
i have a radiobuttonlist on my webform. i'd like to run some client-side
javascript that when you click it it puts the value of the option selected
into a textbox .
|
|
|
|
|
guy
only write code radiobutton.checked=true then
radiobutton.text=textbox.text
or link the format in radiobutton checked event
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.
Assume that the
First listbox
-------------
Raja
Jayaraj
Meena
Rupa
Kannan
Radha
I Moved the Meena , Kannan to Second Listbox
Second Listbox
-------------
Meena
Kannan
In Add_Click
I have to assign the values in a string in comma separation
For example
string m_Names;
m_Names=Meena,Kannan;
|
|
|
|
|
hey guy just use the datareader and insert add the item of one listbox
like
dim dr as dataadapter
cmd.commandtext="select ur datatable"
dr.open
dr=cmd.executereader
dr.read
listbox2.text=add.item("datacolumnname")
dr.close
lucky
|
|
|
|
|
The above method doesnt looks to be efficient. Since it will call for a postbacl each time...
Try this.
Listbox sends "all" the selected values as postback to the server side. This hint is enough to get the job done [ ].
So what u need to do is...
1.. before form submit, u need to selecte all the items in the listbox from which u want to read the values. (this will be done in javascript)
2...string str = Request.Form["MySelectedListBox"]
3... "str" will contain "values" of al the items as csv.
4.. string []selectedItems = str.split(',');
5...foreach(string strItem in selectedItems)
{
//Insert into database.
}
Please grade the reply.. in case it helped you.
Thanks.
|
|
|
|
|
I have a project developed in 2.0 Framework, can i use a Forum which is developed in 1.1 Framework.
Please suggest there is no problem to integrate the forum.
Thanks in advance
Arun Kr.
Arun Kr
|
|
|
|
|
Did you check out Community Server forums?
|
|
|
|
|
hey boy
u can use the cycle when u have a motorcycle ans is no
simply .net 1.1 framework can be convert into 2.0 but not 2.0 convert into 1.1 ok
old version cannot support the new version
byeeee
hope u understand
but u can change or run with help of window xp and window vista because it already has a framework 2.0 ok
lucky
|
|
|
|
|
Is there any difference between mwthods and functions????
Neeraj Rawat
|
|
|
|
|
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
---------------------------------------------------
|
|
|
|