I have a ViewUserControl that will be used in some pages in my site, but not all. This ViewUserControl requires a javascript file, so I would like to have the script reference added automatically to the head session of the pages that are using this ViewUserControl, is that possible? I tried to add a content control to it, but looks like ...
I need to implement google checkout using asp.net c#, I was able to get items in my shopping cart populated in google checkout, but was unable to proceed with shipping charges and VAT and what to do after that, i.e., track orders and redirecting to my site so I could add customer's orders. kindly provide me with complete implementation s...
I have a list of data that I need to display in a web page 3 at a time
The first needs to be displayed in a div called "left" , the second in a div called "centre" and the third in a div called "right".
And I need to be able to scroll through the data with a pager. And so the next 3 results will be displayed in a similar way, and so on...
What is the difference between SessionState and ViewState in ASP.NET?
...
I'm working on a forum based website, the site also supports onsite messaging (ie. the users can send private messages to other users), what I'm trying to do is notify a member if they have new messages, for example by displaying the inbox link in bold and also the number of messgages, e.g. Inbox(3)
I'm a little confused how this can be...
How can i perform various task (such as email alert/sending news letter) on a configured schedule time on a shared hosting server.
thankx dude , i love this website.
...
I have an ASP.Net web page which contains an ASP:Timer control
<asp:Timer ID="TimerRefresh" runat="server" Interval="5000" Enabled="true" OnTick="TimerRefresh_Tick">
</asp:Timer>
This is linked to by an asp:UpdatePanel in the page, so that a particular portion of the page is refreshed asynchronously.
<asp:UpdatePanel ID="UpdatePanel1...
I am looking to start a new project and I am trying to decide which framework to go with. I have been using ASP.Net for a while and enjoy it. My first introduction to web applications was with PHP and I still love it. The project should be a medium sized project maintained by 1 or 2 developers with a potential to grow. The only pros and ...
hi,
i have heard of tools, like scanners or what ever they are called, that ill scan your site and find security holes, what is your advise on such tools ?
thanks in advanced.
Update:
my god i just love this site, in matter of minutes i got all great answers.
thank you all :)
...
i have a GridView with LinqDataSource.
im using the following technique to populate a field (Supplier in this case) with dropdownlist, containing values from a different LinqDataSource:
however, lets say my Supplier field is allowed to be null. any ideas how to allow entering null value, alongside with the other SupplierDataSource opt...
I am doing a project on Flight Booking system. My part is to enter the details of the passengers travelling. These passengers may include Adults as well as children. So I need to dynamically generate separate labels and text boxes for all the passengers travelling so that details of all them can be entered.
How can I do that?
...
I intend to start developing an ASP.NET application and I am wondering which database to use. Performance is very important and the database should be able to handle without issues a database of about 50GB. I am wondering however, if a SQL Server license is worth paying for. I have looked for performance and scalability comparisons betwe...
I used something like
Dim i As String
i = Server.MapPath("~/photos/") + fileName
Only once in a project that was working and online, on the offline version, when I run it on my machine, its working, no errors, I uploaded it, it gave me an error like:
'~/photos/http://www.MyURL.com/photos/4411568359267Pic003.jpg' is not a...
I have been working on a small project on and off for a while and I think I am close but it has 'issues'. The idea is to FTP a file up to a 3rd party, they process it and 5-10 minutes later they generate a result set which needs to get downloaded and processed on our side.
So the code might be a little simple, it's just something I cob...
I am having trouble with Html.ActionLink when I have a route that takes more than one parameter. For example, given the following routes defined in my Global.asax file:
routes.MapRoute(
"Default", // Route name
"{controller}.mvc/{action}/{id}", // URL with pa...
I use a view with two partial views inside.
<div id="matches">
<% foreach (var item in Model)
{ %>
<% Html.RenderPartial("RenderMatchesListRowUserControl", item); %>
<% } %>
</div>
<div id="addMatchFormBox">
<% Html.RenderPartial("AddNewMatchUserControl");%>
</div>
The first partial view "RenderMatchesListR...
I have a table which links to another table in the ASP.NET membership schema.
Problem is, all the PKs for the ASP.NET tables are uniqueidentifier so mine has to be too. When I add a SqlDatasource and call its Insert() method, I get the following error:
Cannot insert the value NULL into column 'DiscountCode', table 'CreamDb.dbo.CustomIn...
I have written a web service that reads from a message queue.
This works fine under Cassini.
Now that I have deployed the service under IIS, I receive an error message when the service tries to access the queue:
The queue does not exist or you do not have sufficient permissions to perform the operation.
I have set the anonymous acces...
<asp:DataGrid ID="dgResetPassword" DataKeyField="user_id" OnItemCommand="resetSelect" CellPadding="10" HeaderStyle-BorderStyle="none" AutoGenerateColumns="False" runat="server" ForeColor="#333333" GridLines="None" Width="550px">
<Columns>
<asp:ButtonColumn DataTextField="sap_id" HeaderText="SAP ID" />
<asp...
I'm thinking through data access for an ASP.NET application. Coming from a company that uses a lot of Windows applications with Client Data sets there is a natural dendancy towards a DataSet approach for dealing with data.
I'm more keen on a Business Object approach and I don't like the idea of caching a DataSet in the session then appl...