|
Hi,
Very simple before signing out check which type of user is selected then based on that redirect to appropriate page.
If usertype = admin then
response.redirect("adminlogin.aspx")
else
response.redirect("userlogin.aspx")
end if
Hope that would do for you.
Zafar Iqbal
|
|
|
|
|
Why do you need two logins ? An admin should be an admin by virtue of their privileges, based on their username/password. Also, putting the message on the URL is a bad idea.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am having some image along with date of employee in sql server 2005.
i want to show all the information along with image to my web application.
how can i retrive image from database and show it to web page on specfied location.
can any one solve my problem
ajeet
|
|
|
|
|
Hi,
Have a look on following link
http://www.odetocode.com/Articles/172.aspx
Hope this will help sort out things.
Zafar Iqbal
|
|
|
|
|
hi!
Actually i upload my jobs site demo www.jobsfreejobs.com On First Page user select the country and enter into the site but there an error occur :
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
but i am giving all correct information i.e username, password
Please visit www.jobsfreejobs.com and tell me the problem
|
|
|
|
|
only Select your country and a combobox contains Pakistan is there
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
please visit again it.... www.jobsfreejobs.com
|
|
|
|
|
I can't see any way to get past the first page. The error has nothing to do with the details you enter, its a problem with the SQL Server connection your application is trying to open (as is evident from the error message)
|
|
|
|
|
now try again to enter the site www.jobsfreejobs.com
|
|
|
|
|
|
No-one can tell you the problem by looking at the site, we need to look at code. If you want to advertise your job site, talk to the site admin about buying advertising. If you need help with your code, post it here and we can help you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Well Said CG.
Regards,
Satips.
|
|
|
|
|
Hi,
I am using a TreeView control in the ASP.NET 2.0 my problem is that I am passing a TreeNode value from one function to the other and I have to add some child node to that node whose value i have passed. I am not getting how I add child nodes to the parent node whose only value is known.
Please help me in this regards,
Thanks
|
|
|
|
|
your question is not much clear.
If u explain it in more detailed, may i or some one other person will be in poition of solving this problem
-<>-shoaib-<>-
|
|
|
|
|
Hi Shoaib,
Thanks for quick reply.I have solved that problem,but i have another problem.I am using a COM dll in my ASP.NET 2.0 application.I have added it through Add Reference. I am developilng a Web Service, when I am using that from web application I am getting the following error
Creating an instance of the COM component with CLSID {1FF3BBCC-CE35-47DD-BA47-EFD2B93AF2EC} from the IClassFactory failed due to the following error: 80010105.
Can you help me in this regards?
Thanks
sunil
Sunil kumar verma
Software Engineer
|
|
|
|
|
Try this
string treeNodeValue="value of the tree node";
int intTreeCount=0;
foreach (TreeNode tn in TreeView1)
{
if (TreeView1.Nodes[intTreeCount].Value == treeNodeValue)
{
Code for Adding child nodes here...
}
intTreeCount++;
}
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
Hi,
I am using a TreeView control in the ASP.NET 2.0 my problem is that I am passing a TreeNode value from one function to the other and I have to add some child node to that node whose value i have passed. I am not getting how I add child nodes to the parent node whose only value is known.
Please help me in this regards,
Thanks
Sunil kumar verma
Software Engineer
|
|
|
|
|
I've seen this same question in a few places but no answers so I'm really hoping someone can help cause it's kinda urgent (i.e. my boss is really on my case about it!)
I have created an asp.net web service project with Visual Studio 2005. It works perfectly when run within the Studio environment. I now need to deploy it and added a web setup project to my solution. But when I try to add the "Primary Output" the only option I am presented with is the "Content Files". Where is the "Primary output"?
Everything I've read indicates there should be one and trying to install my web service onto my PC doesn't give me a working Web Service. i.e. when I try to navigate to the web service I get the "Cannot find server" page. The implication is that I'm missing something (Primary Output?) from my msi ? or have I failed to configure something in the IIS correctly?
Apologies if I'm being a bit thick but my boss thinks just cause I've got 10 years experience coding C++ on Unix that I should know how to do this too!
Thanks in advance
Steve.
|
|
|
|
|
Hello To Every One,
How to show a given text value in combo box if it is in collection of combo box..
Thank You..
|
|
|
|
|
Hi,
If this value is in text section of that combo then use following to find that item and set returned items Selected property to true.
List item = <yourcombo>.Items.FindByText("yourtext");
if (item != null)
item.Selected = true;
If that is in its value section then use following
List item = <yourcombo>.Items.FindByValue("yourvalue");
if (item != null)
item.Selected = true;
Hope this solves your issue.
Zafar Iqbal
|
|
|
|
|
hai every one
i want run aspx page to remote iis
i should copy all source file and paste to remote iis machice
while run the project i will get below mention error
please give me the solution
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
thanks& regards
Dhatchinamoorthy.R
9894824838
|
|
|
|
|
Just do what it says - modify your web.confog file as instructed and then you will see a detailed error message which should point you in the right direction.
Don't forget to change it back again afterwards!
Fred
|
|
|
|
|
Hi,
I have i problem for a long time and can't resolve it.
Here is where it happens:
error page
I use external .NET controls on the page. When i remove them everything works fine. Expect, i need to set permissions for this assemblies(.dll). Please ,advice anybody how can i do it. I'll be very grateful, cause i tired of strugling with this problem for many weeks.
|
|
|
|
|
Have you deployed in the system?
or
Testing from your development server?
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
on the local server works fine but on remote server failed , cause secutiry trust level="Medium" not "Full" by default
|
|
|
|