string imgg=1,3,4,9,18 ,
imgg=imgg.TrimE nd(',');
string[] words = imgg.Split(',') ;
foreach (string word in words)
{
strrr = "select * from profiles where proid=" + int.Parse(word) ;
SqlDataSource2. SelectCommand = strrr;
GridView2.DataS ourceID = "sqldatasource2 ";
...
User Profile
Collapse
-
Add multiple records to a GridView
-
A multiple records to GridView
...Code:string imgg=1,3,4,9,18, imgg=imgg.TrimEnd(','); string[] words = imgg.Split(','); foreach (string word in words) { strrr = "select * from profiles where proid=" + int.Parse(word); SqlDataSource2.SelectCommand = strrr; GridView2.DataSourceID = "sqldatasource2";Last edited by Frinavale; Dec 3 '09, 03:27 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
DataList no Accessible
A strange problem i am facing i bind DataList on link button Argument Event.
<asp:DataList id="DataList2" runat="server" horizontalalign ="Left" repeatdirection ="Horizontal " repeatcolumns=" 3" DataKeyField="i d" >
<ItemTemplate >
<asp:checkbox id="chkItem" runat="server"... -
Bug with Dropdown list
I have placed two dropdownlist in my web one is bound and one is unbound. When i select the last index which has the same value as the 0 index it jumps to 0 index automatically and did not show the value of last index. It is happening only with bound dropdownlist while manually add dropdownlist is working fine with all indexes with same value.
Datalist2 is manually added and working fine with all indexs and values.
public...
No activity results to display
Show More