What is wrong in my code Dim privateFonts As New System.Drawing.Text.PrivateFontCollection() privateFonts.AddFontFile("C:\Documents and Settings\somefont.ttf") Dim font As New System.Drawing.Font(privateFonts.Families(0), 12) LBL_Test.Font = fon
I am new to ASP/EF. I am using ASP 5 and Entity Framework 7 in my personal project. So I am able to create database and tables with code first approach, but all the table names are singular and does not pluralize by default. In my ServerMatrixDemoDB
I wanted to show and hide my TextBox based on value selected in RadiobuttonList. I wrote the following code for that $("#<%= rbtnIsPFEnabled.ClientID %>").click(function () { pfno = $("#<%= txtPFNo.ClientID %>"); if ($(&quo
I have been trying to install DNN 7 but it got stucked at the first step of installation. Giving the error "No valid default database connection detected. Standard Database setup option is unavailable Database Connection Error" ERROR:Index #: 0
I have a web forms application in a dll (DesiredApp.dll) that contains some classes (DesiredClass.cs) I'd like to use in other applications, such as windows or console applications. I created a function IsWeb() to verify if it is a web application or
i'm trying to update my asp.net gridview from a close method of a Growl Message. the jquery code is: $.gritter.add({ title: 'Success', text: msg.d[0], sticky: true, after_close: function () { __doPostBack('UpdatePanel1', ''); } }); the gridview updat
I have a radgrid in which I hide Id column. Now I want to get its value on linkbutton click. If column is visible it work fine but it show blank value when it is invisible. my code is protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.
Web.config <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections> <log4net> <appender name="RollingFile"
Newbie here, I need help with a website I'm creating. I have a class that does some analysis on some text that is input by the user, the class then finds an appropriate answer and sends it back to the textbox. (in theory) Problem is I don't know how
I have a website with the following structure: Tab Container - having 4 Tab panels Each tab panels is having 4 gridviews which are separated by line break. Now when i am in a particular tab, I want to use an 'export to pdf' button , which should gene
I just started using Entity Framework and it created a Context class which I can use to get all the data i need from it. But I am facing an issue on how I should organize my code, by watching the demos, the person just uses the framework and codes ev
How can I display search result while typing on the Textbox using Ajax with jQuery?jquery autocomplete could be a good option for you. It's not enough with jquery and you'll need to add the jqueryui library but you may be using more features from thi
I'm learning ASP.NET (slowly), trying to avoid WebForms entirely, but I'm finding MVC, ORMs, EF, and all the rest a little bit overwhelming. I am quite solid with HTML, HTTP, CSS, C# and the BCL. I have a tiny bit of experience with PHP (ewww), but I
I'm using ASP.NET/VB and I'm trying to insert a date and time into an Access date/time field, but I'm getting an error (Data type mismatch in criteria expression). Here's a simplified version of my code: Dim myDate As Date = Now() Dim myIns1 As New O
when clicked from a link on an email, the following code causes a PDF document to open in the browser: Response.ContentType = mime; Response.WriteFile(path); HttpContext.Current.ApplicationInstance.CompleteRequest(); Is there any way to force the cli
I have a web project like: namespace Web { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { lbResult.Text = PathTest.GetBasePath(); } } } The method PathTest.GetBasePath() is defined in anoth
This my code in VB.NET. My try catch says there is a syntax error in the instruction INSERT INTO. I don't know what happened to my INSERT. I searched for the error for over an hour... I'm not an expert in VB.NET, I'm better in C#, but I need to do th
I am new to Raphael, as well as asp.net. I am trying to test a simple raphael example with asp.net, but I keep geting the following error: Microsoft JScript runtime error: Object expected this error occurs in this line: var paper = Raphael("diii"
I have this situation: if (condition){ var variable = (from el in ....) //linq to sql query } else{ var variable = (from el in ....) //linq to sql query } // code where i can`t use the variable I want to avoid copying code in both conditions. var get
I realise that this question has probably been asked to death, but none of the answers I have found seem to work. I have an ASP repeater control, in which I have set the ItemTemplate to have a simple table with two rows. When populating the rows, I w
I was wondering if it is possible to omit the question mark in the URL after the aspx page and still be able to parse characters in the URL. For example, let's say I have this URL: http://localhost/?specialparam,story:extra. When I navigate to the pa
When I click a button that causes a postback on the UpdatePanel it calls the tinyMCE.triggerSave(). It reloads the panel and the editor show up again, but when I try to call tinyMCE.triggerSave() the second time I get the following error: g.win.docum
In asp.net (using MVC, but this happens in regular too) Profile.GetProfile(username); will update the LastActivityDate for that user. This is not intended when someone else is viewing that user's profile. In the membership class you can specify wheth
Similar question: Using Silverlight for an entire website? That question is over 2 years old. Silverlight has gone a long way from Silverlight 1.0 Beta 1 to Silverlight 4.0 Final. Would it be practical to create a full Silverlight web application the
I am using VS2008, and ASP.NET 3.5 C# I have an array list that is populated using a textBox & button for input of numbers. After clicking the button, I need to display the highest number in the arraylist. So far I know I need a loop to compare the t
Two questions: On postback when a user clicks submit, how can I add a error message to validation summary? Is it also possible to highlight a particular textbox using the built in .net validation controls?Dynamically create a CustomValidator control
How do You manage all of Your .js and .css files in asp.net project. Especially when they have a lot of dependency between each other? I've combined all script in one. But it's become weighty, and 90% of them were not used on particular pages. What I
I am trying to deploy an application in a client network, with AD/domain controller. My application is a simple asp.net c# application, using windows authentication. I am using win2003. Basically, using VS2008, create a new website, hosted on IIS6.0.
My asp.net site has to run on several client servers. It's working fine on a majority of them, but a couple have run into an error message on a few pages: Compiler Error Message: CS0012: The type 'MetaNameValuePair' is defined in an assembly that is
When I add a breakpoint and hit F5 to run in the debugger (I am using my debug build), a dialog pops up telling my my web.config file does not have debug=true in it (which is does) and I get 2 choices a) run without the debugger or b) let visual stud