Dynamically updating parameters

  • Thread starter Thread starter Maziar Aflatoun
  • Start date 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.
 
Maziar,

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

Regards,
Jason S.
 
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
 
Back
Top