asp.net-3.5

Apply tablerow click to all cells but one

I have an ASP.NET page that uses a repeater to populate a grid. There will eventually be a dozen or so columns, one of which is a linkbutton that does a postback (it removes the row). The rest of the row I want to be clickable and navigate to the specified url I set up at runtime. Here is the code for a row in the repeater: <tr class=...

How to return JSON in a Webservice?

I need a Hello World example... [WebService(Namespace = "xxxxx")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ScriptService()] public class Something : System.Web.Services.WebService { public Something() { } [WebMethod] [ScriptMethod(ResponseFormat=ResponseFormat.Json)] public string HelloWorld() ...

is using private shared objects/variables on class level harmful ?

Hello, Thanks for your attention and time. I need your opinion on an basic architectural issue please. In page behind classes I am using a private and shared object and variables (list or just client or simplay int id) to temporary hold data coming from database or class library. This object is used temporarily to catch data and than t...

Asp.Net MasterPage - Change WebContentForm body element - CssClass

What it's the easiest way to change the css class name of a WebContentForm that use a MasterPage ? Example: MasterPage : <body>...</body> Index.aspx : I will like the rendered page to look like <body class="myClass">...</body> Other.aspx : <body>...</body> ...

Create web application to scan document

work on asp.net 08 C#.I would like to develop a web application that scan documents into the following format(pdf,tiff,jpg,gif.etc) .My scanned images/file will be at client computer. ...

Manipulate Page Theme Programatically

I've got the following Setup in my Theme: \App_Themes\Default\StyleSheet.css \App_Themes\Default\PrintStyleSheet.css The PrintStyleSheet.css file has a set of printing css rules set in them wrapped in an @Media Print { } block. I need a way to programmatically remove the PrintStyleSheet.css from the list of css files for ASP.NET to ...

.NET (System.Net.Email) - Issues when sending email out

Experts, I'm having issue when sending emails out. Currently, I have a feedback form that supposed to send an email to the support email. For whatever reason, I never received any email from the app and the funny thing is when I changed the support email to my gmail, hotmail, or Yahoo account, I received it. The support email is active ...

How can I perform a normal postback on an ASP.NET page with AJAX history enabled?

I have an ASP.NET 3.5 page with an update panel and history enabled. It works fine when I perform async postbacks but I get problems when I want to perform a normal postback. The page load happens fine for the normal postback but then I get asynchronous page loads from the script manager which load the ajax history in. If I could have...

RedirectFromLoginPage() is not updating User.Identity.Name

I use FormsAuthentication.RedirectFromLoginPage(userName.Trim(), false); to set the User.Identity.Name field that I reference later. When I execute this line, the User.Identity object does not update at all; it contains whatever it was previously set to. All the documentation I see online says this should update my User.Identity object w...

Dropdown list bound to object data source - how to update on a button click

This is probably something really stupidly simple.. I have a drop down list bound to an object data source. I have set AppendDataBoundItems to true so that I can have an initial select. <asp:DropDownList ID="Accommodations1" runat="server" AutoPostBack="true" DataTextField="AccommodationTypeDescription" DataValueField="Id" OnDataBound...

Display fraction with numerator/denominator with empty fields for users to enter text

Hi all I have a scenario in which I need to design online keyboard with buttons implementing different mathematical functions in ASP.NET. For example 1) A button called "Fraction" Onclicking=> should display A numerator and a denominator separated by '-' with empty fields. Just as we write fractions manually. Now when the user clicks ...

Display search results in Gridview with parent child data

Hi, I have a requirement to display search results from three different tables. How to display these three table records in three different rows. The search query should get the results from Table 1 and Table 2. Table 2 and Table 3 has parent child relation ship. I have to display the rows from Table 3 also. Which controls can I use fo...

ASP.NET Cache Class - Are there differences between ASP.NET 3.5 and ASP.NET 4.0?

Are there any major differences between the ASP.NET Cache Class from ASP.NET 3.5 to 4.0? ...

role based view using sitemap path

hi.... In my web application Iam using two sitemap path(one for manager view and another associate view) and a tree view control. In associate view associate might able to see all the links but should be allowed to access only some of the links applicable to him/her as mentioned in the associate sitemap path. Though I have restricted the...

System.ServiceModel.Syndication.SyndicationFeed determine feed type (RSS vs Atom)?

Is it possible to determine from the syndicationfeed class what type of syndicationfeed is being read? If all I have is the url (blahblah.com/feed) it might be rss or atom, and depending on the type I want to do one thing or the other. Is there a simple way to tell without parsing the document and looking for specific characters? ...

asp.net 3.5 app - can not load asemblies, "Strong name signature could not be verified", only when deploying to client

Have developed an asp.net 3.5 application which consists of a we-site, some developed assemblies and some 3rd party assembles such as Telerik, Jayrock etc, all very much standard 3rd party apps. Created and built this app, tested on Win 2008 Eval running on a VM, all fine. Imagine my frustration when after installing on clients producti...

Can we use Resource Expressions in javascript and other parts except Literal?

The Literal control works all the time <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:ErrorMessages, errorCompanyNotFound %>" /> But if I want to use this as a parameter in an image, like <img src="blahblah" alt="" title"<%$ Resources:ErrorMessages, errorCompanyNotFound %>" /> It gives the annoying error ...

Load page for validation but do not display it to user in ASP.NET

We have a site requiring users pay $2 to view the details of a record. We occasionally get complaints because we send them to the payment page, and once they pay it turns out the record isn't valid, or it was lost, or the data couldn't be generated. So we want to add in a check to ensure the page constructs properly before the user is re...

Asp.net - Call Asp.Net function with Javascript result for parameter

How can I call a Asp.Net function within parameter the result of a javascript function ? Something like that : var a = <%= MyFunction(getJs()) %>; I know that something like that work : var a = <%= MyFunction("test") %>; ...

Paged ObjectDataSource results in PageSize -1

Hi, I'm using a ListView with a Paged DataSource. When the ObjectDataSource tries to fetch data from the "GetData"-method, the parameter PageSize is set to -1, even though I have set the PageSize to 8 in the DataPager. Have I forgotten something? <asp:ListView DataSourceID="odsProductIndex" ID="lstProductIndex" runat="server" OnItemDa...