asp.net

Call DLL Methods from outside the project / Load Dynamic WPF in aspx

Dear All Experts, for my project, i created a solution with a one aspx page and all of other components are Dynamic load WebUserControls ascx, each user control and related functions are a separate webapplication project. now i need to use WPF with my project, i dont know how to load the ".xbap" file Dynamically in my page, also when ...

ASP.net: Paging one Gridview caused other gridviews to reload...

I haven't actually dealt with multiple grids on one page in a very long time, so perhaps someone can jog my memory. I have two grids and a treeview in three separate jQuery UI tabs. Every time I page my gridview, which is a custom control inheriting from Gridview, the other tabs refresh. How can I stop this? ...

Running cscript.exe from C# .ashx does not execute code in vbscript file

EDIT I added in some error handling to my .vbs file and it is indeed a permissions issue (I now get a "Permission Denied error"). However, supplying my credentials in the web.config <impersonate> tag does not seem to have any effect. Also when trying to supply my credentials to the process via via p.StartInfo.Password = Misc.CreateSe...

Ajax Modal Popup Progress Bar/Indicator

Hello all, I am having problems trying to create a modal popup progress bar in Ajax 3.5. The following works okay, but I cannot see my aspx page in VS 2008 due to the changes I made to my style sheet. It appears that the div tag i am using sits on top of the page. Here is the code: <asp:UpdatePanel runat="server" ID="UpdatePanel1"> ...

Trying to strip a RSS feed from a specific site (ASP.NET)

Not a programmer here, but I want to strip a RSS from this site, not being the admin, but a user (looking for a job) Usually, for non-RSS sites I use feed43 or Y!Pipes, but with this one I have a problem: the default view is with 5 jobs showing in all the categories. I wanted it to show 50 jobs in one category. So I searched in the page...

Project cost and duration estimation and hourly rate for Freelance asp.net project

Hey guys this is one of the non Technical questions I can say but very important in terms of charging for software development. Recently I have been offered a freelancing project on ASP.net from one my known friends. Please try to help me cos I am new to freelancing and I really dunno how much to quote for the project. Also this is my f...

runat="server" question

Possible Duplicate: ASP.NET why runat=server Why don't the ASP.NET server controls (or any element with the asp namespace) have a default value of "server" for the runat attribute? As far as I know there is no case when you wouldn't include it or use a different value. I do understand why it is useful for normal html element...

How to trace page behind the scene?

How to trace page behind the scene? And send all tracing information by email? not to show any tracing information on client side. ...

Is there a method for keeping the id I set for an asp .net control when it outputs to HTML?

When I create a form, I try to make accessibility a top priority, but the output from asp .NET negates some of this. For example, when I set a label tag for an input tag, I create it a such: <label for="frmFirstName">First Name<span class="required">*</span></label> <asp:TextBox id="frmFirstName" CssClass="textbox" runat="server" /> B...

Treeview Within UserControl and UpdatePanel Does Not Do Async Postback on Expand, Just Select

So here's the situation. We have a TreeView control within an UpdatePanel that we use. Everything works in our current situation; expanding via the + triggers an Async postback or selecting the text/icon also triggers an Async postback. In order to use this TreeView and its functionality elsewhere, I moved all the code into a UserContro...

C# reference type behaviour

I have some confusion with reference type following is the test example please tell me how it will works class TestClass { public int i = 100; } class MyTestClass { public void Method() { int i = 200; var testClass = new TestClass(); testClass.i = 300; Another(testClass, i); Console.W...

Why validate an IPAddress?

I am retrieving the IP Address for tracking purposes, this is not something that the user neither inputs nor is it used for any other reason than to track how many times a user has been to a site. The address is stored in a database and used to see if the client has been on the site before. So the question is can an IP Address be us...

Get HttpRequest with a Web Method ASP.NET

I have a page web method, and I need to get access to the headers, and particularly the uploaded files. Is this possible? Can a web method receive a file? If not, what would you recommend to upload files without post back? I am using the jQuery forms library that has support for this (and I have had it working with Django), however, I a...

Problem with ODBC.Net connection to MySQL DB

I'm thinking the problem here is with my SQL Syntax, but I'm not sure and need a fresh pair of eyes to check it out. This is the code I'm using to connect to and then insert into the DB: OdbcConnection datConn = CreateDataConn(); datConn.Open(); OdbcCommand comm = new OdbcCommand(); comm.CommandTex...

Implementing Navigation Properties in Entity Framework

Hey folks, I've been learning MVC 2 and I have pretty much everything understood except for the model part of things, I understand what the model is but actually implementing it has me confused. Here's my situation, I have my DB which has 3 tables; Ideas - table of ideas Tags - table of tags IdeaTag - link table connecting the above 2 ...

How much time to compile a view in ASP.NET?

How much time is spent compiling a view in ASP.NET? Of course I don't expect anyone to give me a number, but I think it's interesting to have an idea of how much time this takes because it could influence the way we implement things. For example, if the time is significant , then I might try to put every result that I need to display i...

why are images not found after Response.Redirect?

I have a parts.aspx page that displays correctly when user navigates to it from the menu. I also have code behind another page that redirects to to parts.aspx and when that happens everything works except the images on parts.aspx do not display, just the alternate text. The images are in an Images subfolder of the folder containing part...

Creating custom objects for wcf

Hi, I have an existing web application that uses EF and POCO objects. I want to improve the client experience by exposing some of my objects through WCF(JSON). I have this working fine but where I am unsure is how to handle derived objects(not sure if that is the correct term) or IEnumerable anonymous objects if you will. Let's say I ...

How could I get the value of the authorized users from the location path in web.config?

This is part of my web.config <location path="Secure"> <system.web> <authorization> <allow users="SecureUsers" /> </authorization> </system.web> </location> I want to be able to search for path of Secure and find out the user role that is specified. My input is the path, such as "Secure" and the value ...

ASP.NET EntityFramework 4 data context best practice

I'm working on a project which is using EntityFramework 4 and I am using the entity objects as my business objects. I ran into an issue recently where I had a context declared in a using statement in a user control. The method the statement was in returned an entity object which got used in another control. So I had to detach the entity ...