|
hi, i would want to know if my code is correct because it cannont work. below is my code. i want
to remove the duplicate in the listbox which is added from the dropdownlist. i try the code below it does not have any error but it does not work. please advice. thanks.
Dim actor As Integer
actor = Me.lstbxActor.Items.Count
Dim a As Integer
Dim ar As Integer
Dim Actorvalue As String
Actorvalue = ""
For a = 0 To actor - 1
For ar = 1 To actor
If (a = ar) Then
Me.lstbxActor.Items.Remove(a)
End If
Next
Next
|
|
|
|
|
i am doing an application in which i want to show a pop up box if the database is not having any records....
but i used ....
Response.Write("<script>alert('No Current Data')</script>");
but then it shows everytime a new event is fired....
i want it to display at page load and only for one time ...
can anyone help ....
thanks in advance...
SAJAN A PILLAI
C#.NET Programmer
TELESOFT INDIA PVT LTD...
BANGALORE
|
|
|
|
|
check for postback on your page load event then write your code
if(!IsPostBack)
{
Response.Write("alert('No Current Data')");
}
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Hi,
Eva here
use ASP.NET 1.1 With C#,
You know how to set the web form size ?
I just need the form show short information only , so just need display small window for it..............how?
|
|
|
|
|
|
DirectoryEntry searchRoot = new DirectoryEntry
DirectorySearcher search = new DirectorySearcher();
ArrayList allUsers = new ArrayList();
DirectorySearcher search = new DirectorySearcher(searchRoot);
search.CacheResults = true;
search.Filter = "(&(objectClass=user)(objectClass=person))";
search.PropertiesToLoad.Add("samaccountname");
search.PropertiesToLoad.Add("displayname");
SearchResult result;
SearchResultCollection resultCol = search.FindAll();
I used the above code to retrive active directory usernames and loginIds .Its working fine from local machine but not working from remote machine.
It is giving the erroe"An operations error occurred "
If any one has a solution for this please help me
Prajin
|
|
|
|
|
I am working in a project for an intranet network, but the users have to provide username and password to enter into the application.
1) Is Windows authentication the best suited for this?
2) Can Membership.validateuser() method be used with this?
3) If so, how can I use the alternate code
for 'FormAuthentication.RedirectFromLoginPage(...)'?
Please help me with an answer. Thank you.
|
|
|
|
|
If you want that the users have to enter username and password then Windows authentication is not the right choice. You would use Windows authentication to allow access to the web application by using the login information of the host system.
I'd suggest to use Forms authentication to force an explicit login.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Thank you for the reply.
But, using Windows authentication and using a table in a custom database to check the users credentials to enter this particular application. Is that a bad solution?
|
|
|
|
|
Surely not a bad solution, bad if you want that the users have to explicitly log in on a login form then I'd still suggest Forms authentication.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Got one more doubt. If we are using Forms authentication cookies will have to be used. In an intranet environment is that common?
In windows authentication do we use cookies at any place? atleast in using roles?
Thanks a lot for the help
|
|
|
|
|
Yes it is true that normally Cookies are required to run Forms authetication. Forms authentication can be run cookieless but I would not suggest this (the sessionkey is integrated into the URL).
I cannot tell you whether using cookies on the target intranet is an issue. I would say no but I don't know the restrictions on that Intranet.
Regards
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
The problem is based on intranet based application.
i was connecting the sql server 2000 with asp.net vb.net 2005.
There was no problem in connecting the (front end - back end ) at the server machine.
The problem arises , when the tries to connect the front end with the back end at the client end machine.
|
|
|
|
|
what problem did you get wile connecting to the database from the client machine
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Its possible to tell datagrid columns visible false in java script...,
If yes plz tell me how to do that one...,
How to mention the following codes in javascript...,
dgrdmain.Columns(0).Visible = False
dgrdmain.Columns(1).Visible = False
Advance thanks,
Magi
|
|
|
|
|
If any one knows Excel export using XML Templates from dataset or 2 dimesional array, Please help me on this
|
|
|
|
|
What exactly is your question?
We used an Excel XML template that was filled with a XSLT with data from XML data from a DataSet.
XML Data and Excel XML Template are inputs to the XSL transformation that generates the Excel XML File.
Maybe this link will help you: http://www.bbv.ch/pdf_files/system_event/2005_XMLto%20Excel.pdf
Happy Programming
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Sorry to confuse you, Thanks for your help. I saw the link.
I would appreciate if you send me some code snipet on this
Thanks in advance
|
|
|
|
|
Sorry, I can't send you Code about this
But I hope you get the idea from the presentation.
Happy Programming
Urs
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
Its ok .
Thank you very much for your help.
|
|
|
|
|
Hi All,
I would like to know that is there any sample or help where in i can edit the treeview. like go and add,delete, modify directly inside treeview?
Any suggestions or help on this?
Thanks and Regards,
Biju S
|
|
|
|
|
Hi, i have problem with ASP.NET Send email, i used in my local machine it work preperly, but when i upload to the server i got an error "Could not access 'CDO.Message' object"
ASP.NET is Enalbled
Socheat
|
|
|
|
|
If you are using SmtpMail.SmtpServer, make sure Anonymous access is allowd. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Authentication button. Be sure "Anonymous Access" is the only checkbox checked. Close down all dialogs, and restart the SMTP Service.
Hope this will solve your problem.
Regards,
Satips.
|
|
|
|
|
It not my own server, how can change it
Socheat
|
|
|
|
|
Did you see that Norton is blocking in the server.
Regards,
Satips.
|
|
|
|