|
Because I am using Self Join. Now it is working I replaced "m2.fname" with "fname". Thank you for your reply.
Chaitra N
|
|
|
|
|
hi Friends
anybody know Something @ UnauthorisedAccessException?
I m Creating a Directory From CodeBehind
if (!Directory.Exists(Request.PhysicalApplicationPath + "\\References\\" +<br />
this.MeetingID + "\\"))<br />
Directory.CreateDirectory(Request.PhysicalApplicationPath + "\\References\\" +<br />
this.MeetingID + "\\");<br />
<br />
fulUpload.SaveAs(Request.PhysicalApplicationPath + "\\References\\" <br />
+ this.MeetingID + "\\" + fulUpload.FileName);<br />
It is working fine on Casini , but if i keep appln in IIS this code gives me above Error.
please help me if anybody know @ this Error.
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
The aspnet user must not have authority to create this directory...
|
|
|
|
|
Because ASP.NET is not having access to the specified folder. Use Server.MapPath() to specify files reside inside your website.
|
|
|
|
|
how can i open a file which is on the server
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
I have 2 types user. for example : managers , customers. how can I use "form authentication" to login these users separately. I don't want my customers access to manager pages or managers directories.
but when I create a login page and use <deny users="?"> tag in my web.config file, customers can access to manager directory because they have Authentication Ticket. how can I distinct users from each other?
mehran
|
|
|
|
|
if u r using VS.net 2.0
take a login control drag it to ur page
& take a registation control to register ur page
go to .net command prompt type aspnet_regsql
it will open a wizard follow that to ur working DB
now add some attributes to ur web.config
authentication mode="Forms"
forms loginUrl="Login.aspx" name="D1" timeout="60" /forms
/authentication
authorization
allow users="*"/
/authorization
membership defaultProvider="MyProvider"
providers
add name="MyProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="BankDBConnectionString" passwordFormat="Clear" enablePasswordRetrieval="true" /add
/providers
/membership
roleManager enabled="true" defaultProvider="MyRoleProvider"
providers
add name="MyRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="BankDBConnectionString"/
/providers
/roleManager
profile defaultProvider="MyProfileProvider"
providers
add name="MyProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="BankDBConnectionString"/
/providers
properties
add name="Theme"/
/properties
/profile
this will give u Roles,Members and Profiles
Now create two roles as u hv two
Rols.
//u will get something like createrole("")
make two folders for two roles respective page in respective folder
now make two seperate web.config for these folders
and write
authorization
allow roles="Staff"/
allow roles="Manager"/
deny users="?"/
/authorization
as ur roles
thats it........
please read code care fully i m not showing tags so please interpret it right.
Amit Metkar
3i-infotech, Mumbai.
|
|
|
|
|
Hello man see this example u can understand and knows clearly about forms authentication.
www.xoc.net this is site and look on that forms authentication.
I hope it will work for u
Happy coding.
|
|
|
|
|
i created a web user control.now i want that control to come into the toolbar.
what should i do?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
svae this user control in gac
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
yaar woh kaise karu?
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
sorry its not possible only dll and exe add on tollbarrrrrrrrrrrrrrrrrrrrrr
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
piyush......how to add it in web form
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
why u want to add
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
really u don't know how to add in web from its so simple
mouse se pakado user control ko aur web form me dall do add ho g
Piyush Vardhan Singh
Programmer
TAS NewDelhi
India
9313077379
|
|
|
|
|
I CREATED A WINDOW USER CONTROL AND ADDED IT'S DLL AS A REFERENCE INTO THE WEB SOLUTION.
CAN I ADD THAT CONTRO;L IN THE TOOLBAR IN WEB SOLUTION
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
This is a common forum so try to use a universal language. Do not think that everyone knows your language. It will irritate people and they will not reply to you
|
|
|
|
|
SORRY
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Ok if the question and answers are in English other members can refer it
|
|
|
|
|
yes i understand, i will keep it in mind next time.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
You must think over it Before Posting it in the Forum. Since it is Universally readed so everyone should understand what is there ?
SSK.
|
|
|
|
|
ok yes sir.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
Go with the English,this is Forum.
Hope you guys got it?
SSK.
|
|
|
|
|
OK SORRY
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|
|
All web user controls in the solution are automatically added to the toolbox when in design mode.
If it does not work try a clean and rebuild of your solution.
-^-^-^-^-^-
no risk no funk
|
|
|
|