I'm having trouble linking a form view I have on a web page with a drop down list on the same page. Basically, what I need to happen is whenever a new selection is chosen from the drop down list, the details in the form view should also change to represent that selection's criteria.
I have my drop down list connected to SQLDataSource1 and my form view to SQLDataSource2, and these are populating as expected, it's just the problem lies when changing the selection in the drop down list - the form view doesn't follow what is selected.
does anything have to be added in the properties options of either the data source controls or the form view? For example, in the "Events" section, there is a "DataBinding" and "DataBound" selection item that can be used - should anything be entered in this to connect the two?
PS - Here is the code I have in the back end of the page:
i have a job application process where users apply for a job, in the admin section administrators want to be able to see which applications have not been viewed. Now i have one page which lists all the job vacancies and then users can click into that specific vacancy to see which people have submitted an application. This all works fine.
However on the page i display the job vacancies i need to make it so that if there are any applications within a vacancy that need viewing it appears in RED.
How do I insert the selections made on several checkboxes into the WHERE clause of a SQL SELECT statement? The scenario is as follows: the user selects one or more checks in different check boxes to determine the rows to be parsed in a SQL table. Then the user clicks on a Submit button and the result fills a Repeater table. How do I do this, and how do I configure the button to launch the SelectCommand?
My website is working but when I host it up, the connection are all screw up. Is it because my connectionString are all linked via SqlDatasource and is for local files only? Whats the coding that I need to put in so that my site will connect to the database via accessing the web.config or server?
am trying to use a stored procedure for the Delete Command, I don't see how to set the parameter values to link to the grid values.When using text command, I would just use "WHERE Row_ID = @Row_ID" (Row_ID being the first column of the grid, and the primary key of the table.)How do I do this using a strored procedure?
I've editing a create user wizard to add a 2nd step, this step will collect the users address. i can't get the second step to save into a table. I'm completely new to visual web developer, so if you reply please make it as jargon free as possible, see source code and vb code, i think i'm missing code for the "finish Button click"
Source code is. [Code]....
Code Behind the wizard control Partial Class Registration Inherits BasePage [Code]....
I'm trying to link a detailview to a gridview. Both are using the same datasource control and it's coming from an Access database. Both are showing data. The gridview is listing products fine and the detailview is listing details of some default product (maybe the first). How can I configure the two so that when I hit my select button on my gridview that it populates the details into detailview with the correct data for the selected product?
Basically I am using gridview to pull data (Question/Question ID) from our SQL server. I am trying to write a program that allows me to check certain rows and a button that sends the checked rows to a seperate form with placeholders.
Is it possible to program a button to send checked rows in gridview to a seperate form with placeholders and if so how would I go about starting?
I'll start by saying that it took me a very long time to find this bug, since it's quite elusive... The Repeater control in the following test case contains two runat="server" DIVs. Each one of them gets a TextBox appened to them through the ItemCreated event of the Repeater. Both of them have AutoPostBack=True, and TextChanged event wired to txt_TextChanged. However, only the TextBox from the first level properly points to the event on the postBack of the page. The second level TextBox also causes the postBack to occur, the its value does not persist in the VIEWSTATE as well as the event does not fire. Here's adirect link to the test case in a .zip file, as well as all the code. The project is built in VS2010 using Framework 4.
I have a gridview with a hyperlink control that allows the user to save pages to it (www.google.ca, asp.net, etc). Unfortunately it always adds the server name to the beginning of their link. [URL] I was wondering is there any way to change that within the control. or should I have it pass a query string to a url handler that will response.redirect them to their actual page?
I have a page with a datalist and a formview. The page holds a newsletter and access to archived newsletters. I have set up the datalist so that each item contains a button control with a bound text. The formview holds an object with a bound data attribute. I have the page running with linq and the intitial page populates perfect. What I need to do though is be able to click a button in the datalist and have the formview rebind to the correlating data.
I'm trying to create a menu structure, subpages within pages, for use with my cms. I have 3 tables in sql server, I would like to query all three tables and list those pages with a certain siteid, and subpages where the subid is the pageid. how to use the GROUP BY Statement to create the menu below? Or could I use vb.net to display it for me? Something like this:
SELECT * FROM sites LEFT JOIN pages ON sites.siteid=pages.siteid LEFT JOIN subpages ON pages.pageid=subpages.pageid WHERE sites.siteID = 1ORDER BY sites.siteid, pages.pagesub ASC
These are my tables:
sites siteID int Unchecked PK siteName nvarchar(MAX) Checked siteAdmin nvarchar(MAX) Checked siteLive bit Checked Pages
pageID int Unchecked PK siteID int Checked FK linked to siteid in sites table pageLink nvarchar(MAX) Checked pageBody ntext Checked pageSummary ntext Checked pageTitle ntext Checked pageOrder int Checked pageHome bit Checked
subID int Unchecked PK PageID int Checked FK linked to pageid in pages table subBody ntext Checked subSummary ntext Checked subTitle nvarchar(MAX) Checked subOrder nvarchar(MAX) Checked
Can i create 2 sitemaps in the same application? I tried doing it. When I tried to add a datasource to a treeview, it is showing first site map. Eventhough I wrote sitemapdatasource2, then also it is showing first sitemap contents. How can I solve this?
I'm looking for a good jQuery or CSS, or combo, library to enance my left side menu in an an intranet application. I don't like the 'hover only' expand/collapse style of the ASP.NET Menu control on its own, and I don't like the 'icon-click only' expand/collapse style of the TreeView control on its own.
I plan on trying the CSS Control Adapters, to render the menu with some self-respect, i.e. as nested <ul> or <ol> elements instead of the usual orgy of tables. Beyond that, I need something to give a bit of style and menulike behaviour to these nested lists, and I would prefer a jQuery plugin for this. Which should I use?