I have the hyperlink below that I can't get the syntax correct (I'm trying to pass the Primary key field, UniqueIdentifier, for the datagrid item, along with a label value, lblSAID):
<asp:HyperLink id="HyperLink1" runat="server" Text="Locate" NavigateUrl='<%# "RL.aspx?id=" &...
If a user is, for example, adding a new Employee to the pubs database, and wants to "cancel out" of the addition of this new employee, what do I need in the cancel button's event handler?
Can you do Message Boxes like a windows app for ASP.NET 1.1? From what I remember, you couldn't in ASP 3.0.
I thought I read something that ASP.NET 2.0 will have this functionality.
Thanks!
I have a dropdownlist in a datagrid that get's shown to the user once the "Edit" button from the Datagrid is clicked. I have the dropdown set @ PostBack=True
How do I set a label on the page to equal the dropdownlist's selected value on postback.
Is it in the HTML text attribute of the label...
Let's say I have four textbox values I want to pass back to another page. In the Response.Redirect string I have something now like
Response.Redirect("Page2.aspx?ID=" & txtbox.Text.ToString() & txtGroup.Text.ToString() & ddl1.SelectedValue.ToString() & " " & Mid(ddl2.SelectedItem.ToString)
How...
I have three dropdownlists. The first two are on AutoPostBack=True, and I populate two textboxes with the values of each of these dropdownlists.
I am having problems with the third since on PostBack, it was populating a text box with the first value everytime, and not the selected item. Can...
I have a listbox that's populated in the Page_PreRender handler:
Dim strResSQL As String
...code to build strResSQL
Dim cmdRes As New OleDbCommand(strResSQL, Con1)
Con1.Open()
Dim myResRDR As OleDbDataReader = cmdRes.ExecuteReader()
If myResRDR.HasRows = True Then
listResource.DataSource =...
I have three dropdownlists, and the third is dependant on the selections of the first two ddls.
If I try to assign a Textbox's value to this third ddl,
Private Sub ddlResource_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlResource.SelectedIndexChanged...
I have a text box, txtGroup, that I'm trying to insert with a ddl value.
When the page loads, I have a label, lblLoad, that will populate with the correct ddl value. When there is a PostBack, there's another label, lblPostBack, that populates with the PostBack value from the ddl. What I can't...
If I have a dropdownlist, and I want to have the first item that shows which says "Select from this list", how do I do that.
So, if I only have one DB row returned, the ddl will have two records:
1. "Select from this list"
2. The DB record
I've done it before, but can't remember.
Thanks!
I have two dropdownlists. The second is populated from the first ddl selection, hence the record selection is filtered via the first ddl to the second ddl.
I need to have Postback on the second to populate a third ddl. If I select the third item in the second ddl, the postback happens and...
Is there anything I have to do or be aware of to get an Access application to run on a Mac?
I've never had to do this, and there have been questions if the app will run on these Apple machines.
Thanks!
I have three records that should be coming back and do come back when I do a SQL string in the Query Analyzer, but the dropdownlist only shows two and ommits the first record. Below is the code:
Dim sqlGrp As String
sqlGrp = "SELECT GC+' - '+GD as Expr2, GC, GD, DC FROM [ResL-Div] WHERE...
I've got a dropdownlist populated via the following:
Con1.Open()
Dim sqlGrp As String
sqlGrp = "SELECT GC+' - '+GD as Expr2, GC, GD, DivC FROM [RLDivG] WHERE DivC= " & "'" & ddlDivision.SelectedValue.ToString() & "'"
Dim myRDR As OleDbDataReader
Dim cmdGrp As New OleDbCommand(sqlGrp...
I know this is probably very basic, but if I want to place a link on my page to download a .pdf file, how would I do that? Anyone have any articles/links where to find out info on how to do this?
Thanks!
I have three dropdownlists. After I pick from the first list, the second list has it's possible records filtered via the first dropdownlist's DataValueField. Once I select from the second ddl, the third ddl has it's records even further filtered.
I can show the DataFieldValue in a label right...
I have the dropdown list that has three fields in it's select statement:
1. The concat of two fields,Res & Desc as "Expr1", which is what the dropdown displays
2. The value field of "Res" which is the Primary Key
3. The field "Desc" which is what I want to populate another cell with
I'm...
I have a dropdownlist with over 300 last names. If I wanted to go to the last name of "Clinton", I can press "C" and it will go to the first value starting with "C", such as "Caanton". Once I press "l", then it goes to the first value that starts with "L" like the last name of "Lake". Is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.