Dynamically updating parameters

  • Thread starter Maziar Aflatoun
  • Start date
M

Maziar Aflatoun

Hi everyone,

Here is the basic idea. I have a form that opens up a new window
ViewNote.aspx sending 3 parameters.

<INPUT class="buttonsmall" id="NewNote1" type="button" value="New Note"
name="NewNote2" onclick="javascript:var
w=window.open('ViewNote.aspx?NID=0&SID=12&AID=200',null,'width=650,height=38
0,location=no')">


Now how can I make it so that the NID, SID and AID values are generated
dynamically? like in asp you would use NID=<%=value%>

Is there a better way to do this making it a server control? (please note
that I need to specify the size of the window)

Thank you
Maz.
 
J

Jason S

Maziar,

The asp.net way would be to use the HTMLAnchor class and set the Href
property in your code.

Regards,
Jason S.
 
M

Munsifali Rashid

You could use public variables, and then reference these public variables in
the ASPX page using the <%=value%> syntax as you would in classic ASP. But,
I don't think this is the recommend way of doing things...

Mun
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top