Chopstik,
I got the formatting correct, and now see the URL with both values....
I want to pull out the SAID value into a label on the page.
lblSAID.Text = Request.QueryString("SAID") isn't working for the label Load event...nothing shows up
My URL looks like...
Getting:
" The server tag is not well formed. "
NavigateUrl=""<%# "RL.aspx?id=" & DataBinder.Eval(Container, "DataItem.UniqueIdentifier") & "SAID=" & lblSAID.Text.Tostring %>"">
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=" &...
I figured it out...I just kept the Request.QueryString value in a hidden label, then if the user cancels, all I have to do is repost the page. May need to use the state view instead since that won't call another trip to the db...thanks!
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!
jbenson001,
Isn't FindControl a function, and should be like:
FindControl(ddlP3.SelectedValue.ToString())
I keep getting errors saying the value of the control can't be converted to a string
I put this in the label load handler:
lblHelp.Text = <%# Container.DataGrid1.Findcontrol(ddlP3.SelectedValue.ToString())%>
I must have some syntax error...I get the blue squiggly line of "Expression Expected
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...
ca*msm,
I tried in the Page_Load handler
...on PostBack
Dim ddlP3 As New DropDownList
DataGrid1.FindControl("ddlP3")
lblddlP3change.Text = ddlP3.SelectedValue.ToString()
I can't get the ldlddlP3change.Text value to change.....
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...
checkai,
This will do the job. Thanks for your help. Basically, in the end all I just turned the "AutoPostBack" to False for this 3rd ddl.
What I have to do now, is take the information in the ID="" string and post that in the DataGrid on the Request.QueryString page. Any tips on how to do...
Right on...thanks checkai!
I'll try this and let you know. This could have solved all my head-ache for the past couple days with this goofy third ddl.
I still want to know why it's resetting to the first item, rather than the one I selected...oh well...it'll come hopefully some day....movin' on!
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.