New Website Not Placed Inside?
Jan 6, 2010when i create new website visual studio 2008 not placing it inside a solution. this prevents me to add more projects such as class library. does any one know why?
View 12 Replieswhen i create new website visual studio 2008 not placing it inside a solution. this prevents me to add more projects such as class library. does any one know why?
View 12 Replieshow can I use elrte Editor inside asp.net website?(any example)
View 1 RepliesWe've inherited this ASP.NET website. We've already converted it to a web application for different reasons that doesn't matter right now.
But there are 2 folders with 2 .aspx pages inside that does some really ugly stuff (creates a new aspx file with its corresponding code behind and save it inside one of those folders).
So when the proyect was a simple website, that worked, because the created pages on runtime were compiled at request. This is not applicable to a web application.
We don't have time to re-code those ugly pages and do it as it should. So, is there a way to have those 2 pages (and the generated-at-runtime ones) excluded from the project and inside a website that is compiled at request?
I have a website consisting of an index.html, a number of style sheet files as well as some javascript files. Then I needed a way for this site to communicate efficiently with a Microsoft SQL Server, so I was recommended to use the MVC framework to facilitate that kind of communication. I created the C#.net controller code needed to output the necessary information from the database using URL parameters, so now I am trying to put the whole web-site together inside the MVC framework.
View 2 RepliesI get one page inside frame which intends to redirect users to another web site. However, only the the page inside the frame get changed to another web site.
What kind of measure can I use to redirect whole doucment to another web site?
I am working on my first web site using ASP.net. In the past I was working with ADO to build Windows Forms applications.To the point...I want to know how to link my SQL db with the db that is inside in the ASP Web Site project. If I change the database using SQL Management Studio the data will be updated until I remove the .mdf of the project and add again the .mdf from my folder of SQL. I need to be able to update the database outside (Via the WebSite) and inside using SQL Server.
View 4 RepliesI have a requirement to add a new asp.net functionality to an existing static html web site.Its about adding few text boxes and connecting to database and displaying information on the html web site.Is it possible to merge html and asp.net on a html web site?
View 3 RepliesDoes anyone has a idea how to write code for a search box to look for keywords,etc inside the website or sitemap?
View 11 Repliesi try to make website inside folder and this folder it have webconfig file ex.
root/websit1 this a website
i will make another one inside the first one
root/website1/website2
and both it have webconfig file and site map. if remove webconfig from seconde websites is work fine but if i leave it show error this msg
[Code]....
An associate wants to store an Access database in the App_Data folder of a website that lives on a local server and write new data to it daily from Microsoft Access on a client computer on the local network.Internet users will access the Access data from the website.
Is it possibe to write to an Access database in the App_Data folder of a website that lives on a local server using Microsoft Access? And also connect and read with ASP.Net?The internet connection is "Read Only".
I am not sure what the event is called but I'm trying to get it so if your not logged in you can't manually type the page name in the bar at the top. I need to find a way so it will always redirect you to the login page if you haven't signed in.
Also the same goes for sessions, at the moment when my session time runs out my website fails as there is alot linked to sessions from my database, how do I get it so when a session expires upon trying to navigate inside the website you are passed back to the login page?
I have a gridview which is pulling data from sql server2005. Now i have five pdf or jpg files in a folder in my website directory. There urls are stored in sql table like this
myfileuploads/Picture5.jpg
Now i have an itemtemplate in templatefield in gridview
I want that the above url should be displayed in itemtemplate and whenevr user click on this link, related file should be open
i am trying to write file inside my asp.net website folder. i dont get error and the file is also empty...
[Code]....
1 new website attach with existing website..where attached website is behave as pluggable. and used anywhere in any website?
View 7 RepliesI've got an external site that's built in SharePoint 2007. the user of the site need to have an option to view the full site when accessed from a mobile device. I am thinking of just creating a button control to do this. The question is, what would be the best solution to do this?
View 1 RepliesI have the following (abbreviated) code:
<asp:FormView ID="FormView1" runat="server" DataKeyNames="ItemID" DataSourceID="LinqDataSource1">
<EditItemTemplate>
<asp:DropDownList ID="ddlCategory" runat="server" SelectedValue='<%# Eval("Category") %>'
DataSource="<%# GetCategories() %>" DataTextField="Text" DataValueField="Value" />
</EditItemTemplate>
<ItemTemplate>
<asp:ListView ID="lvParticipants" runat="server" DataSource='<%# Eval("Participants") %>' >
<InsertItemTemplate>
<asp:DropDownList ID="ddlCountry" runat="server" SelectedValue='<%# Eval("Country") %>'
DataSource="<%# GetCountries() %>" DataTextField="Text" DataValueField="Value" />
</InsertItemTemplate>
</asp:ListView>
<ItemTemplate>
</asp:FormView>
When the FormView is in Edit mode, ddlCategory is populated as expected by calling GetCategories(), which returns a List of categories. However, when the ListView is in Insert mode, ddlCountry is empty. I put a break point in GetCountries(), but it never gets called. If I change the name of the method, I get an error. So it recognizes the method at compile time, but does not call it at run time. I'm guessing this is an embedded binding issue of some kind, but I'm hoping someone can save me a lot of time by pointing out the solution.
I am loading the autocomplete extender properly but I need the PK from the selectedValue. I have looked at other examples and they do NOT show how to drill into the tabcontainer, then drill into the listview, and then locate the extender value. Here is what I have so far. My "TABCONTAINER" value shows the extender correctly but I am unable to locate it.
[Code]....
I've created a multiple uploadfile user control - upload_multiple_files.ascx:
[Code]....
which has an update panel ID = up_upload_multiple_files this user control will be placed inside a modalpopupextender. My question is when I click in any button AddFile, RemvFile, Upload there's a postback so the page is reloaded and the modalpopupextender disapears Is there a way to to troubleshoot this?
I have a boolean / bit value in the database called "is_paid". Depending on this value I want to Disable a button. (the same would go for example to set a textbox not Visible, but anyway)
What I want is to Disable the button, if my boolean is 1 (true).
First I tried to convert my boolean value to text:
<asp:Button
ID="btnCalculatePayment"
runat="server"
Text="Submit"
onclick="btnCalculatePayment_Click" Enabled='<%#
Convert.ToBoolean(Eval("is_paid")) ? "False" : "True" %>'
/>
But got an error:
CS0030: Cannot convert type 'string' to 'bool'
However, if I use it one a Label it works fine: <asp:Label
ID="lblIsPaid"
runat="server"
Text='<%#
Convert.ToBoolean(Eval("is_paid")) ? "True" : "False" %>'></asp:Label>
So another trial I did was to CAST the data from the database to be the text that I want, like so:
SELECT not_paid = CASE WHEN is_paid = 0 THEN 'True' WHEN is_paid = 1 THEN 'False' END ....
And my code changed to:
<asp:Button
ID="btnCalculatePayment"
runat="server"
Text="Submit"
onclick="btnCalculatePayment_Click" Enabled='<%#
Bind("not_paid") %>'
/>
But got this error:
System.InvalidCastException was unhandled by user code
Message=Specified cast is not valid.
Source=App_Web_absjd3ob
StackTrace:
at ASP.manager_aspx.__DataBinding__control74(Object sender, EventArgs e) in c:Documents and SettingsAdminMy DocumentsVisual Studio 2010ProjectsWebManager.aspx:line 219
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBind()
at System.Web.UI.Control.DataBindChildren()
So I wonder, is it possible to change the "Enabled" property based on by boolean value?
Hello all i have this little issue getting this to work, i have a dropdownlist in asp.net inside a formview and jquery cant find the control im guessing because its inside a form, this is what i got and it works on another page without a formviewi get this errorName 'Country' is not declared
[Code]....
I need the ability to check a box and then store or remove the text of the checkbox clicked to my sql server database. see my code below that is written in vb.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SBN_Company_Cat_Types.aspx.vb" Inherits="ShopBuyName_Test_Site.SBN_Company_Cat_Types" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[Code].....
I have a gridview inside UpdatePanel.
Inside gridview there is a dropdownlist and a button on each row. On button click I am opening a panel through Modal popup extneder.
Inside that pop up there is again a dropdownlist. I am adding an item into this dropdownlist based on the selection from the dropdown inside gridview.
like ddl.items.insert(0,'xyz');
But first time this inserted item is not getting reflected in the dropdownlist. But after one postback this item is getting reflected.
I'm trying to change the visibility of a imagebutton to false, if the imagebutton.ImageUrl="". The problem is that the imagebutton is inside "ListView2", and "ListView2" is inside "ListView1". Who can I do this in vb code... or even a javascript.
View 4 RepliesI have an UpdatePanel with a GridView. This GridView has a template column that is a DropDownList. The problem is that the SelectedIndexChanged event does not fire for the DropDownList. Here is the code:
[Code]....
The codebehind:
[Code]....
I have a listview that is showing its result by using a linq query. The linq query goes like this.
[Code]....
* db.Varer: Varer is a table that contains basic product information like proudct name, product nr. etc. ** a.fk_kategori_id == CatParamId : I'm just saying limit the result according to the Category ID (a.fk_kategori_id). The category id is coming from a dropdownlist (CatParamID) *** Join: Besides the Varer (Product) table I also have another table, Sizes. This Sizes table contains 6 columns (ID_Sizes (int) primary key and the columns: OneSize, S, M, L, XL, XXL all are bit (true or false)). There is a relationship between Varer table and Sizes table. It says that I can only insert a value into the "fk_sizes_id - column" of varer table if that value already exists as primary key within the Sizes table. **** I'm starting by picking basic product values like productId, ProductName etc from the Varer (a) table ***** Then I'm picking the corresponding Sizes values (onesize, s, m, ...) from the Sizes table. Now within my ListView I'm showing the above result by using Eval, like this.
[Code]....
And this works perfectly, but now comes the thing that is causing me trouble. I have the below drop down list (still within the ListView ItemTemplate):
[Code]....
I want this drop down list to be populated with only those of the "linq query's Sizes table result" that are true. By "Sizes table result" I mean these
[Code]....