Run code when both text boxes are empty
In C# how do you display an error message if both text boxes are empty? Is there a code example or validator that can be used? ...
In C# how do you display an error message if both text boxes are empty? Is there a code example or validator that can be used? ...
Concerning pages that build a web application: Lately, I have found myself creating web pages that are simpler than the ones I used to. Before, I would try to jam as much functionality into a single page as I could to prevent from having lots of pages. I am starting to realize that this was just making things way more complex, convolut...
I'm new in c#.net. I'm going to design a website for DMS(educational domain)in C#.net. So in one of my Aspx page I want to disable menu which is in javascript according to accessright. the accessright stored in database table "login" as one attribute in SQL server and I want to retrieve that accessright to one C# variable and want to ac...
Brief: I am tinkering with a personal project that would serve up Task objects to MSOutlook. I would like to create a new HTTP account in MSOutlook which points at my website's *.aspx page. This page would deliver a list of Task items that do not actually reside on a mail server but are instead stored in a XML file or other simple struct...
i dont have enough idea about global.asax,,Can any one tell about global.asax ...
here i need to replace content "says..." : <asp:DataList ID="dlProductReviews" runat="server" RepeatDirection="Vertical" RepeatColumns="1"> <ItemTemplate> <div> <span class="content">says... </span> </div> </ItemTemplate> </asp:DataList> ...
I need a method to run every so often that does some database processing. However, I may need it to be triggerable by an admin on the site. But I don't want this method being run more than once at the same time, as this could cause issues with the way it hits the database. For example, could I... Create a singleton class that runs th...
What is the best way to turn off the visibility of a row(s) and have the gaps removed. Also the reverse, if turning on the visibility making sure that the visible row(s) are displayed again. Thanks ...
I've installed MOSS 2007 a number of times, but I always run into the same problem. The installation goes just fine, but MOSS seems to be missing functionality. In the Administration page, clicking the 'OK' button in Create or Extend a Web Application does absolutely nothing. Also, clicking certain links evoke no response either. I...
I am trying to share Spring object definitions between a web application, unit testing, and possibly a console app. I would like to define the object definitions in one place and import them. My first pass was to place 'entities.xml' in the same folder as web.config but the relative paths aren't what I expect: <context> <resource uri...
**Hello Friends I am using Asp.Net C# & CrystalreportViewer. I developed report in crystal 8.5 and call through crystal report viewer. Everything running fine but when i click print button on top crystal bar it's pop up window which is say that export in pdf and then print from there. So when i click ok it's create pdf file and then i am...
I have a page in which I create dynamic controls via OnInit. On the page I also have a custom user control in which i want to create other dynamic controls via OnInit (defined with override). The event in the user control overrides the event on the page: how do i prevent this? ...
Is the only difference between the RegisterStartupScript and the RegisterClientScriptBlock is that RegisterStartupScript puts the javascript before the closing tag of the page and RegisterClientScriptBlock puts it right after the starting tag of the page? Also, when would you choose one over the other. I wrote up a quick sample page ...
When using a partial view in ASP.NET MVC to encapsulate the creating/editing markup, what is the best way to change which control gets rendered based on the action? For example, I want to only allow an email address to be entered upon account creation (via a textbox) and then viewable (via plain HTML) when viewing the account. In pseud...
I currently have a suite of .Net web services that are developed in ASP.Net 2.0. They don't utilize any WS-E extensions, rather they implement security at the application level. They are fairly straightforward data retrieval/update features. I am interested in re-factoring these web services gradually over time into WCF services, mostly...
Hi, I will generate html table dynamically with some textbox and dropdownlist, user will enter their input in that. How to read these data in the controller?(MVC) ...
I have a simple textbox with a required field validation control attached to end and then being displayed in a validation summary at that bottom of the page. Everything works great on it but the validation seems to fire on the page's initial load which obviously sets off the required validation and displays the error message. How do ...
I'm new to ASP.NET but not to programming. I am migrating our current site from PHP/MySQL to ASP.NET(3.5)/SqlServer. I've been lurking here since the site's launch, so I'm confident that one (or more) of you can help me out. Here's the scenario: This is a training department site and the dept. has a course catalog stored in the table co...
Hi. I have a Gridview, which is bound to an IList. I'd like to have paging " the safer way" (only fetching the Items I Need), so I created a metod on my repository like this public Ilist<Item> GetItems(int from, int number){ ... } The thing is that wheen I bind it, it only shows me the n items, and doesn't show the paging controls. I ...
Hi, How can i access public variable which in Sample.xaml.cs file like asp.net <%=VariableName%> ? Thanks. ...