asp.net

How to set fieldset border from legend bottom?

I have fieldset and legend. fieldset border is coming in the middle of the legend like below But I want border like below Border line should come below legend. I am using below css. .fieldSet { width: 97%; margin-left: 10px; border-color: #003366; } .legendStyle { border-style:none; background-color: #003366;...

ASP.NET ListView with DataPager throwing error after going to next page

Hi guys, I have a problem in ListView with DataPager. I have SqlDataSource <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ADSConnectionString %>" SelectCommand="usp_posts_getall" SelectCommandType="StoredProcedure"> </asp:SqlDataSource> and it was binded in ListView. I set my ...

Take path from application root in javascript.

function detailed_link(cell_rowid) { var $tabs = $('#infrTab').tabs(); $tabs.tabs('select', 1); // switch to third tab~ objRowData = $('#' + pageGridId).getRowData(cell_rowid); //document.getElementById("Name").value = objRowData.amount; loadPage('Infringement/TaskDetail', 'taskDetails'); /* Path ...

Installer App Asp.net 4.0 Cassini SQL Express

Hi, We have built an ASP.NET application in 4.0 (we can change it to 3.5 if necessary) with a SQL Server database. I am looking to create an installation package (exe or msi) so that I can provide this file to my clients and they can install it on all of their laptops. This asp.net application will be running on laptops that don't hav...

ASP.NET MVC. Pdf generation. Put image to PDF file.

I have PDF file and i need dynamically put image(logo) in some place of this pdf file. I just need to say "here is image put it to special position on pdf or something and give me output". And than i pass this output in my controller in response. That's it. Could anybody suggest any good free library for such case. iTextSharp? ...

alignment in the registration form

I have designed a form using labels and textboxes and included validation but when opening in the IE ,proper alignment was not found???what to do?? ...

Multi-value dropdownlist

Currently in asp.net, we can have only one value in a ListItem in a DropDownList. However I hope I can: <MultiValueDropDownList id="ddl" runat="server" /> ddl.Items.Add(new MultiValueListItem { Text="text", DBValue="db", EngineValue=1 }); var dbValue = ddl.SelectedItem.DBValue; What I'm going to do is inherit DropDownList and ListItem...

server side validation in asp.net ?

hi all as i know that asp.net provide server side validation control which has there own built-in logic, so i want to ask here can we extend built-in logic, i means suppose we use compare validator for comparing two file at this point it will validate according to there built-in logic, but i want to add some code for compare validator, ...

How to get Id of a DataItem in ListView after DataBound

Hi, i am new in ListView Control. I have a List view to show shopping products. in each data Item i put a link-button for "Add to cart" button. in my scenario clicking on this button causes ShoppingCart.Instance.AddItem("Product GUID") to call. how can i perform that? i set CommandName="Select" in Link Button and performed this: protect...

Error with passing json constructed data and receiving xmldocument as output

I have the following ajax call to webservice to pass json data and get response xml data, when i debug the code the flow is not reaching the webservice var keyword2 = "{\"keyword1\":\"" + keyword1 + "\",\"streetname\":\"" + address1 + "\",\"lat\":\"" + lat + "\",\"lng\":\"" + lng + "\",\"radius\":\"" + radius + "\"}"; ...

Column in DataView not rendering when databound to DataGrid (or RadGrid)

Using ASP.NET Web Forms. I am databinding a DataView to a DataGrid with AutoGenerateColumns set to true. The final column of the DataView is not rendering. Using the debugger I can see that the column definitely exists in the data grid's datasource. The column is of type decimal and some of the rows in the column have data in them. T...

Is it possible to initialize a property of an attribute class by where it's marked?

I have an attribute to mark enum fields named BusinessDescription. public enum FailReason { [BusinessDescription(Description="the client cancelled the order")] Client = 0, [BusinessDescription(Description="vender cancelled", DBValue = 1)] Vender = 1, [BusinessDescription(Description="other")] Other = 2 } You see, the...

How to upload files without using FileUpload control

Hi, I want to open file dialog on click of a button in asp.net without using file upload control. Please let me know the way to do this. Thanks Rupa ...

How can I use triggers ?

I have a Database with some tables, I wanna to run a method in C# whenever some data is written in the tables. I know I have to use triggers, but I don't know how!!! It would be appreciated if you guide me. P.S: I'm using SQLExpress 2008 ...

VMare Fusion 3 and Visual Studio 2010 problem with Shared Folder

Hi I have problem using Shared Folder in VMare Fusion 3 and Visual Studio 2010. When I use ASP.NET Web Site Administration Tool I receive and error "Failed to start monitoring changes to 'Z:\MSDOS......." I suppose ASP.NET it is not able to access the Shared Folder with the right permission. Some one has the same problem? How to solve...

How to disable HTML tag validation on a specific TextBox?

I have a form where one of the fields would allow entry of HTML tags. <asp:TextBox ID="someID" runat="server" TextMode="MultiLine" /> In this field I have a RequiredFieldValidator validation only. Unfortunately, after any PostBack if the content of any of the fields includes HTML tags or any other potentially dangerous code - the enti...

Analyze doPostBack

For example let's use https://www.technicalcommunity.com/Pages/groups.aspx When you click on User Group header link, it run's doPostBack, i want to analyze this postback. I tried to use Firebug (ffb4) but saw nothing + it brokes action and form with details never shows. I tried to use Fiddler, but postback never appear in request list. H...

Why can my precompiled web application not load the RDLC report?

I have a VS2008 Web Application project that is being pre-compiled without being updatable. When I try to load a page that should display an RDLC report using the ReportViewer, it just displays an empty page. It works fine in a non-precompiled version. What could be the problem? ...

On Using Forms Authentication with SQL Server, after 3 seconds its redirecting to Login page

Hi , In configuration I set timeout <forms loginUrl="~/Account/Login.aspx" slidingExpiration="true" timeout="2880"> but don't know why it is redirecting to login page before timeout. Any help will be really appreciated Thanx ...

what if i do not set error message in required field validator?

If i do not set error message in required field validator, will it display msg pop up box or not? my code- <asp:RequiredFieldValidator runat="server" SetFocusOnError="true" ValidationGroup="Search" ID="RFV_ddlTimeSlot" Display="None" ControlToValidate="ddlTimeSlot" InitialValue="--Select Time Slot--" ErrorMessage=""></asp:Requir...