Is it possible to force windows authentication on one aspx but not another in the same application? So... Can I place <authentication> tags in the aspx itself and how do I configure IIS if I don't want to force authentication for every page in the application? Thanks. -Brad
I've stripped down the code until I get this problem fixed, but here's what I have been using for addminiagenda.ascx:
<%@ Control Language="VB" %>
<%@ import Namespace="system.data" %>
<%@ import Namespace="system.data.oledb" %>
<script runat="server">...
i've stripped down the code until i get this problem worked out. here's what i've been using for addminiagenda.ascx:
<%@ Control Language="VB" %>
<%@ import Namespace="system.data" %>
<%@ import Namespace="system.data.oledb" %>
<script runat="server">
dim...
I'm using "Web Matrix" from www.asp.net -- no intellisense.
Not sure i understand your point about the namespace... addminiagenda.ascx is a file in the same directory as the page that this code is running in. I don't know how namespaces apply to user controls...
Tried your...
I'm struggling, trying to declare a user control in code. ASP.NET seems to accept the declaration, but won't let me access any methods or properties of the object.
For example,
<%@ Register TagPrefix="uc0" TagName="addminiagenda" Src="addminiagenda.ascx" %>...
One option is to iterate through listitems, like:
dim alistitem as listitem
for each alistitem in mydropdownlist.listitems
if alistitem.value = myvaluevariable then
mydropdownlist.selecteditem = alistitem
end if
next
let me know if that is not what you wanted. -b
Problem solved. MANY thanks, mark.
I don't understand why AddHandler doesn't work like other procedures in vb.net (didn't i learn that parantheses are *required* for arguments in vb.net?), but here it:
AddHandler alb.command, AddressOf btncreateclick
alb is the name of the linkbutton...
thanks. i jumped the gun and replied to my post before i read yours...
addhandler method looks good, but i am having trouble using it. here's what i have - can you tell me what's wrong?:
addhandler(alb.Click,Addressof("btncreateclick"))
----
alb is the linkbutton
btncreateclick is...
let me clarify:
i am programmatically creating several linkbuttons on the page. if i use:
sub buttonclick(...) handles mybutton.click
end sub
then the event is only triggered for the last linkbutton that i added (for which the variable 'mybutton' is still handling the linkbutton).
how do i...
I am programmatically creating linkbutton controls, but I don't know how to handle events for these controls. I am using VB.NET... any suggestions?
-brad
This is trickier than I thought, since you can't use code render blocks within server tags (I think!).
here's an example of what i want to do:
<asp:repeater id="arepeater" runat="server">
<itemtemplate>
<asp:repeater id="anotherrepeater"...
This should be simple, but (as usual) I am having trouble:
I am successfuly using windows authentication. BUT... I want in my aspx to grab the user name of the authenticated user. I am using system.security.principal.windowsprincipal, but it is giving me the name of the user that the code is...
Does anyone have suggestions on the best method for pushing Excel data to an ADO.NET Dataset? I am trying to avoid Excel automation... maybe there's something in System.XML that I could use? I'm interested in your suggestions. Thanks. -Brad
Anyone have a good reference for the Powerpoint object model? I am using msppt.olb but can't figure out how to even open a file... and I'm just trying to do a SaveAs. Thanks in advance. -b
Can I import COM objects in ASP.NET/VB.NET the same way I import COM+ objects?, e.g., import namespace="msppt.olb"
Do I have to drop this object in /bin? Do I have to wrap it in some way so that it is recognized by .NET? And what is the difference between a .olb and a .dll? Are there...
I am using ASP.NET Web Matrix (from www.asp.net) for one application (although I also have VS.NET installed on my development machine).
The weirdest things is happening:
Occasionally (but far too often -- sometimes twice in the same day), the HTML for a web form disappears! The code is still...
I'm stumped...
login.aspx authenticates user and sets a the "admin" cookie to "true" before redirecting (response.redirect) to main.aspx.
the problem:
i load controls on main.aspx slightly differently depending on the value of the "admin" cookie. if a user enters...
Anyone know of software that can generate all the HTML pages from a web site that would be generated if you were to go through and click all the links? I know there is stuff like this out there, I just don't know where to start.
And I wouldn't even know where to start if I wanted to do this on...
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.