How do I create server control that will be single instance on client side for any user controls, nested masterpages etc.
Also this class should be visible by intellisense in any place where it included, so i can write javascript code in any control:
Manager.getInstance().add(someObj1);
in other user control:
Manager.getInstance().ad...
If I want to compile the source (cs) file of the web page, i simply use Src attribute instead of CodeBehind attribute in the Page directive, e.g.
<%@ Page Language="C#" AutoEventWireup="true" Src="XXX.aspx.cs" Inherits="Namespace.Path.To.XXX" %>
which works perfectly with a source file that has the BuildAction set to Content. Is it po...
Hi,
I'm using clasic ASP and ASP.NET in server win2003 with IIS6.
Until now visitors download files and images from my server with simple HTTP call to the file.
Now I like to run ASP code before the file download and I like to know if it's will hurt my Performance.
Actually I have three option:
* Simple HTTP.
* BinaryWrite
* TransmitFi...
I do long and slow query to get data to my GridView and I got lot of data, but when I'm changing page it loads as slow as at the start, it loads full data again and again, how to load data once and use paging without data loading ?
thank you
...
Hi my VS is rendering my ASP.NET pages twice in the default IE browser when I press "View in browser" or "Start without debugging" button. This really puzzleds me.
...
hi,
here is my sample code.
i m checking the code for null user ID, still it is getting executed....!
if (!IsPostBack == true && Request.Cookies["UserID"] != null)
{
string userID = Request.Cookies["UserID"].Value;
myPageBL.GetFriendRequests(userID); // this can never be null, but is taking null
}
...
I have used a ckeditor in my application but when the page loads ,it takes some time for the ckeditor to get loaded...for few seconds, the textbox with which i replaced the ckeditor appears in the UI
Can anyone help me plz
...
I have spent weeks trying to find information on hosting sites for my site. I currently use 1&1 but I need to have support for add-on dll's ( iTextsharp ) and they have told me for security reasons they cant do that. I use .net , c# and MSSQL.. I'm in the UK but not bothered where I host
So off I went researching on the web and everytim...
Hi, I have a few general ideas on how I want to do this, but any help/ guidance would be greatly appreciated...
What I am trying to do is: create a front end cms system, VERY, VERY SIMPLE where a report will be generated from i.e. a template, using jquery (drag, drop etc), included in the report will be placeholders where data will be i...
Could some body pleases explain me how asp form is processed in asp.net.
I mean when i click the URL having asp.net page address how it works, how it is processed to the production server and how it retrieves data to the client.
...
The string appears on all <body> tags in some old asp.net webform applications.
...
Hi
I am trying to split multiple arrays and insert them into SQL Server.
From my query string I receive the following Sport.aspx?ReaderID=A1B5A0F5C4E4A1B5A0F5C4E4&DataID=11B6C56A90B645B6C56A90B6,10 Oct 2010 13:15:20,|22B6C56A90B645B6C56A90B6,10 Oct 2010 14:15:26,|&Msg=04
What I need to do is split the pipe delimited field into MyTagI...
How to get url from RouteTable.Routes collection by key?
...
I have an existing .NET 1.1 dll that I do not have the source code for. It contains the code-behind for a asp.net page containing various form controls including a third party text editor that I no longer want to use. I want to replace the text editor with a simple asp:Textbox but the existing textbox is baked into the old assembly. How ...
Hi, I am new in ASP.NET.
I need to SET MembershipUser.IsApproved Property using a CHECKBOX in a GRIDVIEW.
With my code I am not able to make it.
Could you guys have an idea?
Please if you can Update some code. Thanks for your time!
ASP PAGE
<asp:GridView ID="uxUserListDisplayer" runat="server" AutoGenerateColumns="False"
OnRowD...
I have used a ckeditor in which user can submit data to the database in styles but when the data is populated in the datagrid then also it comes with same styles in IE
but I want it to be in plain text when get populated.
the function for populating the data is as follows:
protected void LoadQA(int intQuestionId)
{
string strSelect...
I'm trying to make the selected item the value of an asp:Label if this is possible
I am putting my drop down list in like this
For ddlAdults As Integer = 1 To strNumberSlept
CType(e.Item.FindControl("ddlEditAdults"), dropdownlist).Items.Add(new ListItem(ddlAdults.ToString(), ddlAdults.ToString()))
Next ddlAdults
And I need to add a s...
Hi,
I am calling the webservice with jQuery Ajax method. Now I am looking for a way to pass the server side response to the client . The response will not be so simple in the client side in "success" method(of $.ajax) I need to notify the client what is the status of the desired task which he made through his request, I need to notify t...
I've been out of Asp.net WebForms for a while (been doing MVC for the last 2.5 years) and I obviously fell out of routine.
I would like to create a list of menu items using asp:MenuItem server controls. It all works fine, but I'd like to provide dynamic values for NavigateUrl properties:
<asp:MenuItem Text="Something" NavigateUrl="<%= ...
Hi,
We're developing a business ASP.NET application. Is it better to pass an entire entity to a method or pass each property of this entity as parameters? What is the best practice?
Case 1. Pass Customer entity to a manager - InsertCustomer(Customer cust)
Case 2. Pass each property as a parameter - InsertCustomer(string name, string add...