Click here to Skip to main content
15,911,524 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Resizing font size on pageload Pin
TheIdleProgrammer8-Oct-07 0:04
TheIdleProgrammer8-Oct-07 0:04 
QuestionApplication(Java) + WebService(.Net) Pin
gauthee4-Oct-07 20:01
gauthee4-Oct-07 20:01 
QuestionNeed help:Session.Abandon don't work in IE7 Pin
vanhawk4-Oct-07 16:47
vanhawk4-Oct-07 16:47 
QuestionUnclear How to Get SQL Server Developer 2005 to Work with VS.NET Pin
Brian C Hart4-Oct-07 14:01
professionalBrian C Hart4-Oct-07 14:01 
AnswerRe: Unclear How to Get SQL Server Developer 2005 to Work with VS.NET Pin
Christian Graus4-Oct-07 17:40
protectorChristian Graus4-Oct-07 17:40 
GeneralRe: Unclear How to Get SQL Server Developer 2005 to Work with VS.NET Pin
Brian C Hart5-Oct-07 11:10
professionalBrian C Hart5-Oct-07 11:10 
Questionservice capture Pin
orsini4-Oct-07 10:44
orsini4-Oct-07 10:44 
QuestionSelecting multiple parameters Pin
TAK784-Oct-07 7:23
TAK784-Oct-07 7:23 
I'm trying to pass multiple DataKeynames after a selection is made in the Gridview, and to view them in a DataList where the selection matches them. Right now it will only display the first selected parameter (jacket).
Here is my code:

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" Visible="false"
BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="jacket, closure, shielding" ForeColor="Black" GridLines="Vertical" Width="750px" OnPageIndexChanging="gridViewPublishers_PageIndexChanging" OnSorting="gridViewPublishers_Sorting"
AllowPaging="True" PageSize="20" AllowSorting="True" PagerSettings-Mode="NumericFirstLast">
<FooterStyle BackColor="#CCCCCC" />
<Columns>
<asp:CommandField ItemStyle-Width="70" ShowSelectButton="True" />
<asp:BoundField ItemStyle-Width="130" DataField="partnumber" HeaderText="Partnumber" ReadOnly="True" SortExpression="partnumber" />
<asp:BoundField ItemStyle-Width="100" DataField="jacket" HeaderText="Jacket" SortExpression="jacket" />
<asp:BoundField ItemStyle-Width="220" DataField="closure" HeaderText="Closure" SortExpression="Closure" />
<asp:BoundField ItemStyle-Width="110" DataField="shape" HeaderText="Shape" SortExpression="shape" />
<asp:BoundField ItemStyle-Width="130" DataField="shielding" HeaderText="Shielding" SortExpression="Shielding" />
</Columns>
<SelectedRowStyle BackColor="#7c7979" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#CCCCCC" />
<PagerSettings Mode="NumericFirstLast" />
</asp:GridView><br /><br />



<asp:DataList ID="DataList1" runat="server" BackColor="#1679d5" BorderColor="#999999"
BorderStyle="Solid" BorderWidth="1px" CellPadding="3"
ForeColor="White" GridLines="Vertical" DataSourceID="SqlDataSource1" Visible="false">
<FooterStyle BackColor="#CCCCCC" />
<SelectedItemStyle BackColor="Blue" Font-Bold="False" ForeColor="White" />
<ItemTemplate>
<table>
<tr>
<td style="width:120px; font-weight:bold;">
<asp:Label ID="materialLabel" runat="server" Text='<%# Eval("material") %>' />
</td>
<td style="width:450px;">
<asp:Label ID="Label" runat="server" TabIndex="1" Text='<%# Eval("marketing_tagline") %>' />
</td>
<td style="width:150px; text-align:center;">
<div class="SearchDataLink">
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("material", "dataSheet.aspx?id={0}") %>' TabIndex="2" Target="_blank" Text="View datasheet" />
</div>
</td>
</tr>
</table>
</ItemTemplate>
<AlternatingItemStyle BorderWidth="1" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
</asp:DataList>


<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ZippertubingConnectionString %>" SelectCommand="SELECT * FROM [ProductVerbage] WHERE ([material] = @jacket) OR ([material] = @closure) OR ([material] = @shielding) " >
<SelectParameters>
<asp:ControlParameter ControlID="GridView1" Name="jacket" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="GridView1" Name="closure" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="GridView1" Name="shielding" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>

QuestionClass library project in Visual web developer 2005 express ed. Pin
M.Daud4-Oct-07 6:18
M.Daud4-Oct-07 6:18 
QuestionHow to page through a dataset offline Pin
awf17014-Oct-07 3:55
awf17014-Oct-07 3:55 
AnswerRe: How to page through a dataset offline Pin
kubben4-Oct-07 5:10
kubben4-Oct-07 5:10 
QuestionJavascript Error occurs on Infragistics Webgrid click Pin
codingrocks4-Oct-07 0:46
codingrocks4-Oct-07 0:46 
Questionweb service reference Pin
vijayaBTS3-Oct-07 21:16
vijayaBTS3-Oct-07 21:16 
AnswerRe: web service reference Pin
kubben4-Oct-07 5:12
kubben4-Oct-07 5:12 
QuestionPassing elements to ActiveX UserControl written in C# Pin
Aiseen3-Oct-07 8:45
Aiseen3-Oct-07 8:45 
QuestionWeb Crawler - URL Normalization? Pin
AliAmjad3-Oct-07 7:20
AliAmjad3-Oct-07 7:20 
AnswerRe: Web Crawler - URL Normalization? Pin
Johnny ²5-Oct-07 6:57
Johnny ²5-Oct-07 6:57 
GeneralRe: Web Crawler - URL Normalization? Pin
AliAmjad6-Oct-07 10:00
AliAmjad6-Oct-07 10:00 
QuestionHow do you use AJAX to filter a GridView based on a check box being ticked. Pin
awf17013-Oct-07 5:23
awf17013-Oct-07 5:23 
AnswerRe: How do you use AJAX to filter a GridView based on a check box being ticked. Pin
Rajesh Thomas1-Nov-07 22:33
Rajesh Thomas1-Nov-07 22:33 
QuestionSending newsletter automatically Pin
G.Manivannan3-Oct-07 2:54
G.Manivannan3-Oct-07 2:54 
QuestionApplication variable Pin
L Viljoen2-Oct-07 23:53
professionalL Viljoen2-Oct-07 23:53 
AnswerRe: Application variable Pin
Urs Enzler3-Oct-07 3:02
Urs Enzler3-Oct-07 3:02 
Questionhow to recieve sms in c# Pin
shabi uz zaman2-Oct-07 21:28
shabi uz zaman2-Oct-07 21:28 
AnswerRe: how to recieve sms in c# Pin
chandu0042-Oct-07 22:54
chandu0042-Oct-07 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.