|
Hi Guys,
i would like to give access to a windows nt group only to one web page in the web application, rest of the pages won't be accessible to this windows NT Group.
I can set this group to grant authorisation in the web.config file's authorisation section <Allow roles = 'Group name'/>
</authorisation>
But this will grant access to all the web pages and I don't want to check the group name in each page.
Is there a easy way to restrict acess to only one web page for this windows group.
Thanks in advance.
happy coding!
|
|
|
|
|
You need to add a location element to your web.config
<location path="yourpage or subdirectory goes here">
<system.web>
<authorisation>
...
That allows you to set the security for one page or sub directory.
Hope that helps.
Ben
|
|
|
|
|
Hi,
I want to generate PIN number that contains 10 alphanumeric keywords.
e.g.first four keywords are alphabets and others are numbers.
GFNK100001 like that. That PIN number is save for 1st record.
For 2nd record GFNK will be same but after that alphabets numbers should appears in such manner that they should not be same as we used previously and it will take random number from 1000000 to 200000.
Please help me.
Thanks,
|
|
|
|
|
so you want a randomly generated number between 1.000.000 and 200.000 to add to the string "GFNK".
And you want it to be unique.
let me suggest this:
1. generaet a random number in this range
2. check to see if it has been used before
yes: then go back to 1.
no: continue
3. add "GFNK" to your random number, and live happily ever after.
Generating random number and string[^]
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
I develop in asp1.1 & asp2.0 with ajax. Occasionally I have to do some legacy asp junk but for the most part it is now asp2.0. I am still running IE6 and was wondering if anyone had any issues with moving to IE7. We also use ActiveReports from the legacy 2.0 to current version for asp2.0.
Thanks,
Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious.
Vince Lombardi (1913-1970)
|
|
|
|
|
You should install IE7 even if it is just to test what your site(s) look like in this browser. If any of your users are using it and you haven't tested it, they may be experiencing problems that you are not aware of.
|
|
|
|
|
hi!
how to write regular expression in URL rewriting
in which first two words will be separated by hyphen and next three by underscore
For ex: exngkf-gjfdg_dfgf_gfgf_gfggg
thank you.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
Can you elaborate your query Sorry but i am not understanding what yuo want
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Hi there
I want to save an image from the website into a folder on the website while in run time. Please can anyone help me with this code?
Thanks
|
|
|
|
|
|
hi,
How to do URL Rewriting in asp.net in c# .Please guide.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
yogita charhate wrote: How to do URL Rewriting in asp.net in c# .Please google[^].
I took the liberty of fixing your question for you. The above link has plenty of examples to choose from.
--Jesse
"... the internet's just a big porn library with some useful articles stuck in." - Rob Rodi
|
|
|
|
|
How to capture video stream from webcam in server and display it to client browser.This has to be done on webform using asp.net(vb.net).i have seen lot of samples for windows form it is not applicable for webform.Do people have any previous exp.or any suggession in it.Reply to me.
senthil
|
|
|
|
|
How to implement this in asp.net
|
|
|
|
|
hi dear friends ,
I had published a website ,i wants to access that pages in intranet using my systems ip address.
page will opens when i give (http:\\localhost\mytesting\index.aspx)
but not opens when i give this format(http:\\163.254.64.31\mytesting\index.aspx)
page cannat displayed error occurs.
pl help me to solve this plm
hi,this is from D.paranthaman india
|
|
|
|
|
Do you get any error-message? (Enable debugging i web.config)
Du you use the right Host headers?
|
|
|
|
|
i got only page cannot found exeception ,i cant identify the problen inside it .it works on localhost .
hi,this is from D.paranthaman india
|
|
|
|
|
Right because the HTTP server is running on a specific port that's being managed by Visual Studio. Are you using VS 2005?
|
|
|
|
|
yes i am usin vs2005 ,on the same machine
this is my previous try
after run the ipconfig i got my ip address as 192.168.1.2 i using that as http:\\192.168.1.2\publish3\index.aspx then it ask s the username and password i gave id after that" You are not authorized to view this page " this error will occurs i tried using anonymous access also.
pls help me
hi,this is from D.paranthaman india
|
|
|
|
|
I have had the same issue [ALMOST]. I can access the website on my homeserver as localhost and also by the ipaddress - so long as I am on the Intranet (same Network) but I cannot access it from outside (I have opened ports on the firewall to allow traffic on that port) Windows Firewall is Disabled through Windows services - and still no luck, allow anonymous logins in IIS and still no luck..
I have read numerous articles and google searches tried all the things that were said, and I am writing this now....
Is there anything any one could tell me that might be prohibiting me from viewing the website from another computer - I have the virtual server set up in my firewall - what else do I need to do.
My FTP site is accesible from outside world why not WEB..
Does it use another port besides 80 ??
|
|
|
|
|
it seems to me that 163.254.64.31 is a very strange 'local' address. I'm afraid this might be your internet IP address, and then it's logical that you can't view it.
To find out your local intranet IP, open up the command prompt (start > run > cmd) and type IPCONFIG.
Use the IP you find here instead, and try it again. Also try with your computername.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
joon vh. wrote: after run the ipconfig i got my ip address as 192.168.1.2 i using that as http:\\192.168.1.2\publish3\index.aspx then it ask s the username and password i gave id after that" You are not authorized to view this page " this error will occurs i tried using anonymous access also.
pls help me
after run the ipconfig i got my ip address as 192.168.1.2 i using that as http:\\192.168.1.2\publish3\index.aspx then it ask s the username and password i gave id after that" You are not authorized to view this page " this error will occurs i tried using anonymous access also.
pls help me
hi,this is from D.paranthaman india
|
|
|
|
|
Hi everyone,
Can someone help me? is there a way The windows login can be saved automatically into database whenever a user uses my website? I'm working with datagrid and c# in ASP.Net.
Thanks
|
|
|
|
|
|
Thanks,
But when I try the example on a new webform I get domain/username. But it's not inserted into the database my problem is getting it into the database I have a row where I want it to be saved so that every one can read who wrote a particular message. How should I do it. I have this code writen for the column:
System.Web.UI.WebControls.TextBox st6=new System.Web.UI.WebControls.TextBox();
st6=(System.Web.UI.WebControls.TextBox)e.Item.Cells[0].FindControl("txtname");
myCommand.Parameters.Add(new SqlParameter("@Name",SqlDbType.Text));
myCommand.Parameters["@Name"].Value=st6.Text;
Thanks.
|
|
|
|