473,386 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dynamically updating parameters

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.
Nov 18 '05 #1
2 1000
Maziar,

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

Regards,
Jason S.

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:4v*********************@twister01.bloor.is.ne t.cable.rogers.com...
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.

Nov 18 '05 #2
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

"Maziar Aflatoun" <ma***@rogers.com> wrote in message
news:4v*********************@twister01.bloor.is.ne t.cable.rogers.com...
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.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Justin | last post by:
I am trying to do a simple update of a database using a stored procedure. I have get the following error when executing the code: "Procedure or function UpdateDetails has too many arguments...
22
by: Mal Ball | last post by:
I hope I have the right forum for this question. I have an existing Windows application which uses a SQL Server database and stored procedures. I am now developing a web application to use the same...
2
by: susan.f.barrett | last post by:
Hi, Despite me being able to type the following in to SQL Server and it updating 1 row: > updatestockcategory 1093, 839 In my code, it is not updating any rows. dataSet = new DataSet();
5
by: Michael | last post by:
Hi Everyone, I've been having a problem with the Gridview control. I have posted a few messages relating to the issues, but I have a general question. Does the Dataview control have to be bound to...
6
by: Rich | last post by:
Dim da As New SqlDataAdapter("Select * from tbl1", conn) dim tblx As New DataTable da.Fill(tblx) '--works OK up to this point da.UpdateCommand = New SqlCommand da.UpdateCommand.Connection =...
3
by: adz1809 | last post by:
I'm trying to update a record using "System.Data.SqlClient" in asp.net. Here is my code: <%@ import namespace="System.Data" %> <%@ import namespace="System.Data.SqlClient" %> <Script...
2
by: Smurfas | last post by:
What's wrong? Compiletor don't show anything, but whet I start program show this error: "Error updating the employee details!" protected void Button1_Click(object sender, EventArgs e) ...
0
by: steve | last post by:
I have been fighting with trying to update a GridView for a while. I don't want to use the "built-in" way to do it because I am using business layer methods for updating and deleteing and I don't...
5
by: Bill Schanks | last post by:
I have a winform app (VB 2005) that allows users to export data to excel, make updates to the excel file and import the data from that Excel file and update the database. My question is: Is it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.