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
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.