I have just started programming and have taken over someone else's work and they did everything in VB.Net.
How hard would it be to migrate away from VB.Net - all our pages are coded in VB but i'd like to learn C# and then move forward with that.
I use a Mac so it's seems easier for C# to work properly on a Mac
...
Back in the day when we were mostly submitting forms from one page to another we used to have to validate all post parameters to make sure that the ids somehow belonged to the user that was currently logged in. After all you didn't want a "hacker" to be able to pull someone else's information. In modern ASP.NET application in a situati...
so,
I've got something like this:
there's an ASP.NET application (1) that references WCF service (2) that references .NET application (3). (1) creates query gives it to (2), (2) gets some info from (3), processes it and returns it back to the (1).
And here's the issue - there's DataContract class for request (that is used by both (2) an...
I'm working on a web page to add/remove IP Addresses to the IIS IPGranted List for a website.
I'm finding I can connect and accurately return a list of all of the Allowed IP Addresses from IIS.
However, if I try to edit it, on CommitChanges() I'm finding that the com object is returning a HRESULT:0x800700B7 (Meaning it can't create a f...
I've done quite some research on which ASP .NET Facebook SDK to use. Acording to this post (http://msdn.microsoft.com/en-us/windows/ee388574.aspx) old FacebookToolkit should not be used for new projects but instead we should use the all new and shiny Facebook C# SDK.
But he problem is that it lacks documentation, especially beginners ex...
Hi,
I am using the agility pack to do some screens scraping and my code so far to get titles is:
foreach (HtmlNode title in root.SelectNodes("//html//body//div//div//div[3]//div//div//div//div[3]//ul//li[1]//h4"))
{
string titleString = "<div class=\"show\">" + title.InnerText + "</div>";
shows.Add(title...
We enabled static resource caching in our ASP.NET application like this:
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseExpires" httpExpires="Thu, 29 Oct 2020 00:00:00 GMT" />
</staticContent>
</system.webServer>
Using a sniffer, we can confirm that the Expires tag is actually being placed on the ...
hi,
i want to load a page after a textbox looses its focus.But it not working. What is wrong in it?
$(function() {
$("#txtBox").blur(function() {
$('#LoadPage').load("Defult.aspx");
});
});
...
Hi,
Is it possibile to have templateField from detailsView visible only in inserMode?
<asp:TemplateField HeaderText="My Header" SortExpression="TypeName" Visible='<%# Eval("DetailsView1.CurrentMode == DetailsViewMode.Insert")%>'>
this doesnt work exception is:
Databinding expressions are only supported on objects that have a DataBi...
i'm having a gridview which is binded to a dataview, OnPageLoad i'm populating gridview records. and i have a textbox and a button, So now i want to add more Records to GridView but this records should not be get added into DB, they just added to the page and of course the default records which are coming from db stay.
<asp:GridView id=...
Hi guys.
I have data on SQL server like this:
ItemID Quantity
1 3
2 0
3 7
I would like to display that data in GridView using templates. The thing is that instead of Quantity in numbers I would like to display text:
Green text saying "item on stock" when Quantity > 0
Red text saying "item unavailable" when Q...
When are declared values bound to properties of a user control in WebForms?
I have a user control which has a public property which is an enum type. In my aspx page I'm setting it's value declaratively. In the ascx I'm outputting the value to the page using <%= %> syntax. The value that is output by the echo syntax is always zero 0. The...
I have a profile object in session with profile information for the currently logged in user. I wand to be able to inject it into my business classes so I can do validation etc in them without having to pass it in the parameter list in every method.
I have tried something like this in my ninject module:
Profile profile = HttpContext.C...
Hi. I have a page like Order - Order lines. Order represents by some textboxes and ddls, Order lines represents by GridView.
I want to let users add order lines without save changes to database. For example: he adds 4 order lines, fill order info and then hits Save button. Only an that moment all information should be saved to DB.
When...
Pls help me. I have created gridview with list daatsource. I want apply sorting event for gridview to sort all columns.
Here is my code:
protected void grduAdminSerservice_Sorting(object sender, GridViewSortEventArgs e)
{
DataTable tbl = grduAdminSerservice.DataSource as DataTable;
if (tbl != null)
{
DataView ...
I'm displaying some content using the following bit of code:
<% foreach ( var m in ViewData.Model) { %>
<div class="content">
<%= m.article %>
</div>
Which shows a news article from my database. What I want to do is truncate the story to be smaller, how do would I do this? Also the article column contains HTML tags such as <p> so the...
I am implementing a custom membership and role providers where I need to store all the role/membership information in the user's session.
I am implementing these custom providers inside a class library project (different from the website project) and need to access the session in them. The idea is to store the role/membership related in...
Hello
I am using Infragistics tools in my application.
Here I am using a web panel which has a details view, text boxes,buttons and a couple of list boxes and all the above are created dynamically in a repeater control.
The items in one listbox are moved on to the next listbox when i click a dynamic button which has id btnNavi.
When i...
I have a new project where I want to use MVC (I will be learning as I code), and I have never used linq or entity (or mvc). Which should I use? Does it matter?
edit: I will be having a lot of different databases, from Oracle to FoxPro.
...
To see the example please visit the web page: http://www.youpluswephotography.com/
and click one photo you will see many photos appearing. How can I make it using JS or JQuery or what else? I will use .NET for active server pages.
...