Hi, using VB.NET, I am trying to load a UserControl into a PlaceHolder dynamically. In the WebForm I added the following directive:
<%@ Reference Control="../UserControls/SquareRoot.ascx"%>
In PageLoad I have this piece of code:
Dim uc As SquareRoot...
It's a web app. and I solved the problem. Here's how I did it. This goes in the Head tag of HTML:
<script language="javascript" type="text/javascript">
function newWindow(bookgif)
{
window.open(bookgif,"name","width=600,height=600");}</script>
Then for the button it looks like...
Hi everyone, I opened a form using a java script. There is a button on the form that I want to use to close the form. I tried putting this in the Button_Click event:
Me.close() when I do this, I get an error that says that close is not a member of my application.
Then I tried me.unload()...
Is it possible to call a javascript new window using a Button control like you would use a Hyperlink control? I have a list of buttons on my form and I would like for the control that opens the window to be a button as well rather than a HyperLink control. Please let me know how this can be done...
Ok I got it. I put a variable in the page like c8amsm suggested rather than the sub routain... it works fine now. Thanks for the help. It now increments the page each time the user click on the button. Thanks again for all your help.
Ok I tried to use the httpContect.Current but I don't know how to use it. Here's what I tried.
httpContent.current.session("sessionVariable") = value
I'm sure it's totally wrong as this is a level that I've never programmed at.
How can I use it? Thanks again!
I don't know if I've been trying to increment the couner from the page. Do you mean just inside a sub routain? I will try the httpContent.Current tip. Thanks I'll let you know if I was successful.
I tried a session, application, and cache variable but that too is illegal in this sub. Here’s the error message: You cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class.
Hi, I’m trying to increment a number each time the user click on a button. My code happens to be in a button that is a Public Shared sub. Because it is a public shared, I can’t access the query string in the usual manner like this:
Response.Redirect("default.aspx?question=1")
Dim num As...
Hi I am trying to get my program to respond to changes in the parameters in the URL, specifically a label on the form. The form is my default.aspx form and I have a label on it that I would like to be updated after I change the URL.
This is what I have in the Form Load routine:
Dim...
Hi, I am trying to change the contents of a label control using a hyperlink. The hyperlink and the label controls are on different UserControls.
Please help, Thanks.
Yes I do mean a SqlDataReader and yes I want to get the data from a single row like row 5 and put it in my textbox. Then when my user is ready to see the next record, he/she can click a button to advance to the next row in the dataSet or SqlDataReader. I haven't done so yet but I'll take a...
Hi, I'm calling a stored procedure which return a sqlReader object. I would like to know how to retrieve a specific row or record from the reader and store it in a textbox. Can anyone help me with this or show me a link that may be able to help?
Thank you so much,
BlueBlade
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.