|
luckydear wrote: **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white.
This shouldnt be. You are not injecting the javascripts properly. One can see those alerts/confirm on the same page without white space.
Further, if you need to have a disabled look, then place a div on the page before showing the alert/confirm.
|
|
|
|
|
jyothi,
luckydear wrote: **please dont suggest alert or confirm box because they r showing values in other page that means the background is becoming white.
There is nothing like javascript(alert/Confirm) will not help here.
Try to get it like this.on submit button on client click,You should..
btnSubmit.OnClientClick = " return confirm('you are applying leave for 2 days to xxxauthority');"
This will neither allow to access the present page controls,nor navigate to other page.
Regards,
S G
Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
Let us Support our C Project Programmers who provide solutions here.
|
|
|
|
|
btnapply.OnClientClick = "return confirm(''you r applying leave for" + totaldays + " days to " + selectauthority + "')";
i have placed this code in btnapply_click. but it is not working.please reply
regards
jyothi
|
|
|
|
|
jyothi,
luckydear wrote: btnapply.OnClientClick = "return confirm(''you r applying leave for" + totaldays + " days to " + selectauthority + "')";
This code has placed before the click event of that button which is being raised(btnapply).Even,You can place this in aspx page also or page load event.
SG
Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
Let us Support our C Project Programmers who provide solutions here.
|
|
|
|
|
what u have suggested is not woking.
its ok i have another problem as
----response.write("confirm('some message')");----
this is my code, from this what i want is
* If i press ok button it should do some action and navigate to other page
* If i press cancel no action should be performed and navigate to other page.
please reply me bcoz my project is stopped because of this problem.
|
|
|
|
|
luckydear wrote: ----response.write("confirm('some message')");----
I don't Think so,That Response.write will allow you to execute javascript here.Instead You can go for Page.reg..clientscript(if there is no master page.can You just paste the button onclientclick code here and also aspx button properties mentioned of aspx page here,so that i can tell wat is mistake being done.or mail me the page code to sundeepganiga@gmail.com.I will try to find solu if possible.
Regards,
S G
Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
Let us Support our C Project Programmers who provide solutions here.
|
|
|
|
|
Hi all,
I am using the update panel in that i am having the file upload control,check box control.Auto post back is set to true for check box since i am using some code to display it.
So the main problem is when i browse a file using file upload and when i click on check box fileupload control becomes empty,and in the update panel i am using trigger with the control id of check box.
Thanks in advance.
|
|
|
|
|
File Upload control needs complete postback in order to work. Its a known thing that fileupload does not work during partial rendering of Update Panels. Try using Postbacktriggers or place the fileupload control outside update panel.
|
|
|
|
|
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....
|
|
|
|