Click here to Skip to main content
15,911,785 members
Home / Discussions / C#
   

C#

 
GeneralRe: Datagrid select row Pin
Rmokkenstorm20-Mar-06 2:23
Rmokkenstorm20-Mar-06 2:23 
GeneralRe: Datagrid select row Pin
esjq20-Mar-06 2:44
esjq20-Mar-06 2:44 
GeneralRe: Datagrid select row Pin
Rmokkenstorm20-Mar-06 2:49
Rmokkenstorm20-Mar-06 2:49 
GeneralRe: Datagrid select row Pin
esjq20-Mar-06 3:05
esjq20-Mar-06 3:05 
GeneralRe: Datagrid select row Pin
Rmokkenstorm20-Mar-06 3:29
Rmokkenstorm20-Mar-06 3:29 
GeneralRe: Datagrid select row Pin
esjq20-Mar-06 3:45
esjq20-Mar-06 3:45 
QuestionRe: Datagrid select row Pin
Rmokkenstorm20-Mar-06 4:18
Rmokkenstorm20-Mar-06 4:18 
QuestionPopulating a Datalist only when if Statement is True Pin
Brendan Vogt16-Mar-06 0:54
Brendan Vogt16-Mar-06 0:54 
Hello,

I have 2 panels on my product listing page, namely:

<asp:Panel id="pnlProducts">
<asp:Panel id="pnlError">

Inside the pnlProducts I have a the following piece of code:

<asp:Panel id="pnlProducts" Visible="false" runat="server">

<asp:ObjectDataSource id="odsProductCategories"
TypeName="MyProject.Components.BusinessLogicLayer.Product"
SelectMethod="GetAllCategories" runat="server">
</asp:ObjectDataSource>

<asp:DataList id="dlProductCategories" DataKeyField="CategoryID"
runat="server">

<ItemTemplate>

<div class="ContentBodyArea">

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><%# Eval("CategoryName") %>
<div class="verticalSpacer15"></div>
<p class="NoMarginPadding"><%# Eval("CategoryDescription") %></p>
</td>
</tr>
</table>

</div>

</ItemTemplate>

</asp:DataList>

</asp:Panel>

I test on a category id passed through the querystring, if it is not numeric, the error panel is shown, and the products panel is hidden, but I only want the products to be loaded when the queryustring is numeric. How do this? I have it now, that if the querystring id is not numeric, it still loads the data, but it is just not showing.

Please can someone help me?

Regards,
ma se
AnswerRe: Populating a Datalist only when if Statement is True Pin
CWIZO16-Mar-06 2:11
CWIZO16-Mar-06 2:11 
GeneralRe: Populating a Datalist only when if Statement is True Pin
Brendan Vogt16-Mar-06 2:36
Brendan Vogt16-Mar-06 2:36 
GeneralRe: Populating a Datalist only when if Statement is True Pin
CWIZO16-Mar-06 2:42
CWIZO16-Mar-06 2:42 
Questionusb drivers Pin
JacquesDP16-Mar-06 0:49
JacquesDP16-Mar-06 0:49 
AnswerRe: usb drivers Pin
roboter@begemotik.ee16-Mar-06 3:12
roboter@begemotik.ee16-Mar-06 3:12 
QuestionWeb Method order Pin
si_6916-Mar-06 0:42
si_6916-Mar-06 0:42 
AnswerRe: Web Method order Pin
CWIZO16-Mar-06 2:12
CWIZO16-Mar-06 2:12 
QuestionPassing an array of ints to an unmanaged function (as an int pointer) Pin
paul_ainsworth16-Mar-06 0:34
paul_ainsworth16-Mar-06 0:34 
AnswerRe: Passing an array of ints to an unmanaged function (as an int pointer) Pin
Divyang Mithaiwala16-Mar-06 3:27
Divyang Mithaiwala16-Mar-06 3:27 
QuestionSerializing object problem Pin
hpetriffer16-Mar-06 0:24
hpetriffer16-Mar-06 0:24 
AnswerRe: Serializing object problem Pin
Nicholas Butler16-Mar-06 5:26
sitebuilderNicholas Butler16-Mar-06 5:26 
GeneralRe: Serializing object problem Pin
hpetriffer16-Mar-06 18:58
hpetriffer16-Mar-06 18:58 
Questionplease help me... Pin
Ruzimi15-Mar-06 23:49
Ruzimi15-Mar-06 23:49 
AnswerRe: please help me... Pin
J4amieC15-Mar-06 23:52
J4amieC15-Mar-06 23:52 
AnswerRe: please help me... Pin
akyriako7816-Mar-06 0:15
akyriako7816-Mar-06 0:15 
AnswerRe: please help me... Pin
hpetriffer16-Mar-06 0:27
hpetriffer16-Mar-06 0:27 
AnswerRe: please help me... Pin
fregolo5216-Mar-06 0:29
fregolo5216-Mar-06 0:29 

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.