|
You having any luck with it?
|
|
|
|
|
So far what you have coded for this wage calculator application. the Spec is good.
Regards,
Satips.
|
|
|
|
|
Up to now i have the layout of the wage calculator and some code for when the checkbox is ticked - it will adjust the rate of pay. I just need help with the rest. Thanks for helping me. I appreciate it.
|
|
|
|
|
We are here to help only. Not to do your work ok. Please try yourself and try to complete it. If you get any error please post it here we will help you in solving your problem.
Regards,
Satips.
|
|
|
|
|
I want to create cronjob in my application can u suggest me in which way i have to start
KURMALA
|
|
|
|
|
cronjobs are for *nix systems, on Windows you want scheduled tasks.
|
|
|
|
|
hi all
i have problem with Delete folder
I develop app on asp.net 2.0
I need delete folder so into folder have many file
but when i delete folder so all my session is null ????
this my code:
DirectoryInfo folderfile = new DirectoryInfo(Server.MapPath(@"Download/") + strtime);
if (folderfile.Exists)
{
folderfile.Delete(true);
}
Some body show me ??????????
|
|
|
|
|
AnhTin wrote: but when i delete folder so all my session is null ????
What do you mean ?
|
|
|
|
|
befor i delete folder i have two session is : session["ID"] = "1,2,3" And Session["Role"] ="admin" but after i delete folder so there are null ????
I dont understand ??????
|
|
|
|
|
Where you are creating the sessions ? Post your page load code...
|
|
|
|
|
I have a dataset with 2 datatables. I wish to export those 2 datatables in excel in 2 seperate sheets. How can I do it..? Thanks in advance.
|
|
|
|
|
One simple way could be to open a Excel connection using ODBC, iterate all the rows and dump it in Excel !!!
|
|
|
|
|
Hi,
In my application,i have a table with one of its column of 'hyperlink' type. On click of that data i need to open a popup window..i have written folowing code for the same:
<asp:HyperLinkField NavigateUrl="javascript:JobDetails()" DataTextField="JOB_ID" HeaderText="JOB ID" SortExpression="JOB_ID"/>
and the javascript code is:
<script language="Javascript" type="text/javascript">
function JobDetails()
{
ChildWindow = window.open('frmJobDetails.aspx', 'Job Details', 'width=200,height=200,top=400,left=600,toolbars=no,scrollbars=no,status=no,resizable=no,titlebar=no');
}
</script>
My problem is that when i cntrl+click on the 'NavigateUrl' attribute of HyperLinkField, it says page cannot be displayed. Kindly do tell me what is wrong...or some other way of showing popup...me new to asp.net, so please explain how to do it...
Thanks
|
|
|
|
|
Hi
U r clicking from ur code window.So it is not executing.
I think it is trying to open the URL:javascript:JobDetails().
But it is not a valid URL.
Thats Why......
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
|
I would certainly suggest that you attach an attribute and have onClick event associated with javascript for each of the links .....
|
|
|
|
|
Hi All,
How all the checkboxes get checked as the header checkbox is checked or selected
|
|
|
|
|
use javascript
------------------------------
If u think u can, u can.
If u think u can't, u r right.
|
|
|
|
|
you can create controll array.
And map each array item to each check box.
so u need to iterate through that array to check or uncheck..
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
Hi,
Do as follows. Please let me know if you face any issues.
1. First, code in the aspx page, html view as follows:
<asp:datagrid id="dgAnalDelete" runat="server"><Columns>
<asp:BoundColumn HeaderText="Sl.No"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Visible">
<HeaderTemplate>
<input type="checkbox" id="checkAll" onclick="CheckAll(this);" runat="server" NAME="checkAll">(Un)Select All
</HeaderTemplate>
<ItemTemplate>
<asp:Checkbox runat="server" ID="chkID" Checked='<%# GetChecked(DataBinder.Eval(Container, "DataItem.Selected").ToString()) %>'>
</asp:Checkbox>
</ItemTemplate>
</Columns>
</asp:datagrid>
2. Write the javascript function as follows:
function CheckAll( checkAllBox )
{
var frm = document.Form1 ;
var actVar = checkAllBox.checked ;
for(i=0;i< frm.elements.length;i++)
{
e=frm.elements[i];
if ( e.type=='checkbox' && e.name.indexOf("chkID") != -1 )
e.checked= actVar ;
}
}
Happy Coding!!
Meeram395
|
|
|
|
|
i have to secure web pages individually. If a user whose role is admin if he logs then only he should be able to view the page otherwise he should be
redirected to other page . How can this be done. please help me.
You cannot be in love and be wise.
|
|
|
|
|
Hi,
U could do this simply by creating a config file and put all secured pages along with the created config file to a folder. Use the attributes that defines the config file for admin role.
Bijay Bhaskar Deo
Thanks & Regard
|
|
|
|
|
You can set session inside login page.
From login page redirect to a middle page.
from middle page Check session for user role.
if
admin redirect to secure page
else
redirect to another page
eg: from login page
Session("role")=user_role
redirect to middle_page
From middle page
if(Session("role") = "admin") then
redirect to secure page
else
redirect to another page
If U Have Interest, U Can...
Sherin Iranimose
|
|
|
|
|
First thing in sitemap.config add the attribute role and specify the respective role. In each page check the users role with role details for that site map node. For all none valide users redirect them to other page...
|
|
|
|
|
Hello;
I develop website and uploaded to host provider and works fine but I uploaded it to ther hosting provider and it not working and give this problem
-----
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
-----------------
I called to host provider to able asp.net permission read/write but still the same problem;;;
what possibe wrongs or bugs in hosting provider or website.....
thanks
tkml123
|
|
|
|