I am a noob in ASP.NET and building a website currently... I want the site to have a search feature.. How can I add this to my site? Is there a good tutorial out there ?
Hi all I am trying to store html and hyperlinks in my sql server 2008 database. I want to also be able to display the hyperlinks and render the html accordingly. I am trying to do this in ASP.NET MVC so I tried using HTTPUtility.HtmlEncode() method but didnt really store it thw way I wanted. So can anyone please guide me through the steps i need to take to achieve this.
I can't find XamlPad anywhere after I installed .NET 4.0 / Visual Studio 2010 and Windows 7 SDK - v7.1.
I tried searching C:\Program Files\Microsoft SDKs\Windows\v7.1\bin
and did a dir /s xamlpad.exe to see if the Windows Index service didn't get to that folder yet.
And it's not under Start Menu - All Programs - Windows SDK v7.1 -- Tools.
Where has it gone? Did MS deprecate it? Thanks
Hi,
How would you accomplish these in ASP.NET Webforms 4.0 Routing;
People should not reach .aspx pages directly, without routes,
Start page should be "/" or "/home" or something else, but not "Default.aspx",
Static content should not be handled by routing.
Thanks.
In VB .Net, the Generics Lists have a sort function that accepts IComparer or Comparison. I'd like to sort just part of list. Hopefully I can specify the start index, count of elements to sort, and a lambda function. It looks like you can only use lambda functions to do this if you're sorting the entire list. Is that right or did I miss something?
i m trying to export data from asp.net form to excel using following lines of code
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("content-disposition", "attachment; filename=Report.xls");
Everything seems to be working fine.
Now what I need it to take some action if user clicks the "Cancel" button on File Download dialog. How i can do this ?
thanks..
Hi all,
I need to run a taks in CruiseControl .NET before checking for modification in source control. I mean this task should be the very firts thing that CruisControl will always do. I see section in cc.config, but it is for running tasks before building a solution, so it is not exactly what I need.
Will be very appriciate for any help.
Thank you.
What is the basic concept behind WaitHandle in C# .net threading ?
Whats is its use ?
When to use it ?
What is the use of WaitAll and WaitAny methods inside it ?
Could you people share your opinions about future of JavaScript libraries as compared to ASP.NEt and JSF component libraries?
Do you feel that Pure JS components are going to live around us for quite a some time? Or ASP or JSF would be a safe investment?
The Vb.Net application creates a bitmap from scratch and either converts to a tiff or sends it to a printer. In both cases, the quality of the image (in this case the font) is not good at all. The sample code listed below creates the graphics object that I use to write to the image.
Dim gr2 As Graphics = Graphics.FromImage(New Bitmap(800, 1000), Imaging.PixelFormat.Format32bppPArgb))
Basically multiple instances of our application will be launched but they need to have separate user settings. We currently have use "user settings" for that, and it works fine for a single instance (per windows user) but we would like to be able to launch multiple instances with say a settings path passed in via command line. Is there a way to do this with the built-in .NET settings or will we have to roll our own?
I 'm implementing my version of "ShareThis" in my webpage.
How can i get the client's browser displayed address with Asp.NET?
I am little confused with this one since the url to share...
1) is created with URL rewriting
2) contains Greek characters.
P.S. The client url is like example.com/e??????a/ß?ß??a
I have a TFS build set up to deploy an ASP.net project to a test server.
The build works great, and deploys to the test server fine, but instead of putting it into the \Website directory that my IIS webserver is configured for, it puts the build into \Website_20100511.6
Why is the date suffixed to the directory name? Is there a way to turn that off so I can publish directly to the \Website?
What is the easiest way to ping/notify a .NET Windows Service? Do I have to use WCF for this? Or is there an easier way?
I would like to be able to wake up the service using a Python (or an Iron Python) script from anywhere.
Also is there a way I can be notified (by email) if that the service has stopped?
Hi,
I'm thinking of experimenting with alternative View Engines for ASP.NET MVC, and would like to know what other people are using.
Please let me know 1) Which View Engine you use, and 2) Why.
The standard 'web-forms' view engine is of course a valid answer, but please say so only if you have decided to use it for a reason, not just 'Becuase I can't be bothered to change it' ;)
Thank you!
Can anyone point me to any self-contained, complete, current reference materials/projects using NHibernate in an ASP.NET MVC2 application?
I have looked at Sharp Architecture, but I am not sure I need the complexity in that project. I certainly don't know enough about it to know if it is over-engineered for my purposes.
I would like to see more types of implementations to gauge the various ways people have skinned this cat.
I would like to build some sites using Java stacks but would like to follow some blogs/books/articles coming from a ASP.NET background. Would need to know about tools, productivity tools, that are used to developer Java apps.
My team members don's support the use of validation controls that are available in asp.net (for web application).
What are arguments in favor of validators instead of or in addition to javascript validation?
I would like CruiseControl.Net to fail a build when some code metrics change in a 'wrong' direction, i.e. code coverage decreases or Gendarme defect count increases. The Gendarme metrics are already tracked in report.xml file (because they are presented on web dashboard graphs), the code coverage is only reported on build status page (and saved in build report xml).
How can I achieve this?
While a record is edited,how should be the ID stored ? I could have a textbox with enabled false, but I don't like this approach.
In ASP.NET I used to have a property which has saved the value in viewstate(Actually a hidden field + encrypted value).
The only solution I found Is to use a hidden field. Is it save enough ?
Are there any others options ?
I have a 1st page in which i have a IFrame control. Inside iFrame, i opened 2nd page. Now i want to access the control values of 2nd Page in 1st page Code behind.
I am not able to access. I am using Dot Net Framework 3.5
Please help me for it...
I remember Sun's slogan so vividly... "Write Once, Run Anywhere". The idea being that since programs are compiled into standard byte codes, any device with a Java Virtual Machine could run it. Over the years, Java seems to have made it onto many platforms/devices.
Is this the intention or was it ever the intention of .NET. If so, what kind of efforts are being put forth to make this a reality?
If you go to "Control Panel\Hardware and Sound\Devices and Printers" in Windows 7 (and i assume vista) you will see some nice pretty pictures of printers.
See image below
Is it possible to get access to these images through .net?
For example to display them on a windows form?
How do I attach multiple files as e-mail attachments in vb.net? I am trying to use a list box where user will select the file and attach which will appear in a listbox. And also I would like to give the option to delete the attachment also.