|
Hi guys am implementing a simple authorisation tag for my asp.net site
I googled this:
<pre>
<authorization>
<allow users="John"/>
<deny users="*"/>
</authorization>
</pre>
But I don't understand how to replace this line <pre><allow users="John"/></pre>
I have a login page that takes user name and password, how can I
allow access to this user that has logged in succesfuly..
For instance, replacing that John shown above?
Please help
Thanks,
Mor
|
|
|
|
|
|
Thanks man I will go through the article..
|
|
|
|
|
Hi
how to start SOA with my existing project. what are all the steps i have to get prepare.
modified on Friday, April 16, 2010 5:34 AM
|
|
|
|
|
first of all you need to make all your data related calls through this service layer...
Start with taking out all your calls to DB from UI level and design a middle layer to get data from there for you...
|
|
|
|
|
Thanks for your reply.
i have project in three-tier with presentation layer and bussiness layer and data access layer now i am passing all data releated through bussiness layer to data access layer. now i have read some article and you also given me to form a service layer for DB calls. how can i do that do i need to remove all DB calls for each forms to each seprate layer.
will my new service layer will work on top of 3tiers? if so how many service layers i should have at maximum? is there any other things to group?
|
|
|
|
|
sathimailin1 wrote: how can i do that do i need to remove all DB calls for each forms to each seprate layer.
No, dont remove all the calls... for simplicity you can think of something like replacing your Business layer with service layer (that will handle DB calls).. UI will call this service layer to get data.
Alternatively you can put a Service layer in between the UI & Business too.
sathimailin1 wrote: will my new service layer will work on top of 3tiers?
As said, it wont be above all... it will be in between.
sathimailin1 wrote: if so how many service layers i should have at maximum? is there any other things to group?
One service layer is enough!
Btw, Why do you want to do this, is there a requirement where your application can be handled via various platforms? Three tier is fine if not.
|
|
|
|
|
Sandeep Mewara wrote: Btw, Why do you want to do this, is there a requirement where your application can be handled via various platforms? Three tier is fine if not.
no my application is not going to be in all platforms as of now. so as from your reply i came to know that only if nesscity of running aplications in multiple platforms we need SOA?
Thanks for reply..
|
|
|
|
|
hello.........
I am new in asp.net.I have given dropdownlist and bind data to this one.If I am selecting the value in dropdownlist according their values display into textbox how to do this?
I have written the code is
private void LoadDropdown()
{
tblItemDetails1TableAdapter l_tblItemDetails1TableAdapter = new tblItemDetails1TableAdapter();
DataTable l_tblItemTable = l_tblItemDetails1TableAdapter.GetData();
dropItemName.DataTextField = "ItemName";
dropItemName.DataValueField = "ItemId";
dropItemName.DataSource = l_tblItemTable;
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
LoadCombo();
}
}
Pls help me..........
Thanks.
|
|
|
|
|
From javascript or code-behind?
If you are looking for code behind, then use SelectedIndex_Changed event of dropdown and use,
ddl.SelectedItem.Text
|
|
|
|
|
TextBox1.Text=dropItemName.SelectedItem.Text;
|
|
|
|
|
|
Also make sure that your dropItemName AutoPostBack property is set to true
|
|
|
|
|
For server side, as suggested use SelectedIndexChanged event..
For client side, add the onchange attribute to the dropdown where in the javascript use this onchange to set the textbox value (assign the value that is selected in dropdown)
|
|
|
|
|
in the selectedindexchanged event handler of the dropdown:
Textbox1.Text = DropDown1.Text
|
|
|
|
|
Hi,
We have developed a website named www.firstaidbackup.com. So after uploading all the related pages & also the user area sections, we have decided to test the whole website by using Load Runner.
When we have added the URL & created a Action Script to get the Screenshots & logs from the application. We have run the application by using the Login & Logout on the website. After our Logout process we have stopped the action of recording in Load Runner.
For the precaution purpose, we have cleared our entries in the Database, to escape from any ongoing error or logs.
During the report viewing section, we have found the below mentioned error: -
1. Vuser_init.c (59): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://www.firstaidbackup.com/Index.aspx" [MsgId: MERR-26612]
2. Vuser_init.c (59): web_custom_request("Index.aspx") highest severity level was "ERROR", 7016 body bytes, 472 header bytes [MsgId: MMSG-26388]
Abort was called from an action.
Load Runner Version: 8.1
Internet Explorer Version: 6.0
This site is hosted in a Windows 2003 server with 4 GB RAM
The application was developed using Visual Studio 2005 and SQL Server 2005.
Can you please help us to get the solution of this, because if we are doing testing without Load Runner, then the whole website is working absolutely fine, without any error.
To make sure about the Load Runner Software, whether the software is working fine. We have started using some testing on the same with three different websites. But in those application, we haven't got any such errors from the same.
Awaiting for your immediate help & response to overcome this errors?
|
|
|
|
|
Hello Experts,
I m using report viewer in my asp.net application
All Data on report is displayed. Thus I want the Print Button to be
Enabled on my report viewer.I have set the property of ShowPrintButton to True.But It dosen't appear on report
I want to print report on client side only...
M using RDLC Report..
Please Help..
Thanks in Adv.
Sharing Of Knowledge Provides Solution....
|
|
|
|
|
looks like you are running in local mode, e.g., local reports. You have to be running remote reports for the reportviewer's print button to work.
as mentioned in the below link,
http://forums.asp.net/thread/1490236.aspx[^]
Jinal Desai
|
|
|
|
|
Thanks Jinal
I was running local report..I tried remote reports, the print button is visible....
Sharing Of Knowledge Provides Solution....
|
|
|
|
|
hi please can any one give me any link for all countries and corresponding states...
|
|
|
|
|
Google is the best resource for you.Try Google.
|
|
|
|
|
|
Where from this is a query related to ASP.NET?
|
|
|
|
|
Hi,
I am using iFrame to display output of HTML code. For this I have set URL attribute of iFrame to "http:/somesite/default.aspx". This URL returns a text which gets displyed in iFrame.
But, my client is not happy with using iFrame due to its disadvantages and security problems. Is there any other control which I can use to catch the output of my URL and display on a web page?
I tried <object> tag with "data" attribute. but it does not work. One thing to note here: I cannot use AJAX or Javascript because of business logic constraints. The desired code will be given to end user and he will paste it in his own web site page to see the output returned by URL. Just like ad banner.
Thanks in advance.
|
|
|
|
|
Frameset is also there you can use Frame
Still if you are not happy,
You can get the output using
xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = ProcessRequest;
xmlHttp.open( "GET", Url, true );
xmlHttp.send( null );
}
function ProcessRequest()
{
//Type your code to read response data and put it out on your page
}
Best Regards,
Chetan Patel
|
|
|
|