I have a WCF service which I would like to access using ASP.NET. The binding used in the WCF service is basicHttpBinding. How may I do it? Any examples will be really appreciated.
Hi,
i have problem with Visual Studio 2010 on Windows 7 x64. When i started asp.net site debugging, it stoped working. Only solution is restarting IIS.
Have anyone experiences with this?
Thanks
I know that F7/Shift F7 will switch between Code behind and ASPX pages, but
what's the shortcut to switch between source and design view in Visual studio for asp.net Pages?
I'm currently using the asp.net membership provider (with logins stored in db) to protect certain pages of my site. However, I also have non .aspx resources I wish to protect - word docs, excel spreadsheets, pdfs, etc. Is this even possible? If so how would I go about doing this?
thanks!
I'm trying to do a proof of concept app for my work using ASP.NET WebForms and the Managed Extensibility Framework. I've got things up and running(ish), but I can't seem to figure out how to attach the instance of Visual Studio that has the MEF code in it to the instance of Visual Studio that is running the Web App.
How can I attach my MEF code to the running process so that it hits my breakpoints?
Hi, i have a small problem. Im using the ASP.NET Xml control and want to pass it a url to a rss feed and a stylesheet - so that i can style the rss myself on my website. When applying the full web path to the xml control (http://www.myserver.com/myfeed.rss) i get an exception telling me that the document source is not a valid virtual path. What am i doing wrong? I would hate to download the file before showing it...
Hello,
I am creating some cookies in my ASP.NET application. These cookies expire 10 minutes after they have been created. I follow the approach described on MSDN as shown here:
http://msdn.microsoft.com/en-us/library/system.web.httpcookie.expires.aspx
My question is, when a cookie "expires", what happens? Does the browser automatically delete the cookie? Is it our responsibility as developers to remove the cookies if they exist and have expired?
Thank you,
Actually its the mono version of asp.net, XSP.
In my begin request function i check the url and rewrite when necessary. In one case i do
context.RewritePath("~/App_Data/public" + path);
When i try to request images or anything i get a 404 instead of the content. Why?
Is possible define different profiles a the same time?
I have two type of users in my web site and they have different properties.
Using asp.net profile is possible to define two or more profiles with distinct properties?
In asp classic, the cint() function or procedure or whatever it is won't allow me to cast arbitrary strings, like "bob" or "null" or anything like that. Is there anything that will allow me to simply cast integers, numeric strings, and arbitrary strings to actual integers, with some sane default like 0 for strings?
I am trying to build a web site using asp.net, so since i an not very good on the design
part.
I am wondering where is the best site to get a good template for my web site.
How can I retrieve recently posted Comments/previous comments on any video in you tube in our application using C# ASP.Net.Please provide detail coding with dll
Thanks in Advance
Ranjan.
I would like to know the number of users logged into my ASP.NET 2.0 application.
Points to be considered:
1) Simplest way would be to use Application or Cache object to have the counts on Session start or end. However this would fail if there is a worker process recycle. Wouldn't it?
2) Should't make a difference whether the session is inproc/state server managed/ or SQL server managed.
3) Should preferably be seamless to a web-farm architecture.
Hi i am trying to build a website usign ASP.NET what is the best resource or way to learn it?
Also do i need DotNetNuke or something similar to manage my project?
Thanks in advance.
Hi
I am trying to do the following
I am building asp.net website with c# language
I want to read a text file from my project(the file is inside the project)
I tried to get the file Path by this way :
string path=Request.PhysicalApplicationPath+"filename.txt";
but I can't use The "Request" object from separated C# file ??
note: separated C3 file,I mean it's not related with aspx file
can you help me with my way or do you have another way ??
thx
Here's my ASP Classic:
set irs = recordset(sql,PageDB)
if not irs.eof then
dim new_list
new_list = ""
do while not irs.eof
'Add irs("name") to new_list and seperate by comma
irs.movenext
loop
end if
kill(irs)
How would I add irs(name) to new_list and seperate by a comma?
Hello,
I have two comma separated lists:-
36,189,47,183,65,50
65,50,189,47
The question is how to compare the two in classic ASP in order to identify and return any values that exist in list 1 but that don't exist in list 2 bearing in mind that associative arrays aren't available.
E.g., in the above example I would need the return value to be 36,183
Thanks
I know the .NET framework and WPF pretty well, but I think the whole thing has gotten too blown up, especially for small apps as the whole .NET framework 3.5 weighs 197 MB by now.
I am looking for a language/framework/library that provides functionality similar to that of WPF (animations, gradients, a.s.o.) and the .NET framework (of course not everything, but the basic features) and which is faster and more lightweight than the .NET framework and creates smaller and faster applications than the ones using .NET.
Do you have any suggestions?
I have an old redhat 8 box that I need to pragmatically send files to my webserver from. Disregarding the security issues with this, I've come up with the following way.
curl -F file=@<filename> http://webhost/reciever.aspx
The problem is, no matter what I try, the ASP.NET page is not accepting the file. What am I doing wrong?
We have an ASP.NET application that uses SQL statements, where table names are unqualified. When compiled, it works fine, but when uncompiled, it complains and errors out, saying these tables dont' exist.
(Qualified name looks like Select * from MyDatabase.mySchema.MyTable ;
Unqualified like Select * from MyTable)
If you try these queries on the database, by yourself, it will take only the qualified names.
What's going on? I thought Compiled vs Uncompiled apps should perform the same way codewise.
i have rename the table name of asp.net administration tool's website now its not working when i click on security it gives an error(invalid server name or credentials, or by insufficient permissions) so please let me know if any one have solution.
Hi at all.
I've the following problem: asp.net TextBox server side control, fire onTextChanged only when it loose focus.
I would like to fire my server side event each time user press a key.
How can i do ?
Thanks
I want to create asp.net 4.0 dynamic pages loaded from my MS SQL server. Basically, its a list of locations with informations. For example:
Location1 would have the page www.site.com/location/location1.aspx
Location44 would have the page www.site.com/location/location44.aspx
I dont even know where to start with this, url writting maybe?
I just ran Google's Page Speed application against our site and one of the recommendations was to Leverage browser caching. Expanding this revealed the following:
The following cacheable resources have
a short freshness lifetime:
Specify an expiration at least one week in
the future for the following resources:
<a long list of images >
<some javascript files >
How do I go about lengthening the "freshness lifetime" of particular images?
It's an ASP.NET project running on IIS7.5
Thanks for any help!