Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Quick quest Pin
musefan30-Jun-09 4:35
musefan30-Jun-09 4:35 
GeneralRe: Quick quest Pin
gwithey30-Jun-09 4:44
gwithey30-Jun-09 4:44 
AnswerRe: Quick quest Pin
c0ax_lx30-Jun-09 4:45
c0ax_lx30-Jun-09 4:45 
GeneralRe: Quick quest Pin
gwithey30-Jun-09 4:48
gwithey30-Jun-09 4:48 
GeneralRe: Quick quest Pin
c0ax_lx30-Jun-09 4:54
c0ax_lx30-Jun-09 4:54 
GeneralRe: Quick quest Pin
gwithey30-Jun-09 4:58
gwithey30-Jun-09 4:58 
GeneralRe: Quick quest Pin
musefan30-Jun-09 5:14
musefan30-Jun-09 5:14 
QuestionFilter GridView using a dropdown list but only after page populates with appropriate data from Query String Pin
mjc22530-Jun-09 4:23
mjc22530-Jun-09 4:23 
I am using a GridView on a page that will need to display data based on either a URL passed in with a QueryString OR fields passed from a form. This may return 50-500 records or so based on the state etc... If this is too many, (and only if this is too many) the user will be able to filter based on the occupation. I can get it to filter on query string AND state at the same time but not or sadly. I want it to default to all occupations after pulling from the DB based on state, (I tried setting the default value for occupation to -1) and then, the user can use the dropdown control to filter it more.
<asp:dropdownlist id="ddlCategories" runat="server" appenddatabounditems="True" autopostback="True"
		datasourceid="sdsCategories" datatextfield="Occupation" datavaluefield="Occupation">
			<asp:listitem text="All Categories" value="-1">
		</asp:listitem>
	</asp:dropdownlist>
	<asp:sqldatasource id="sdsCategories" runat="server" connectionstring="<%$ ConnectionStrings:eventsConnectionString1 %>"
		selectcommand="SELECT [Occupation] FROM [Events]" ProviderName="<%$ ConnectionStrings:eventsConnectionString1.ProviderName %>">
	</asp:sqldatasource>


	<asp:gridview id="gvProducts" runat="server" datasourceid="sdsProducts" style="margin-top: 12px;" AllowSorting="True" AutoGenerateColumns="False">
		<columns>
            <asp:BoundField DataField="EventTitle" HeaderText="EventTitle" SortExpression="EventTitle" />
            <asp:BoundField DataField="EventEndDate" HeaderText="EventEndDate" SortExpression="EventEndDate" DataFormatString="{0:MM/dd/yyyy}" />
            <asp:BoundField DataField="EventStartDate" HeaderText="EventStartDate" SortExpression="EventStartDate" DataFormatString="{0:MM/dd/yyyy}" />
            <asp:BoundField DataField="EventCity" HeaderText="EventCity" SortExpression="EventCity" />
            <asp:BoundField DataField="EventState" HeaderText="EventState" SortExpression="EventState" />
            <asp:BoundField DataField="Occupation" HeaderText="Occupation" SortExpression="Occupation" />
		</columns>
	</asp:gridview>
	<asp:sqldatasource id="sdsProducts" runat="server" connectionstring="<%$ ConnectionStrings:eventsConnectionString2 %>"
		selectcommand="SELECT [EventTitle], [EventEndDate], [EventStartDate], [EventCity], [EventState], [Occupation] FROM [Events] WHERE ([EventState] = ?)" ProviderName="<%$ ConnectionStrings:eventsConnectionString2.ProviderName %>">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="PA" Name="EventState" QueryStringField="ID"
                Type="String" />
        </SelectParameters>
	</asp:sqldatasource>

Questioncomplete removing of a C# COM component Pin
manustone30-Jun-09 3:24
manustone30-Jun-09 3:24 
QuestionCombobox and listbox control Pin
Hum Dum30-Jun-09 3:08
Hum Dum30-Jun-09 3:08 
AnswerRe: Combobox and listbox control Pin
musefan30-Jun-09 3:19
musefan30-Jun-09 3:19 
GeneralRe: Combobox and listbox control Pin
Hum Dum1-Jul-09 0:04
Hum Dum1-Jul-09 0:04 
GeneralRe: Combobox and listbox control Pin
musefan1-Jul-09 1:18
musefan1-Jul-09 1:18 
QuestionCalling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 2:42
shivapriyak30-Jun-09 2:42 
AnswerRe: Calling a C function from C# and getting values from it. [modified] Pin
DaveyM6930-Jun-09 3:26
professionalDaveyM6930-Jun-09 3:26 
GeneralRe: Calling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 3:34
shivapriyak30-Jun-09 3:34 
GeneralRe: Calling a C function from C# and getting values from it. Pin
DaveyM6930-Jun-09 3:39
professionalDaveyM6930-Jun-09 3:39 
GeneralRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 4:03
sitebuilderLuc Pattyn30-Jun-09 4:03 
AnswerRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 4:09
sitebuilderLuc Pattyn30-Jun-09 4:09 
GeneralRe: Calling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 20:03
shivapriyak30-Jun-09 20:03 
GeneralRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 22:57
sitebuilderLuc Pattyn30-Jun-09 22:57 
QuestionSQLite in C# Pin
stancrm30-Jun-09 2:35
stancrm30-Jun-09 2:35 
AnswerRe: SQLite in C# Pin
Pete O'Hanlon30-Jun-09 2:39
mvePete O'Hanlon30-Jun-09 2:39 
AnswerRe: SQLite in C# Pin
SeMartens30-Jun-09 2:41
SeMartens30-Jun-09 2:41 
QuestionHow to Upload large size file to server Pin
wasimsharp30-Jun-09 2:21
wasimsharp30-Jun-09 2:21 

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.