hi, i am having a concept like i want to use grid view inside another grid view. this is required as i want to show records with foreign key where there are many related records.
For example i want a output like i am having a table with course name and another table containing subjects of each course.
In output i want results in the ...
I have a Silverlight application hosted inside an asp.net website. In my silverlight applicaiton, if I select a theme. Then, theme changes will gets fired. I want to get notified in asp.net web page, when the theme changed event is fired inside the silverlight application.
Note: Also, I don't want to use a data base to maintain the sta...
OK
I have two different controllers, say controllerA and controllerB, Now from within controllerA
I have to redirect with some parameters to controllerB and inside controllerA i wrote
RedirectToAction("ControllerBAction", new { keywords = text });
How do I define the routes in global.asax.cs?
I am a newbie to MVC. Thanks for all the...
I have a Asp.net web service running on www.domain.com/Service.svc that I connect to using jQuery from my asp.net website. Everything works perfect if the user access my website with www.domain.com. But if the user uses only domain.com I get error:
There was no channel actively listening at 'http://domain.com/Service.svc/get?date=2010-...
Hello. I did read more function but it's not working correctly. I mean I can split my test post and I can cut my string with substring function. And I did this using < !--kamore--> keyword.
But after I cut this with substring and do innerhtml and if there is some html tag before the index the css is going crazy. (< p>< !--kamore-->) I ...
Hello everyone,
I am using VSTS 2010 + ASP.Net + C# 4.0 to learn someone else's code for a WCF application. I find besides Web.Config, there are also Web.Debug.config and Web.Release.config. I searched the content of Web.Config, but cannot find any reference to Web.Debug.config and Web.Release.config. However in VSTS 2010 IDE solution e...
Hello
I create SqlConnection objects in every Insert,Update,Delete and Select methods in asp.net web pages. Then i close the connection objects in finally block. But im not sure about this is a good way. Is this a problem about connection pool?
Do you have any recommendations about how to use SqlConnection and SqlDataReader objects for...
I have a web based application (ASP.NET 2.0) on a virtual dedicated Windows Server 2003 SP2 box, that converts HTML forms and converts them to PDF using ABCpdf. It has been around for years, and hasn't been changed for at least the last two of those years.
Three days ago it started placing question marks throughout the outputed PDF doc...
Im trying to implement an unit of work pattern by passing an unit of work instance into my repositories.
Relevant code from Global.asax.
public class SiteModule : NinjectModule
{
public override void Load() {
Bind<IUnitOfWork>().To<SqlUnitOfWork>()
.InRequestScope()
...
This simple example works in pure html when launching within visual studio localhost:port server
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0px; padding: 0px }
#map_canvas { height: 100% }
</style>
...
Hi,
Apologies as I'm a bit of a beginner with this. I'm trying to send an email from my ASP.NET website using the following code (obviously replacing the hostname, username and password with the actual values):
Public Shared Sub Send(ByVal ToEmail As String, ByVal FromEmail As String, ByVal Subject As String, ByVal Message As String)
...
The LoginName control displays the Username. I would like to display the Full Name of the user logged in rather than the Username. Below is my code. I cannot seem to access the LoginName control in code behind. I am wondering if it because the control is in .
ASPX Page:
<asp:loginview id="HeadLoginView" runat="server" enableviewstate="...
I have AsyncPostBackTimeout set to a very large value (3600 = 1 hour). This should cause Ajax request in my .net app (Asp.net 3.5) to continue for an hour before expiring. However, for some reason, they are expiring after approximately 5 minutes (the request continues to execute on the server without any issues).
What could be causing t...
Assume an ASP.NET page with these lines of code:
while (true)
{
byte[BUFFER_SIZE] buffer;
// Fill buffer with pseudo data
Response.OutputStream.Write(buffer, 0, buffer.Length);
Response.Flush();
}
And a test application for above page with these lines of code:
while (readBytes != 0)
{
byte[BUFFER_SIZE] buffer;
readB...
I have an ASP.Net application that has some data driven elements powered by XML with some very basic XPath queries. How big can an XML file become e.g. 10MB, 50MB before the application should start to see a dip in performance when reading from the file.
...
In C# 1. You don't have delegate sorting or comparison options. You might be forced to do it by creating another type which implements IComparer to sort your collections in ArrayList.
But starting from c# 2. You can use delegates for your comparisons. Look the following example.
List<Product> products = Product.GetSampleProducts();
prod...
I'm working on this project and I have a large number of "services" to execute. I need to have this service codes so I can verifiy and make decisions according to selected services by it's code.
I'm tring to define this enum and get its values from the web.config so I can change them easily.
public enum ServiceCodes
{
Transfer= Co...
I'm aware that there is an ASP.NET Wizards Control however this is fairly basic and doesn't offer a whole lot of flexibility.
I was wondering if there was a .Net based wizards framework that allowed you to build complex wizards with some of the following features:
Re-use steps between wizards
Dynamically control the wizard flow
Per pa...
I'm studying up for a Microsoft Certification exam, and some of the wording for the 'content' in the examn confused me. In the MS exam website, under Developing Web Form Pages, it says in regard to the content on the exam...
This objective may include but is not limited to: page directives such as ViewState, request validation, even...
In object-oriented languages, if class A contains class B as a member, you can access class B's properties from class A's constructor (after you instantiate class B first).
However in ASP.Net, my understanding is that a Page object contains server control objects as its members, but I do not understand why, if you try to access a server...