Wants To Create Index Main Page?
Jul 27, 2010can experts tell me the efficient way to create index main page with banner, menu bar, navigator bar & login box
View 4 Repliescan experts tell me the efficient way to create index main page with banner, menu bar, navigator bar & login box
View 4 Repliestell me the efficient way to create index main page with banner, menu bar, navigator bar & login .
View 1 RepliesHere is my code in SQL
[Code]....
Error i am facing is :
Msg 8668, Level 16, State 0, Line 2
Cannot create the clustered index 'RateViewIndex' on view 'NoteToPass.dbo.RateView' because the select list of the view contains an expression on result of aggregate function or grouping column. Consider removing expression on result of aggregate function or grouping column from select list.
I am writing a program in ASP.Net. I need to use page inheritance. I will have a Main Page called "Main" for example. In this form I will have several controls (Any type of control, can be datagrid or any other control). I want to create several other pages that will inherit from this main Page. When I inherit, I want the controls on the main page to appear on the inherited pages. I know that some of you will tell me use a master page, but this is not what I need. I need inheritance. (I suceeded in doing inheritance, but when I do so, the controls do not appear)
View 3 RepliesI am trying to do something similar to www.mytripjournal.com where they allow the users to create their own wesite within the top level website. So the URL would look something like www.somesite.com/username/. Can someone tell me the best technique to emulatesomething like this? Are there any .NET solutions readily available. I am trying to think this through before I begin coding but to be honest I am at a loss.
View 2 RepliesI am attempting to create a vertical menu (currently using the asp.menu control with membership) on 1 masterpage. This all works great, but I want the submenu items to display statically under the main topic AFTER the page is posted back. Meaning, if I have main items A,B, and C, when I click on item B, it goes to the B page and shows all the subtopics under B. The subtopics should be statically displayed and phsically located under the selected topic. I have tried the css friendly adapters, jquery examples, accordion samples, and a jquery tree menu. None worked very good, and I don't know enough javascript/jquery to create it by hand. The closest I could get was the jquery treeview, but it didn''t work very well. This has been a frustrating search and I have learned how difficult custom menu navigation is in asp.net.
View 2 RepliesMy site was working fine in Visual Studio 2008, but the code-behind pages have suddenly stopped recognising new controls which I add to the main page. For example I added a label with id 'lblEventHeader' to the main page and then tried to set a text property in the Page_Load event. I get a compile error of "the name 'lblEventHeader' does not exist in tne current context. Existing controls, which I added before this problem seems to be unaffected.
As far as I am aware, I have not done anything which should cause this. I have even reinstalled Visual Studio, but I still get the same error message. Have I inadvertently deleted or corrupted a reference file. I have checked the Codefile and Inherits properties of the page.
I have a page that is based on my master page. the code below
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CaseAdmin.aspx.cs" Inherits="Prototype4.CaseAdmin" %>
<%@PreviousPageType VirtualPath="~/Account/Login.aspx"%>[code]....
when the page above loads, i have link buttons on the left and an empty maincontent area next to its right. what i want to do is display an entry form in the main content on click event of the link button on the left. the second form is as below.(form not based on master page).
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OpenCase.aspx.cs" Inherits="Prototype4.EntryForms.OpenCase" %>
<%@PreviousPageType VirtualPath="~/CaseAdmin.aspx" %>[code]....
how do i perform this task and if i wanted to display a different form in place of the first one that appeared in the maincontent area, how do i go about it?
i have a gridview of name "PRODUCTS"
now i want to add a link button , on cllicking that link button a new page in other tab will open with that Product Name and ID , then i want to read that product name and id and fetch records according to it ...
e.g:
PRODUCTS PAGE :
GRIDVIEW :
ID | Name | Detail
1 | Apple | DETAIL
2 | Banana | DETAIL
now when a user click on DETAIL row in apple , in new tab a page called DETAIL will be open and it would show URL like this :
http://localhost/ABC/DETAIL.aspx/ASDESX9023
the reason behind ASDESX9023 is : i dont wanna show the actual project name and id here ...
then after recieving this URL ;
below in my data list which is residing in DETAIL Page , the records must get fetched according to this URL ..
page structure-
Page1 = aspx page with iframe(Page2)
page2= aspx page contain user control
usercontrol UC = have a link
Problem- if I click any link of US there is a popup message but the problem is that popus comes inside the I-frame.I want that popup on my main page (page 1)
I have a handler CsvExport.ashx that resides in the root of my web application, the problem is it is called from a javascript include so I can't use ~/ how can i have it so that any call to a file name CsvExport.ashx in in folder in the web application get sent to the proper file?
View 2 RepliesI have a strange problem in my website. When I log out from the site and try to type the URL of the main page (first page after login) it shows it as logged in, While other pages are ok, Also when I refresh this main page it returned to the login pageI tried to ways of log in and log out (FormAuthentication & Seasons)
View 3 RepliesI have a simple website that I'm building (practicing). In the main page, I'm using <div> to format my page.However, I have another page that I wish to load into/or view in the Main page. Can I do this without using a MasterPage?
View 10 RepliesI have a report which displays some textbox and a table. In "PDF" format, if table not fit in the page it start in text page. bu i want to display some row of the tabe in a main page (that if how many rows is possibel to show) and other in text page (that rest of others rows) but it is display to all row to next page
View 2 RepliesI have a Master page i.e. .aspx and in one of the page which has the main .aspx page is incorpaorated with a .ascx page(User control page). The .ascx page is having a button. so i want to reload the page when i click on this button.Can any one tell me how can i do response.redirect in this secario.
View 4 RepliesI have a main page with some buttons on it.If the user clicks on a button, a frame is created in the center and a order (web)form is shown.At the end of the form, when the order is placed, I want to close the frame somehow.What would be the best way to do this?If I do a redirect on the page that is in the frame, it just opens the main page in the frame, which isn't what I'm looking for of course.
View 4 RepliesIn my project I have to create crystal report which includes subreport ,
the data of subreport must be linked with the field of the main report...
Language is C#.net
Web App.
I have a default.aspx page and a usercontrol.acsx. i have plugin this user control into default.aspx. I clicked a button in the usercontrol.aspx but i hope can fire event at default.aspx. The means that i hope when i click a button at usercontrol page and call an event at default.aspx. Can i do like that?
View 5 RepliesI have a stripped down log in form on the top of each page, user/pass box and buttom, no keep me log in or error messages. If the user enters the right credetians he is log in and user name shows up instead of log in form; if he enters the wrong info, nothing happens.
Now, I want it to happen is that if the user enters the wrong credetians, and he doesnt get log in, he is redirect to the full Log In page.
I have a Masterpage which contains two contentpalceholder, first one for a Usercontrol and second one for my web forms.
Now I want to change the usercontrol's property of sqldatasource from out side of usercontrol such as some web forms. Can I access objects of usercontrol from the other web forms or masterpage?
I've got an aspx page that renders an ascx page with filtering capabilities. Inside the ascx page, parameters are passed as follows:
<tr>
<td class="label">Plataforma</td>
<td class="field lookup"><%= Html.Lookup("s.Site", null, Url, "Sites") %></td>
</tr>
<tr>
<td class="label">Data</td>
<td class="field date"><%= Html.TextBox("s.Date", DateTime.Today.ToString("yyyy-MM-dd")) %></td>
</tr>
I need to be able to get those parameters on the main aspx page, because they are needed for an action that is called there. How could I access these parameters?
I want to set the focus to a specific control in .ascx from main page. When i load the mainpage.aspx, the focus should be on a text box control which is contained in web user part called selectperson.ascx
View 17 RepliesI have a website written in C# that was running fine on one server. We moved it to another server and have a couple issues. I am mainly a VB.NET coder but can do a few things in C#. This is not a project - it is a website and can open it in VS2008 no problem. This is an admin site for the whole website where the user can add customer comments, etc. When logging in, it works fine. I can go to one of the admin pages after logging in and works. If I go to two other different pages, I get this error:
Object reference not set to an instance of an object.
[Code]....
It turns out this is in the main.master page and it is used by the other pages that load fine. The ApplicationTitle variable is set right in the web.config file and like I said, it shows on the other pages.
My question is why would this code work fine for some pages and not two others? All of these admin pages are under a folder called Admin and the web.config file is in the root folder of the website. Its almost like these two pages cannot see the web.config file in the root folder? Why would that be if thats the case?
Btw, when I have this loaded in VS2008 and try to do a Build, it says:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
I would assume the folders on the server are set right since all but two .aspx pages run fine. Just something I thought I would mention. This does not really seem to be a coding issue but something not set right especially since it ran on the other server just fine.
I have a simple online store where there are products that can be put into a cart and purchased. There is a admin page that can be logged into so that new products can be added or existing products can be removed or edited. To get to the admin area I need to put a /admin/index after the main page loads up. If I want to give my friends (from any location) the ability to add new products should I create a link to the admin area on the main page (like at the bottom) of the main page or should I just tell them to type in /admin/index after they go to the webpage?
View 3 RepliesGot a user control that has a Listbox on it and I want to be able to pass the selected value back to the main page.
User Control code:[Code]....
Main page that has the user control: [Code]....
This is the error I get back and I've tried everything I know, but cannot sort it. Probably something stupid but I just cannot see it.
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at bookings_roomadmin.Page_Load(Object sender, EventArgs e)
in \serverd$InetpubwwwrootNETDevelopNewAppNewAppookings