I am experiencing the same problem (not being able to see events from the UserControl on the web form), but unfortunately, the link provided here gives me only a server error.
Anyone figure this out?
Thanks,
Stacey
I am trying to layout my datagrid so that the details of the record span 4 columns of the rest of the data.
So I want to have:
column | column | column | column
span column details written out across here
column | column | column | column
span column details written out...
Thanks for all of the suggestions.
Link9, I had to laugh at the include file suggestion, as that is how we manage this now in Classic ASP. :-) And it is getting to be quite a headache!
Our problem with the user control idea is that some customizations will require changes to the page - html, layout, add fields, remove fields, etc. We were hoping that this could be accomplished through inheritance, with overriding methods, etc.
I guess we will just continue to think about how...
We are beginning a project to recode our application in ASP.NET, and are just trying to sort out our architecture.
We have a PageTemplate class that has our interface elements, and that is inherited by our base product. This all works great, having the PageTemplate use the Control collection...
Hello. I have a timer script that pops up a confirm box after a while to inform the user that there has not been any activity (mousemove or keypress) in quite a while and would they like to remain, or log out. That part works great.
The tricky part is that some of my pages launch pop-up...
Are you sure the SQL statement in this section is right?
If Session("blnValidUser") = True and Session("Admin_ID") = "" Then
Dim rsPersonIDCheck
Set rsPersonIDCheck = Server.CreateObject("ADODB.Recordset")
Dim strSQL...
Sorry, I forgot to increment the x!
<%
dim x, fieldStyle
%>
<P>
<TABLE BORDER=1>
<TR>
<% For i = 0 to RS.Fields.Count - 1 %>
<TD><B><%= RS(i).Name %></B></TD>
<% Next %>
</TR>
<%
x = 1
DO While Not RS.EOF %>
<TR>
<%
if x MOD 2 = 0 then
fieldStyle =...
You can also use the MOD function for something like this:
<%
dim x, fieldStyle
%>
<P>
<TABLE BORDER=1>
<TR>
<% For i = 0 to RS.Fields.Count - 1 %>
<TD><B><%= RS(i).Name %></B></TD>
<% Next %>
</TR>
<%
x = 1
DO While Not RS.EOF %>
<TR>
<%
if x MOD 2 = 0 then...
You have to submit the page back to the server in order to call a server-side ASP function or sub.
So, for instance, you could do something like this:
<%
dim strAction
strAction = Request.form("hdnAction")
if UCase(strAction)="ADD" then
call AddNew()
end if
sub...
You can use Javascript also. On the click event of the button that you want to submit to a different page, call a function like this:
function btnChangeLoc_onClick(){
document.theForm.action = "newUrlHere";
document.theForm.submit();
}
Because you are inserting a SQL construct instead of a value, you don't need to use single quotes:
"SELECT " & u & " CIDresponse FROM t_CircuitID"
Also, make sure that your spacing is right. After building your string, write it to the screen... if it looks right, copy it...
Well, you have several select statements in this page. First thing to do would be to figure out where you are losing the newly inserted records. Check your data to ensure that it matches...
For instance, in this select
rsttrv.Open "SELECT * FROM board WHERE ThreadP=0 ORDER BY msgID...
Did you say that the record is being inserted in to the database? If so, this is not where your problem is.
Is there an error generated? If so, what is it?
Are you not getting back the results you expect? If so, are the results you expect in your database? If the records are there, post...
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.