I am using the following code to draw text onto a jpg image but it requires x/y coordinate percision on where to place the text.
var bmp = new Bitmap("C:\\testing\\Given.jpg");
var gra = Graphics.FromImage(bmp);
var text = "The Berman's";
var font = new Font("Segoe Script", 24);
var brush = Brushes.Orange;
var point = new PointF(130, 2...
User stored his/her profile picture in "Shared%20Pictures/Profile%20Pictures/bhind8ball.bmp" path in SSP.
How to get this List item using this url? Or How to iterate SharePicture/ProfilePicture to get this List item using SPQuery?
...
I have a <div> that I'm filling with a file name of indeterminable size. If the size exceeds the length of the <div> then I want it to be cut down and the last 3 characters replaced with a "...". Currently I have the following:
<div id="fileName" class="field-row" title="<%= fileName %>">
<% if(fileName.Length > 20) { %>
F...
In our current set up we store client-specific data inside of an xml column in Sql Server instead of either creating client-specific columns or tables.
This works fine except that it means we end up needing to use dynamic sql for queries that query into those values, passing into our sprocs a partial where clause generated in code.
W...
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" onrowediting="GridView1_RowEditing">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Button ID="btnEdit" runat="server" Text="Edit" CommandName="Edit" />
<asp:Label ID="lblFirstColumn" ...
Is there some kind of SQL Statement that I can used to do a search on 1 Column in my table that is similar to what I am looking for.
Like if I am looking for something to do with a "Car" but I spell it as "Kar" it must return items of "car".
Or
If I am looking for "My Company" and I spell it as "MyCompany" it must still retun "My Com...
My goal is to allow the user to enter order header and detail data and have it all save with a single button click, in one transaction so the save is all or nothing.
For example:
Tables:
OrderHeader:
Id,
CustomerId,
Comments,
OrderDate,
OrderLine
Id,
OrderId FK => OrderHeader
Produ...
I am relatively new to this, but here is my problem.
In asp.net, I have a parent and a child control. Within the child control I have a dropdown list. Based on dropdown list's selected value I would like to toggle Visibility of Panel in parent control. For instance if I select Show in child control dropdown list, I need to pass true to ...
Hi,
I am working with a solution that contains an ASP.NET website and class library project. It has been working splendidly for years. In the past few months I upgraded it from VS 2005 and .NET 2.0 to VS 2008 and .NET 3.5.
During the upgrade process I noticed know issues and it runs fine in production.
After pushing to production and ...
I want to know what is the difference between web application and web site exactly?
Because I feel in trouble, as I want to integrate tasks. Part of them are built as a web site, and the other as a web application. When I added them to the web site and build the solution, I had many errors that I could not handle. It can't handle name sp...
I am working on implementing a custom membership provider that works against an existing schema in my database and have a few thoughts/questions.
The login control will automatically call the ValidateUser method of the membership provider, so no matter how I implement the provider the only thing the login control cares about is the bool...
Hello,
I have an ASP.NET application on my local machine that works. This application takes an SVG file and creates a PNG from it using inkscape. I have tried to migrate that application to my production server. Oddly, the png creation is not working. The really strange part is, an Exception is not being thrown either. I have taken the ...
I need to write a query as follows which will be bound to a grid
select top 25 * from ErrTable Order by DateErrorad Desc
However, I need to write this query to return only 25 records at a time, but when a user clicks next it will display the next 25 most recent records from the db.
How could I accomplish this?
...
We've got an older ASP.NET app written in VS 2005. I'd like to upgrade it to VS 2008, but still leave the old one around, in case I need to do development in it. It is also in Visual SourceSafe. So, would I just get into VS 2008, do an Open Website from Source Control (or whatever the string is) and put it into a new website under www...
I can't believe my eyes it's so hard to do just that ! Why can't I use MS Access instead of SQL Server Express ? So since I'm stucked with SQL Server Express, how can I make it work on my dedicated IIS 7 Server on Windows 2008 ?
I have copied under the root directory of the server. The website works until I try to login then I get:
...
What are the key differences between these and when should they be used? My initial understanding was that SqlCacheDependency used polling but I've read it doesn't have too for ASP.NET 2.0. I want to know which is most appropriate for caching of linq queries under ASP.NET web server. This will be ASP.NET 3.5.
SqlCacheDependency
http://f...
Can Report Viewer 2010 control be used in Visual studio 2008 (ASP.NET apps) without problems? I saw this post about it and wanted to know if this is supported and is OK.
...
In a ListView, I have a CustomValidator set up to validate a field whenever a button with CommandName="Delete" is clicked.
<ItemTemplate>
<asp:TextBox ID="NameTextBox" Text=<%# Eval("Name") %> runat="server" />
<asp:Button ID="DeleteButton" Text="Delete" CommandName="Delete" ValidationGroup="Delete" runat="server" />
<asp:C...
I have an email template in a file called template.html, how can i use it as mail body in asp.net?
...
How would I decrease the margins between each series (four series, each series has four data points). Or increase the width of the rendered datapoints?
...