asp.net

skip css formatting on one html table

I have CSS items for all my table elements (<table>, <tr>, etc...) but I have one table for which I don't want the CSS to apply. What is the quickest way to have this table just display as a raw HTML table and not apply my CSS formatting. Also, in my CSS file, I have this: table td { padding: 5px; border: solid 1px #e8ee...

Can I invoke another application by specifying it in a config file?

Hi, suppose I have some asp.net and WCF web service applications, which are running perfectly in the server. Somehow I want to create another application A, for generic usage, I want to attach a copy of A to all those asp.net or WCF applications. But A does not have anything to do with those applications, A just collects some data, do...

implementing IPostbackHandler .net

Hello there, I have a server control, inheriting from PlaceHolder. Basically, all it is, is a placeholder, with the top part having a "<div class etc...", and the bottom closing it off. So, typical usage would be <control:control runat="server" id="phControl"> <asp:TextBox runat="server" id="txtControl"> <asp:DropDownList runat...

Reformatting an wysiwyg generated html file

I am reading in what i thought was just basic text from an .html file and i want to display it on a asp.net webpage. I put some css formatting but it doesn't seem to fully work. I got to the bottom of it as the issue is now that i look at what i thought was raw text turns out to be: <SPAN style="FONT-SIZE: 16pt"> <P style="TEXT-ALIG...

manipulate data

Whats the best way to take data from a datareader and manipulate that data, say taking a salary and dividing that salary by 12 then binding that data to a grid. I was thinking maybe a datareader to a dataset then looking through that to update the data, or is there a better way? Need to do this at the application not the database so can...

different css formatting on different <p> tags

i am creating a website where i read in html data from other websites. The problem is that the source that i am reading all has <p> tags in it, but i actually want to format them differently is there a way to have some <p> tags using one formatting and some <p> tags do other formatting in the same web page? ...

Setting FileIOPermissions in ASP.NET incode.

Hi, I have this small app that loads plugin type components that other users can freely upload to the server. But I don't want the users to be able to access other users files. I need to set the access of each plugin component to a restricted access. I tried to set the access inside the plugin classes base class but even then the loade...

Getting results of dotnet page into classic asp page

hey guyz, i need to ask you that is it possible that i can get the code of the page which is built using dot net into classic asp page actually i am accessing a webservice for which i need to have dotnet. so i want to run that service in asp.net get or parse results and then i want to show them in a classic asp page. is it possible, if...

Applying style to asp:menu

i set asp:menu orientation="Horizontal" , I kept my menu bottom of my page. when i click on parent menu corresponding menu items should be displayed from bottom to top. Example: Child1 : (sub menu of parent) child2 : (sub menu of parent) child3 : (sub menu of parent) Parent currently i m getting as follows Parent Child1 : (s...

Scrape current request and zip it up.

I have an asp.net website which contains a few pages that I'd like to export their generated content and send to another service for archiving. The best way that I can fathom doing this is to grab the stream and dump it to a file which is easy enough to do. My main challenge would be follow the external resources and include them in th...

on blur of asp.net form field, call validator(s) on that one field.

I have a form that has some standard asp.net validators and some custom validators. I know how to force the whole page to validate. But how on blur of a form field can i force the validator(s) that are looking at the field fire, not all validations on the page. I expect I am missing some little trick. :( ...

Error : panel1 does not exist in correct context

How do I resolve this error. my code is <asp:GridView ID="gridView" runat="server" Style="position: relative; left: 299px; top: 69px;" PageSize="5" OnRowCommand="gridView_OnRowCommand" AllowPaging="True" OnSelectedIndexChanged="gridView_SelectedIndexChan ged1" > <PagerTemplate> <% if (gridView.PageIndex > 0) { %> <asp:ImageButton ID...

appostrophes coming in as �

i am reading in html from a file and displaying it on a web page: when i look at in the source i see: The Club’s summer junior programs but it shows up as: The Club�s summer junior program do you know whats happening here and why the � is shwowing up? ...

Please help with urlrewriting.net Component

On my page: Admin/Manage.aspx there are links like this: NavigateUrl='<%# "~/ShowArticle.aspx?id=" + Eval("ID") +"&amp;name=" + Eval("Title") %>'/> So the generated link is: "http://localhost:1410/TheBallProject/ShowArticle.aspx?id=17&amp;name=This is a Test" I want it to appear like this: "http://localhost:1410/TheBallProject/17/T...

What is a good pattern for designing widgets in ASP.NET?

There is some desire to add widget-like components to the Default page of our corporate intranet, with things like job search, weather, etc. My original thought was to define the widgets as user controls, with a similar div structure, and use callbacks to communicate between the client and server, and jquery to perform some ui functiona...

Programmatically set print page orientation to landscape

We have an ASP.NET C# web application with a "printer friendly" link. Is there a way to programmatically set the orientation to landscape, so the user can just press the print button? ...

.Net classes to control services on a remote machine?

Hi all, Yes I could google this but I'm being a little lazy. I need to remotely control windows services on another machine. Does the ServiceController class let me do this? What restrictions are there? Can I start / stop / change the "run as" details remotely, ie change a password that's due to expire? I'll be attempting to give ...

How could I populate a hidden field when a link is clicked?

Hi SO: I am working on a FYI page that has large list of top-tiered links. Under these top-tier links, there are more links that usually go out to external websites. Currently, the way I handle populating the second-tier is as such: I query my database for all the top-tier links, then I construct an unordered list. Each list item has t...

ASP.NET OutputCache and postbacks

Hi, I'm trying to understand the ASP.NET OutputCache mechanism. I built a test page with a Label and LinkButton. The label text is being initialized on the server with the current server date on every PageLoad: protected void Page_Load(object sender, EventArgs e) { lblDate.Text = DateTime.Now.ToString(); } I used this ...

Convert Rendering from Table to Panel in Custom Control

Hi, I have a custom Panel control,which is expandable and we can insert any control on that. Given below is the code of custom control. using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawing; using System.IO; using System.Collections.Specialized; using Sys...