|
How I can get the value of first column of the selected row of the gridview?
Thanks In advance
Ejaz
|
|
|
|
|
string s = gridview.Rows[0].Cells[0].Text;
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
Thanks for the reply.And how I can get the selected row id.
I tried with the following line but it returns the null value.
msgbox(gridview.rows(0).cells(0).text)
I am using VB Language.
|
|
|
|
|
gridview.SelecteIndex for the index or gridview.SelectedRow for the row itself.
But I strongly recommend that you start reading the documentation in the MSDN about the controls you want to use!
--> google --> search for "gridview site:msdn2.microsoft.com"
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
hi every buddy
i have a table with single colums named id.
and i want to change is column into array
please reply some one
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
An array is not a valid datatype for an item in a database. Or do you mean you want to turn all those values into a single array ? Which bit are you stuck on ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Do you mean SQL Array for temp use in stored procedures etc or scripting/programming array in application? and whats your platform.
for SQL Array : Read following
The ARRAY In SQL Server 2000
[^]
In ASP.NET you can use dataset which will provide you the built in rows array for that column.
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
actualy i am working on asp.net with c# and i have generate a data table which contain the one column name id. and i want to generate an array which contains to values of that table (id)
rajeev kumar sharma
vri software pvt. ltd.
new delhi India
|
|
|
|
|
DataTable dt = yourdataset.Tables[0];
List<int> ids = new List<int>();
foreach(DataRow row in dt.Rows)
{
ids.Add(((int)row[0]));
}
//Now you have the list of ids from the table.
|
|
|
|
|
Hi
I am using Visual Studio 2005 to develop a Web application. I have an image at the top of a Master page. I have created a separate folder, called SecurePages, for the pages that require authorization. I have specified the same master page for the normal pages as well as the pages in the separate folder. When I run the application, the image on the master page display correctly for the normal pages, but not for the pages in the secure folder.
Any ideas?
Thanks.
Kobus
|
|
|
|
|
Are you sure about the path of the image.
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
Asalam-O-ALikum!
How can custmize lagend's label text in crystal report
B asharatA li
Internee
METESYS Lahore
Pakistan
|
|
|
|
|
you can't customize legend's label text or Data Label Text in the Design view. You can customize the text Format and the Position. run the report and see whether is show the proper data or not. Those labels are used to display the actual data. one more thing you can do that is you can enable and disable the label...
Regards John
|
|
|
|
|
Hello Everyone,
I've to play a playlist of songs in a Audio/Video player And also that playlist is changed dynamically by the admin. itself.. as per his/her requirements...........
|
|
|
|
|
do you plan to create some sort of radio/tv broadcasting?
Any systematic work reflects its significance for a long time. So let's discuss the best...
|
|
|
|
|
i have a checkboxlistitem.where let say A,B,C,D,E are the items in that control.
and below that 5textboxes are there named as textbox1,textbox2......textbox5.
initiallay all textboxes are disabled.now i want when ever i select A the corresponding checkbox should be enable i.e textbox2.
and likewise if i select B then textbox2, if Dthen textbox 4.likewise.
what will be the vb.net code for it.
thnaks in advance
|
|
|
|
|
Enabling and Disabling the TextBox based on the items checked on the checkBoxList can be done in 2 ways. Either you can do it in the client-side or you can do in the server side.
You can access the checkListBox on the client side using the document object...
document.getElementById(checklistbox).options[1].selected = (true or false)
textbox can be enabled and disabled on the client-side using the disabled property of the textbox.
textBox.disabled = (true or false)
If you are doing it on the server-side
enable the AutoPostBack Property of the checkListBox and
write the server side code on the CheckBoxList_SelectedIndexChanged event
textbox can be enabled and disabled on the server-side using the enabled property of the textbox.
textBox.Enabled = (true or false)
Regards John
|
|
|
|
|
hi, all
here another small query for you.
i have a checkboxlistitem.where let say A,B,C,D,E are the items in that control.
i am able to store the mulitiple value of the checkbxlist item .(by taking a string and storing the multiple value by "," operator).
now my problem is that when i am retriving the value from the db ,am not able to retrive the value of the lsitboxitems.
(suppose in emp_id "1" i have stored the values of A,C,D from checkboxlist,when i retrive the record having emp id 1. i want to retrive its value i.e A,C,D and the corresponding checkbox of the values to be checked in the front end.)
what will be code in vb.net(please write the complete code)
|
|
|
|
|
biswa47 wrote: (please write the complete code)
give a try first then come here if you happen to face any problem in coding or debugging the errors.
biswa47 wrote: (suppose in emp_id "1" i have stored the values of A,C,D from checkboxlist,when i retrive the record having emp id 1. i want to retrive its value i.e A,C,D and the corresponding checkbox of the values to be checked in the front end.)
Here is the code you asked....
Dim lstItem As New ListItem
Dim lstItems() As String = Value.Split(",")
For Each lstItem In chklstBox.Items
For I As Int16 = 0 To lstItems.Length - 1
If lstItems(I) = lstItem.Value Then
lstItem.Selected = True
End If
Next
Next
Regards John
|
|
|
|
|
after trying ur code , i got some problem thats why i came here again.what is "Value" here. have u checked that weather its working or not
|
|
|
|
|
say for an example the value is "A,B,C". You need to split the values and have it in a string array. Take each value and check against the items of the checklistBox. while looping through the items, if any value in the array matches with the value of the checkListBox item then mark it as checked.
This is one way of sorting out this problem.....
Regards John
|
|
|
|
|
biswa47 wrote: after trying ur code , i got some problem
What kind of problem? any syntax or logical error?
biswa47 wrote: thats why i came here again
Nothing wrong in coming here again and again. you will go with the best solution. but you should give a try at first right...
biswa47 wrote: what is "Value" here
the value that you retrieve from the database example "A,C,D"
biswa47 wrote: have u checked that weather its working or not
No Not really...I just gave you an idea...
Regards John
|
|
|
|
|
hi,
i am developing a c# web application. i dragged an adrotator onto my webform, and created the corresponding ads.xml file.
the adrotator tag is as follows
<asp:adrotator id="AdRotator1" advertisementfile="~/ads.xml" runat="server" forecolor="#FF8000">
the contents of the XML file are as follows
<advertisements>
<ad>
<imageurl>/images/Blue hills.jpg
<navigateurl>www.site.com
<alternatetext>
BLue Hills
<impressions>1
The problem is that images are not being displayed, but their alternate text is displayed, and it is rotating.
please help
kunal
Kunal
|
|
|
|
|
|
hi,
i have already followed all that had been mentioned in the article. but still the alternate text changes, and no images
Kunal
|
|
|
|