|
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
|
|
|
|
|
Example
document.getElementById('divtodiaplsy").innerHTML=xmlHttp.responseText;
do some R & D on it and it works
Best Regards,
Chetan Patel
|
|
|
|
|
You should have updated your previous reply other than replying again.
All your comments related to one thing would had been at one place then.
|
|
|
|
|
I've been dealing with this myself for quite some time. Though some people may frown upon the practice of using iframes, sometimes it is the only (or at least the most sane and feasible) way to "interface" two standalone software systems. Also, there is rumor that IFRAME may become deprecated, but the jury appears to still be out on that. So, it's a good thing to start examining alternatives now.
That said, here is an article that may interest you:
http://www.w3.org/TR/WD-frames-970331[^] - The most pertinent part is about halfway down. It's a bit technical, but worth the read.
Here are more links that may help:
http://intranation.com/test-cases/object-vs-iframe/[^]
http://www.thescripts.com/forum/thread568067.html[^]
http://www.webmasterworld.com/forum21/6539.htm[^]
http://www.456bereastreet.com/archive/200612/dump_iframes_and_use_object_elements_instead/[^]
Second Method is described below.
The use of iframes is an ongoing controversy. Are they good? Are they bad? I can honestly say I’m unbiased on this. I feel that iframes aren’t necessarily bad, but that there are alternatives that allow for better accessibility and greater search engine optimization. This is a mini-tutorial (hardly any work at all) dealing with CSS and XHTML which will allow you to create the same effect that comes with the standard iframe.
To start off, all you’ll need to create your ‘iframe’ is a DIV layer, and a cascading stylesheet linked to the source (optional).
Step 1: Create your div.
<div>Paragraph or two of text here....</div>
Step 2: Add the styles to the div.
This is fairly simple. If you don’t have a stylesheet linked to the source, or have a style section in the head at the top of your source, you can simply add the following attribute to the div element.
<div style="overflow:auto; width:200px; height:200px;">Paragraph or two of text here....</div>
If you’re using a linked stylesheet or have one in the head at the top of your source, define the div with the following (NOTE: I am using the div class ‘iframecopy’ with this example so you’ll have to add class=”iframecopy” to the div attribute for it to work.):
div.iframecopy {
width: 200px;
height: 200px;
overflow: auto;
}
That’s it! What you typed simply says that once the text reaches a height of 200px, the famous iframe scrollbar will appear, allowing the div to stay at the specified height and still contain more text than that which it would ordinarily allow.
There you have it! An iframe copy, using a single div and a little bit of CSS, without the mess of unecessary attributes that are needed to make the iframe practical.
If you want to go even further with this, you can use PHP ‘includes’ to get the ‘target’ feature that comes with iframes and links used together. I hope this opens your horizons a bit, while still allowing the functionality of the recognized iframe.
Just FYI - I know AJAX is big now, but, among other things, I do have concerns over cross-browser compatibility issues involving XMLHttpRequest (I think this may be Microsoft-specific, so not sure how this would work across all the modern browsers now available, i.e. Mozilla-flavors, FireFox, Opera, etc.). Again, not sure, but it is cause for pause. As a matter of fact, I read this http://www.phpclasses.org/blog/post/51-PHPClasses-20-Beta-AJAX-XMLHttpRequest-x-IFrame.html[^] not long ago at PHP Classes where the experts there decided to support Iframe and not AJAX for several reasons.
Hope this helps!
Jinal Desai
|
|
|
|
|
Thanks all for your inputs.. I ended up using an OBJECT tag with data attribute pointing to the desired URL. This works smoothly in all browsers except IE
Right now searching for fixing this for IE.
<object type="text/html"
data="http://www.mywebsite.com/mypage.aspx" style="width:xxpx;height:xxpx; border:none" border="0">
|
|
|
|
|
Hi,
I am implementing url rewriting in my website by using urlrewriter.net(Intelligencia.UrlRewriter) and i am facing problem when i click for second time display of products.
in my web.config i have written
<rewriter>
<rewrite url="~/Products/(.*)" to="~/Products.aspx?CategoryId=$1"/>
</rewriter>
And my href fro product is given as:
<li><a href='Products/" & intCategoryId(222) & "'>" & strMenu(laptops) & "</a>"
First time I am getting path as:
http://localhost/intelligencia/products/222
In second click I am getting
http://localhost/intelligencia/products/products/800
but i want it as:
http://localhost/intelligencia/products/800 for every product i click.
|
|
|
|