|
The KISS principle, I like that.
It wasn't apparent to me that you wanted to keep it playing after a page redirect. I don't know of any way to achieve that.
You would have to use just one default page, and create all other "pages" as dynamic controls and update them using AJAX or callbacks.
If this is done for a friend it's probably not worth the fuzz, unless you're doing it for the learning.
Politicians are always realistically manoeuvering for the next election. They are obsolete as fundamental problem-solvers.
Buckminster Fuller
|
|
|
|
|
I am confused to know about the difference of asp and asp.net.
please tell me the differnce of b/w both
|
|
|
|
|
|
http://www.aspnetwebpages.nl
Check out this website! It is in English, and has two example ASP.NET Web Pages websites made with WebMatrix using Razor.
|
|
|
|
|
Hi,
I am using two connection strings in web.config for accessing data from two databases.
It is working fine on localhost but when I host it on IIS 7.5.On page that access both connection string ,Page work for 5-15 refresh and then error occured.
Quote: Application information:
Application domain: /LM/W3SVC/6/ROOT-1-130302610831717557
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\intranetuat\
Machine name: OMXSRVDMSTEST
Process information:
Process ID: 12108
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: SqlException
Exception message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Db.getListofPendingRequest(String mailid)
at MainMaster.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
all opened connection are closed properly.
I am unable to understand why this error occurred?
plz help....
|
|
|
|
|
|
Image on a web page is not redender properly. Due to fail to reload resource. webresource.axd and scriptresource.axd.
M using "webserver 2008 R2."
|
|
|
|
|
Hello friends! Someone should help me out of this stuff because I have done some research but couldn't it work. I have sql database with a table named logi with username, salary, location and password as the field names. In my asp.net webform, I have four textboxes with ids txtusername, txtlocation, txtsalary and txtpassword and a label control to display wrong password or username message if wrong password or username is entered. Now, the challange I'm facing is how can I query the database for a registered username and password, then display location and salary in their respective textboxes( i.e txtlocation and txtsalary) when the Display button is clicked?. Any help will be appreciated!!!
|
|
|
|
|
|
ok. I have done with the help of DataTable. When your enter the user and password is correct some information return data base like that location and salary and showing in respective TextBox. I write some code for better you understand
First Step: Query write in store procedure select location,salary from logi where Username=@userName and Password=@Password. This query return information when the your Username and password is correct.
|
|
|
|
|
Hi,
I am using JQuery/Uploadify plug-in to upload multiple files. This works fine if the .aspx page is in the root folder, but not if it is in a subfolder.
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="UploadifyTestMasterPage1.SiteMaster" %>
<title>
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
CodeBehind="UploadifyTest1.aspx.cs" Inherits="UploadifyTestMasterPage1.Jobs.UploadifyTest1" %>
$(window).load(
function () {
$("#<%=FileUpload1.ClientID%>").fileUpload({
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
'buttonText': 'Browse Files',
'script': 'Upload.ashx',
'folder': 'uploads',
'fileDesc': 'Image Files',
'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
'multi': true,
'auto': false
});
}
);
I have tried using ResolveUrl in the MasterPage, but it didn't seem to work; though my syntax may have been wrong.
In IE, as the code stands, the Flash upload button does not appear, and right-clicking where it should be reveals the message: "movie not loaded"
I hope this is in the right forum.
Any help would be appreciated. Thanks.
|
|
|
|
|
if you get movie not loaded, I think that means uploadify can't find the swf path or file.
double checkyour paths below
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
|
|
|
|
|
Thanks jkirkerx. There was a missing '/' before scripts/uploader.swf (the scripts folder is in the root directory, not the current one.)
jkirkerx wrote: if you get movie not loaded, I think that means uploadify can't find the swf path or file.
double checkyour paths below
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
|
|
|
|
|
Your welcome, glad to be of service!
|
|
|
|
|
Hi friends! Please I seriously need your help over this stuff. I am creating a chat application where registered clients can send friend request to other registered clients. This is where I am confuse and my question is
I want this application to allow registered clients to send friend request and accept friends request. I don't need the code, but just how to go about with this. I am using asp.net as front end and sql server 2005 as back-end. Any help will be accepted!!! Emmanuel
|
|
|
|
|
|
You will need to store all requests somewhere. Users will not always be online to see friend requests.
|
|
|
|
|
Well thanks alot, your answer got me thinking. Please, where can I store the friends request? Is it in database and how can someone send friend request? Just for example, if John and James are registered, how can any for them send friend request? Please any help will be helpful!!!
|
|
|
|
|
Hi Everyone,
Customize confirmation with yes no button instead of Ok and cancel button using JavaScript or J query with example.
Thanks,
Karthik
|
|
|
|
|
Is this a homework assignment?
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
|
Hey experts,
I've got a CustomValidator wrapped inside a repeater, which is wrapped inside an if condition.
When the condition is not met the code is not generated (I verified it using the browser's view source screen).
However, the server function which validates the TextBox fires anyway, and it shouldn't.
I realize that the following is a very simplified code, but I figure there's a concept I'm not aware of.
Please advice...
<% if (...)
{
%>
<asp:Repeater.....>
<ItemTemplate>
<tr align="center">
<asp:TextBox ID="txtStartTime" ></asp:TextBox>
<asp:CustomValidator ID="startTimeValidator" runat="server" ControlToValidate="txtStartTime" Display="None" ClientValidationFunction="ValidateStartTime" OnServerValidate="txtStartTime_ServerValidate" ValidateEmptyText="True"></asp:CustomValidator>
</tr>
</ItemTemplate>
</asp:Repeater>
<% } %>
|
|
|
|
|
why we use Interface for developing a consistently changes system?
Generally we uses Interface for multiple inheritance. We can Implement multiple interface in same time from a class. In Interface We declare a method and define that method in our class.
In general, we use Interface for developing a consistently changes system.
My question is, why we use Interface for developing a consistently changes system? Is there any advantage? if yes then please tell me .
In constantly changing system if we add a new method in interface the we have must define it in child class of that interface. this is too much laborious.so what are advantages?
|
|
|
|
|
First of all we will not use interface only for multiple inheritance support. Mainly Interface represent a service contract. One of more classes can implement that contract. One of the main advantage of Interface is code abstraction. You can isolate your code implementation details and client who use the code depends on the interface not the actual code. The benefit of this approach is when any implementation policy change then client will not affected. Another benefit is run time you can switch implementation if you write interface based program. Strategy design pattern is an example. Unit testing, Interface play very important role. if you properly write and run unit test then you need to create mock object. Without Interface you can not create mock object and with out mock object you can not test your code with proper isolation.
|
|
|
|
|
IN C#, there is no multiple inheritance.
Interfaces provide additional flexibility with inversion of control and dependency injection.
|
|
|
|