Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Lewis Wang [MSFT] #1
RE: passing parameters
Hi Michael,
I think you want to modify the links in web control programmatically.
You can add several Hyperlink controls to the user control, and set their
property to “public” in the code behind(*.ascx.cs). Then, in the code
behind of web page, we can modify the links like this:
private void Page_Load(object sender, System.EventArgs e)
{
WebControl wc=(WebControl)this.FindControl ("WebControl1");
wc.HyperLink1 .NavigateUrl ="webform1.aspx";
wc.HyperLink1.Text ="Test";
}
//Note: WebControl is the class name of the user control.
//WebControl1 is the id of the user control.
If I misunderstood your concern, would you please provide more explanations
on your requirement? Thank you.
Best Regards,
Lewis
Get Secure! - [url]www.microsoft.com/security[/url]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Michael Tissington" <michael@nospam.com>
| Subject: passing parameters
| Date: Thu, 31 Jul 2003 15:07:55 -0700
| Lines: 17
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <edn$ZC7VDHA.1180@TK2MSFTNGP11.phx.gbl>
| Newsgroups:
microsoft.public.dotnet.framework.aspnet.buildingc ontrols,microsoft.public.d
otnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: antelope.oaklodge.com 63.67.71.5
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:13592
microsoft.public.dotnet.framework.aspnet.buildingc ontrols:6875
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingc ontrols
|
| I have a web control that is basically a complex TABLE structure that is
| used on multiple pages as the menu.
|
| Usage on each page is identical except for a single table row which
consists
| of a bunch of <a> elements.
|
| How can I pass this to my web control ?
|
| Thanks.
|
| --
| Michael Tissington
| Oaklodge Technologies
| [url]http://www.oaklodge.com/technology[/url]
|
|
|
|
Lewis Wang [MSFT] Guest
-
Passing Parameters To CFC
I am testing how to return data from a CFC within Flash Forms. I have a simple <cfselect> tag that will hold data returned from a CFC. This CFC... -
Question on Passing URL Parameters
Thanks in advance for any responses to this question! I have a dynamic table (in a master page using javascript and asp) that links to a detail... -
cflocation - passing parameters
Hi, Is it possible to do the following with CF? If not how can it be done. <cflocation url='template.cfm?id=#id#'> Thanks in advance -
Passing Parameters into NEW()
Is there any way that the NEW() of a web service can accept parameters ? I would like to pass a boolean to indicate to the webservice that I am in... -
Help Passing Parameters
Before going to the third script I'd suggest storing the variables in session variables. Here's how I generally do login scripts. Perhaps have... -
Brian #2
passing parameters
is it possible to pass parameters in html like in asp.... products.asp?cat=3
.... what i want to do is when i click on a html link, it opens up news.html,
and then opens up a particular news article in an iframe on that page.
Thanks,
Brian.
Brian Guest
-
Tom Kaminski [MVP] #3
Re: passing parameters
"Brian" <quigleyb@iol.ie> wrote in message
news:caus8j$qhg$1@kermit.esat.net...products.asp?cat=3> is it possible to pass parameters in html like in asp....news.html,>
> ... what i want to do is when i click on a html link, it opens upThere is no server-side processing in HTML ...> and then opens up a particular news article in an iframe on that page.
--
Tom Kaminski IIS MVP
[url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]
[url]http://mvp.support.microsoft.com/[/url]
[url]http://www.iisfaq.com/[/url]
[url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
[url]http://www.tryiis.com[/url]
Tom Kaminski [MVP] Guest
-
Bullschmidt #4
Re: passing parameters
Don't know if this might hopefully help at all.
Example URL with a querystring:
[url]http://www.mysite.com/mydir/mypg.asp?myvar1=hey&myvar2=ho[/url]
Because a variable might contain some odd characters like spaces, it's
usually a good idea to use Server.URLEncode when creating a querystring
from a variable:
<a href="http://www.mysite.com/mypage?id=<%=
Server.URLEncode(objRS("MyIDFldFromDB")) %>">objRS("MyIDFldFromDB")</a>
And in the page that is opened you can use Request.QueryString("id") to
get the value of id.
Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
[url]http://www.Bullschmidt.com[/url]
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex [url]http://www.devdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bullschmidt Guest



Reply With Quote

