I design web site by asp.net my website contain news page ,advertisement page and others ,I design Separate page for news and advertisement so I have question what is the best when I design Separate page or place news,advertisment and other page in multiview (view)
So i was thinking on using an image and a literal control. The questions i have is
1)Is there a better control to use than literal?I am using it because the text would have html and i must render it.
2)How i will achieve putting text beside the picture(the site uses a <strong> as i see in firebug but i cannot view the css and after that everything is simple text and some <br> )?
If i put the literal beside with <strong> and have a specific div size will the text automatically go below when reach the div limit?I'm asking because it will be html so i don't know if it(html) can surpass the main div container.
I am working on How to display the News Updates on page inside Marquee as hyperlink and on click on the link i have to display the details of the selected News .
which approach i can display the particular section of the page ?
We have three options to view any .aspx page in a tab
Design Source Split
How can we view Design and Source in separate tabs for a any aspx page ?
Or if this is impossible!! can we use split option by Vertically splitting the Design and Source ? if later one is possible, I could stretch the view onto two monitors like here as suggested by Nick Craver.
i want to make a add news page that when my user write his news(in up.aspx) then his news shown in news.aspx. what am i going to do ? what is the best way for writing this page ?
I am working on a multi-lingual application Assume the following:
Database has 50 tables and application has to support 5 languages
Which is the best way to design the database:
1. Include a langugae column for each table. Repeat the values for each language. Say i have a country table which has 100 countries in it. Then my design will contain 500 rows (100 for each langugae)
2. Create a separate table which will contain the translations for all the 50 tables in with a foreign key to the parent table.
I want to display banner ads in my webpages. I am having Vendors, banners ads for each vendors, Start date and End date to display the ads. These details are stored in a database table. How to display the banner ads? also I want to store number of clicks for each add, how to do this?
I was wondering how to create a front page news function with C# as the language.
Basically I want to be able to use a one of my forums in the category "Site Discussion" called "News" as a way to connect with the front page (homepage) of the site to display a few of the newest news articles each with a title, image, and a short blurb of what the post is about. Also I want them to have a link that connects to the news post in the forums.
***NOTE*** I am using YAF (Yet Another Forum) for my forums.
An example of this from another site is [URL]
As you can see in the above site in the "Today's Top Stories" section it shows 4 news posts (1 main, and 3 other top stories) and if you click on them it links to the news post (which is also accessible via the forums in the news section).
This is basically what I want to incorporate into my site, but using the YAF forums, note an admin console is also needed to do this, I have a serperate admin console that I will set-up for it basically that's when you write it and from there it displays on the front page and in the forums.
I have access to two seperate databases (mySQL) located on two servers. I need to get the data, link the tables on a key field and display the results in a datagrid. My challenge is that if the search criteria changes for the display it affects rows returned from on table and should thus automatically affect the linked table and resulting data returned.
what the best approach would be to achieving this? So far I have set up a dataset with a dataadapter and table for each connection and then linked the tables in the dataset. The problem that I'm having is getting the linked resultsets to work.
On my form I have the datagrid with two Objectdatasources one for each dataadapter and i believe that's where I'm going wrong...
In parent page there is an imagebutton. What I want to when user click this image button, another page will open with width=200 and height=100 with no toolbar.
when i request login page, the page views in master page. i do not want to this. because i am making an admin page so the page must be free from master page.
i will design a new page for login that included username and password inputs.
aspx view engine includes Page Inherits="System.Web.Mvc.ViewPage but razor view does not include
I have a view where I want to perform different actions on the items in each row in a table, similar to this (in, say, ~/Views/Thing/Manage.aspx):
[code]....
In the most part, this is working fine. The problem is that if ThingService.SetEnabled throws an error, I want to be able to display the error at the top of the table. I've tried a few things with Html.ValidationSummary() in the page but I can't get it to work.
Note that I don't want to send the user to a separate page to do this, and I'm trying to do it without using any javascript.
I'm wondering how I can go about accessing page controls from a separate class I've made. I've tried a few things I found using google, but no luck :(
What I'm trying to do is keep a function that is used often, in a global class.
The function then accesses a page literal and calls ScriptManager.RegisterStartupScript. I was hoping this is possible, so then this function wouldn't have to be copied to all of the pages.
I've got a page that I'm using as an e-mail template. I'd like to spin off a new thread, take the rendered page, and put it into an e-mail. Is this possible? If so, how? I haven't had luck so far.
I have a 2D array of doubles in my Default class on my Default.aspx.cs page, like so:
protected Double[,] time;
By the time the page loads, I have populated this array from a database. Now, I want to reference this array in another file (Diff.aspx.cs) to avoid visiting the database again. Also, the data is used in a read-only fashion.
I alway have a case where I have one .js file which contain event handlers for many pages in my website, something like this:
$(function () { $('#my-textbox1').click(function(){ doSomthing(); }) //--> this my-textbox1 exists in page example1.aspx $('#my-textbox2').click(function(){ doSomthing(); }) //--> this my-textbox2 exists in page example2.aspx });
Now suppose the user opened page example1.aspx, jquery will search for my-textbox1 and if found it will attach a click event to it, then will search for my-textbox2 and will not find it and will not attach the event.
But like this jquery in all cases will search for my-textbox2 in all pages,
What I want to know is the best practice you do to avoid unwanted selectors to get called in pages that don't want them.
May be it is not a big problem with 2 events, but suppose i have hundreds of events want to attach, this will affect the page load performance for sure.
when user input the valid data then there will be generate a areport and that report displays in a gridview itemtemplate. when i print the report, only first page data printed properly on a predesigned designed paper. and others are not. then how to print each rowdata of gridview on per page.
But when i go to Design View of the page (for creating the events automatically or for drag/drop any new control from toolbox, I don't want to type everything) the design view only shows the master page! the page controls are complete ignored!
I have a page with features supplied from both a master page and a child master page.In the content placeholder for the head in both master pages I have supplied the link to the stylesheet for the site.In Design View in VS 2008 the CSS code seems to be functioning correctly.When viewing in a browser the CSS does not appear to be applied at all.
Here is the CSS code for the div elements within the main content placeholder:
I've always depended on putting a control on an aspx page and double-clicking in design view to create my VB page. But this isn't happening in my current project. It creates an inline script in my aspx page instead. Where is the option or preference or XML file or.... that controls this?