I have the following X.aspx code..to download excel file from Server
if (ss[5] != "")
{
Response.Clear();
Response.AddHeader("Content-disposisition", "inline;filename=x.xls");
Response.ContentType = "application/vnd.ms-excel";
Response.TransmitFile(ss[5]);
...
Hi,
I have hosted my website on godaddy and referenced MYSQL.Data.dll. This works fine on localhost. However when i try to run the same code online it throws the following error.
System.Security.SecurityException: That assembly does not allow partially trusted callers.
I have downloaded the MqSQL.Data code version 6.2.4. which already ...
i'm confused, i've read the GPLV2 (and lesser GPL and all of them) over and over again, but i don't get it, and maybe you can:
i'm creating a website for a client. I get paid for that.
When i'm done, the app won't be open source, it is solely meant to be used by my client.
Now i want to use a nice user control in it, but the control is...
here is my web service :
public class Header : System.Web.Services.WebService {
public Header () {}
[WebMethod]
public string GetArchive(string PageID)
{
StringBuilder sb = new StringBuilder();
BusinessRules.News news = new BusinessRules.News();
BusinessObject.NewsItemList newsList =
n...
There is dropdown and datapager in my page. On the event of dropdown data is being populated in listview.Since there is datapager in my page user can jump from one page to another. That's fine.
But my question is that if currently the user in second page and if user selection from dropdown then datapager jump to the first page.
How to...
I'm updating some style sheets that were working perfectly in FF and IE, but are broken in Chrome, and some links (not all) are being underlined. I cannot for the life of me see where in the CSS or why. It's driving me nuts. Any suggestions?
Edit: this is some of what is turning up in Chrome's 'matched rules' section, if that helps..
d...
Hello
is there any shorter way to consume an asynchronous WCF method in a ASP.NET page?
here is a sample I would like to refactor:
protected void Button1_Click(object sender, EventArgs e)
{
PageAsyncTask c = new PageAsyncTask(AsyncList, CallbackList, null, null);
Page.RegisterAsyncTask(c);
}
IAsyncResult AsyncList(object s...
Hi !
I need help . I need a login form (user/pass) using LINQ, .net3.5, C#
I need a sample code for this. Its urgent ...suggest how can i do it ASAP . any open project from where i can take the login part ?
any code you dont mind sharing ?!!
thanks
sj
...
Hi,
I am trying to use this solution to access items inside a telerik menu item:
ascx code:
<asp:Label ID="DivLeave" runat="server"></asp:Label>
In the ascx.cs file I run this code to disable the asp label
RadMenuItem expenses = RadMenu1.FindItemByText("Expenses");
Label DivLeave = (Label)expenses.FindControl("DivLeave"...
hi, I have a class which crops and saves an image and I have a multiple image jquery uploader using the HttpFileCollection class.
During the iteration loop I want to be able to access the width and height of the image for my class.
With a singular fileupload control it is easy because there is a fileupload.filecontents which can be use...
I am using ASP.NET MVC 3. I am using what essentially came with for free in the Visual Studio project template for an MVC project with the "Internet Application" option. Basically this brings in Forms authentication and provides some basic elements to manage user login and stuff.
I am also using the web profiles stuff with this to store...
I have calendar controls on my popup panel, but they doesn't react on click at all(not change months, days ..). When I put them out the panel it works fine. Does anybody know what can be problem ?
<div style="position: relative;">
<div style="position: absolute; left: 100px; top: -200px">
<asp:UpdatePanel ID="upT...
I have a webservice that a developer can use to create a user account, apart of the create user account form, it requires an input of the user's "Postal Address"
The Postal address has "Country State Id"
Normally, I would provide a list for everything else, but when it comes to country state list it contains thousands and thousands of ...
I need to know how to display the result of a select query in a datagrid or GridView with VB.NET?
Consider SELECT * FROM some_table. I don't know what columns the table has. Is there a way to just output the result to a table, with a dataset for example?
How can this be done easily?
...
Hi all ,
I just wondering where to get the training kits and MOCs for the course 50392A (Complete ASP.NET 3.5)
I searched a lot but nothing ..
I also tried to search for courses with the same material but nothing too .
Please recommend place where i can download the MOC from
Or
Recommend another courses with the same content , even i...
Hi,
I'm using Microsoft Unity. I have an interface ICustomerService and its implementation CustomerService. I can register them for the Unity container using the following code:
container.RegisterType<ICustomerService, CustomerService>(new TransientLifetimeManager());
If CustomerService has a certain parameter in its constructor (e.g...
In my ASP.NET app, I'm attempting to add another directory to be have the DLLs in it shadow copied.
The only method I found that will allow m to do this is AppDomain.CurrentDomain.SetShadowCopyPath.
However, this method is marked as Obsolete. MSDN has this to say about it
SetShadowCopyPath(String path) Message: AppDomain.Se...
Hi all,
I'm writing a plugin system: every plugin is in his own assembly that must be loaded by autofac and is signed by an attribute with a parameter that set the type of plugin. I would be able to resolve in my asp.net mvc app the plugins by type, how can I do this? Every plugin inhrerit by an abstract class and override predefinited m...
This may be a dumb question, but is it possible to remove references to System.Web.UI.*? For example, my application has two custom classes that are called Panel and Control, but I can't refer to them as such in the code because they conflict with the classes in System.Web.UI.
Since I'm working in an ASP.NET MVC environment, I won't hav...
I need to use ASP.Net gridview and do operations like sorting paging and selecting checkboxes in my asp.net mvc content view. I dont what to do. I've written something like this:
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>...