|
Thanks Abhijit. This looks great. Since I am using an update panel, this will be quite useful. However, I'm facing an issue on FreezeHeader. When I try to use that code, I'm getting the error saying that "expression(this.offsetparent.scrollTop)' is not a valid value for the 'top' property".
As a solution to this can do like this[^] But I think if I do this, the headers will not be freezed.
I'm not able to put the code in a content page as tab is not available. Can you please advice?
Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.
|
|
|
|
|
Hello,
I have a web application. I want to run a program that can run in background parrallely with the actual website.
That back ground process may have messages to display , that can be display on a automatic pop up.
Can any one help ?
Bye
|
|
|
|
|
You have no clue what you're doing. You want to show automatic popups on the client, based on a separate process ? How does this process relate to the website at all ? How can it, if the website runs on the server, and your separate app runs on the client ? Why would clients install the program in question ? What does the background process do, apart from showing messages on the client machine ?
You need to explain how this is an ASP.NET question, and what exactly you're trying to do.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
hi...
I have a web application (Rostering of employees), some one does that. Website is intranet application. It is uploaded on server and employees used it from their work stations.
Now the requirement is........
1) they should continue to do what they are doing currently.... example view details, assigning, deleting.
2) suppose some body's shift is created for saturday by rosterer to start at 2pm. An automatic pop up should come or some kind of message should come up on saturday before one hour (i.e. 1 pm) for rosterer that this person shift is going to start please call and remind him.......
3) i hv many other similar kind of requirements...........
If 2nd point is fulfilled....all can be done..... I search many things based on asynchronous programming....could find something....and trying to apply. If any other simple solution is there please reply......
I hope this is clear.
Bye
|
|
|
|
|
kberawala wrote: search many things based on asynchronous programming.
Why ?
Your core issue is, your question has NOTHING to do with ASP.NET. Any code you write in your website, runs on your server. Therefore, it cannot tell the client anything. You can't do that with a web app. IF they happen to be logged into your system, you could show a message WHEN THEY LOG IN. You can't do it otherwise. Instead, you need to write a client app, have your users install that, and have that either make a network connection in order to receive messages or, more likely, call a web service running on your server, to check every 5 minutes or so, if it needs to show a message.
In short, you've taken a rentacoder job under false pretences and have no idea what you're doing. If you can even understand what I said above, that's your only solution. If you can't, then tell your client you're ripping them off.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
Hi,
Appreciate your answer...........
I hope u know there is nothing called IMPOSSIBLE.
I asked this question just to look simple and smart solution. I already have a solution for this using javascript and ASP.NET. Better dont say that u dont know wht ur problem is..........
I m not trying to be a part of problem, i want a solution, thats it. If can do it show me...or else thank you.
You are no one to judge wht kind of requirement it is and calling it as "rentacoder job under false pretences". My requirement that i described you.........is the simplest of its kind. There are more complicated requirement after this......so i want my building block to be strongest and smartest.
It might be true that u will be having better experience or knowledge than me.....but i know that this can be done using ASP.NET or visual studio development libraries , etc, etc......and i will get it done.
Bye
Topic closed for you.
|
|
|
|
|
i have sql query like-
(select admin.*, cust.FirstName+' '+cust.LastName as CustName
from adminmsgrecieved as admin,custdetails as cust
where admin.AdminId='111' and cust.CustId=admin.FromCustId )
full outer join
(select admin.*, brok.FirstName+' '+brok.LastName as BrokerName
from adminmsgrecieved as admin,brokerdetails as brok
where admin.AdminId='111' and brok.BrokerId=admin.FromBrokerId )
using (AdminId)
but it is not working.I have tried it in sql query analyzer but it gives error in usin and full outer join.
I have to join both tables plz help..
|
|
|
|
|
1 - we have a SQL forum
2 - if you told us the actual error, it would help us to tell you what you did wrong. We don't even know the table schema
9 out of 10 intelligent people would write the most basic SQL they could that worked, then build on that, to work out where the issue was.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
Please post this in SQL forum
***** Programme comme si dept soutien technique. est plein de tueurs en série et ils savent adresse de votre domicile. *****
|
|
|
|
|
Hello,
I want to create a guestbook for my website in ASP.net with pre-approved entries. Could you please guide me to any tutorial on the Net which shows me how to do this? I don't know .net at all so I'll need step-by-step instructions.
Thanks for your help!
P.S. I don't want to use the free services hosted on other sites.
Thanks! 
|
|
|
|
|
rayneesh wrote: I don't know .net at all so I'll need step-by-step instructions.
No, you need a smack upside the head. Either use something that comes complete, OR, spend 6 months learning some absolute basics, and then try to write some code that is production worthy.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
|
See, the reason I make good money writing this stuff, is that you can't just ask in a forum, and with no experience, write production quality code, or even code that's going to work terribly well. If you don't know what you're doing, you need to pay someone to do it for you.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
|
|
|
|
|
I agree with you Chris. I should read up and first try myself before asking for help. My mistake!
|
|
|
|
|
Hey,
What is the future of entity framework and LINQ? I am looking for a decent framework for database persistence. I tried Codesmith tools and .NET Tiers templates but the learning curve was huge and the support was almost non existent.
Any suggestions what is a good option to use?
Regards,
Brendan
|
|
|
|
|
|
I have an ASP.NET website i have just finished developing. Everything works fine on my local machine. However when i deploy it onto the production server i get the following error.
Could not find a part of the path 'c:\windows\system32\inetsrv
Any ideas what could be causing this problem and how to solve it?
|
|
|
|
|
Are you trying to access/save any file on page load?
|
|
|
|
|
I am writing to error log file in one of the folders in the application
|
|
|
|
|
Can you post the line of code.
|
|
|
|
|
public static class clsSystemUtilities
{
public static void WriteErrorToLog(string errorDesc)
{
string logFileName;
StreamWriter strWriter;
logFileName = ConfigurationManager.AppSettings["ErrorLogFileName"];
if (File.Exists(logFileName))
{
strWriter = File.AppendText(logFileName);
}
else
{
strWriter = File.CreateText(logFileName);
}
strWriter.WriteLine();
strWriter.Write(errorDesc);
|
|
|
|
|
I'm on my last nerve with this. I have been working for over 6 hours trying to figure out how to get this to work. Here is what went down:
I created my site, which is esentially just a database of people who work for me, their positions, ect. I created it offline, using Visual Studio 2008 Professional, and created the database under SQL Server 2005. I went to upload all my files, and my databases were stored in my app_data folder which was also uploaded. I have an app_code folder with my datasets in them.
Here is what my code looks like for...
web.config:
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="ConnectionString" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|database.mdf;User Instance=true"/>
</connectionStrings>
<system.web>
<compilation debug="true" strict="false" explicit="true">
</compilation>
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collections"/>
<add namespace="System.Collections.Generic"/>
<add namespace="System.Collections.Specialized"/>
<add namespace="System.Configuration"/>
<add namespace="System.Text"/>
<add namespace="System.Text.RegularExpressions"/>
<add namespace="System.Web"/>
<add namespace="System.Web.Caching"/>
<add namespace="System.Web.SessionState"/>
<add namespace="System.Web.Security"/>
<add namespace="System.Web.Profile"/>
<add namespace="System.Web.UI"/>
<add namespace="System.Web.UI.WebControls"/>
<add namespace="System.Web.UI.WebControls.WebParts"/>
<add namespace="System.Web.UI.HtmlControls"/>
</namespaces>
</pages>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
Default.aspx.vb:
<pre>Partial Class _Default
Inherits System.Web.UI.Page
Dim DbConnect As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString
End Class
Default.aspx:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body style="font-family: Arial, Helvetica, sans-serif">
<form id="form1" runat="server">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
DataSourceID="ObjectDataSource1" DataTextField="Position"
DataValueField="Position">
</asp:DropDownList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="Getposition"
TypeName="DataSet1TableAdapters.PositionlistTableAdapter">
</asp:ObjectDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID"
DataSourceID="ObjectDataSource2">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"
ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="Position" HeaderText="Position"
SortExpression="Position" />
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
<asp:HyperLinkField DataNavigateUrlFields="ID"
DataNavigateUrlFormatString="Details.aspx?field={0}" HeaderText="Details"
Text="detail" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource2" runat="server"
DeleteMethod="Delete" InsertMethod="Insert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="DataSet1TableAdapters.teamTableAdapter" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Position" Type="String" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Email" Type="String" />
<asp:Parameter Name="Original_ID" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="DropDownList1" Name="position"
PropertyName="SelectedValue" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="Position" Type="String" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Email" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</form>
</body>
</html>
Details.aspx:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Details.aspx.vb" Inherits="Details" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div style="font-family: Arial, Helvetica, sans-serif">
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
DataKeyNames="ID" DataSourceID="ObjectDataSource1" Height="50px" Width="125px">
<Fields>
<asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False"
ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="Position" HeaderText="Position"
SortExpression="Position" />
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
<asp:CommandField ShowEditButton="True" />
</Fields>
</asp:DetailsView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
DeleteMethod="Delete" InsertMethod="Insert"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataByID"
TypeName="DataSet1TableAdapters.teamTableAdapter" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Position" Type="String" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Email" Type="String" />
<asp:Parameter Name="Original_ID" Type="Int32" />
</UpdateParameters>
<SelectParameters>
<asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="Position" Type="String" />
<asp:Parameter Name="Name" Type="String" />
<asp:Parameter Name="Email" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</div>
</form>
<p>
<a href="Default.aspx">Default.aspx</a></p>
</body>
</html>
Details.aspx.vb:
Partial Class Details
Inherits System.Web.UI.Page
Dim DbConnect As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString
End Class
I gave all the code I have, and am seriously considering giving up on this whole project. The thing is, the code works fine when I test it on my PC, but the minute I upload it online and go to my website I get this error:
Server Error in '/' Application.
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>
Please help me, I'm going literally insane by not getting this to work. Any help is greatly appreciated. I've done a great deal of searching and nothing has helped me.
|
|
|
|
|
u need to configure the directory on the server for dotnet framework version u r using!
|
|
|
|
|
Sorry, I'm new at ASP .NET, but a long time Visual Basic and Visual Basic .NET user, please explain how I would go about doing that. My server has the latest Framework installed.
|
|
|
|
|
when u develop a web site and u want to deploy it u need a host this host will provide u a storage location for u r files. u need to inform u r hosting company that u want to configure that folder on there server for u r version of .net framework the same way u configure u r site locally for IIS.
|
|
|
|