Hi
How to resample an image to square, padding with white background in c# preferable without using any 3rd party libraries (.Net framework only)?
Thanks!
Simple question, if you use the Html Helper from ASP.NET MVC Framework 1 it is easy to set a default value on a textbox because there is an overload Html.TextBox(string name, object value). When I tried using the Html.TextBoxFor method, my first guess was to try the following which did not work:
<%: Html.TextBoxFor(x => x.Age, new { value = "0"}) %>
Should I just stick with Html.TextBox(string, object) for now?
In ASP.NET,How can i know the Specific details about an exception (like What kind of Exception it is (FileNotFound /Arithmentc etc..) )from a General Exception class object
I'm using a ScriptManager / ServiceReference to call as ASMX from client side code, just like the Calling Web Services from Client Script in ASP.NET AJAX example.
Is there an easy way to show/hide a loading animation when I'm fetching data from the web service? I could show it when I call the service, and hide it in the callback.
Is there an event I can attach to? I like the way JQuery has Ajax events for this sort of thing.
I want to programatically configure the proxy settings for the wifi network on my Windows Mobile phone. Does anybody know how to do that using the .net compact framework?
Is it possible to set the Transfere mode to MTOM in .net 2.0 if so, how?
The reason I am asking is because I want to consume a WCF Service on a non WCF-client.
This is a related post
I am using CC.Net with MSBuild tasks to build an application that is composed of a number of solutions and projects. We are using the AssemblyInfo MSBuild Community task to update version info in AssemblyInfo.cs. Unfortunately the AllowPartiallyTrustedCallers attribute doesn't get in and the AssemblyInfo task tells me that the AllowPartiallyTrustedCallers attribute is not supported by the task. Is there any way to add that attribute through MSBuild without having to resort to a custom task that just tacks the line at the end of the file after-the-fact?
If you supply a list of strings to an edit control and set the autocomplete mode and source then you automatically get autocomplete functionality. My question is can I get the same functionality in .NET somewhere without a control. In other words I want something like:
string[] ProgressivePartialMatch( string[] Strings, string MatchText )
and so I want the strings back that would have showed up in the autocomplete, so to speak.
Three questions about reserved words:
Are there any reserved words in SQLite? If so, what are they?
If there are reserved words, is the correct syntax for using one of them as a column or table name still to surround it with brackets? E.g., [User] or [Name]?
Are there any implications with using words that are reserved in other flavors of SQL (e.g., SQLServer) but not reserved in SQLite when using ADO.NET to query a SQLite database?
I am creating a CompositeControl in VB ASP.NET.
My control has an Ajax TabContainer with several TabPanels. I need to code it so a value on the querystring can set the container's ActiveTab.
Regardless of the querystring piece of this issue, in my CreateChildControl code, I am setting the ActiveTabIndex to a valid index position, but the UI still has the index 0 as active.
Any tips? Any help?
DevExpress has announced a free express version of CodeRush (for C# and VB.Net).
http://blogs.microsoft.co.il/blogs/kim/archive/2008/10/28/coderush-for-free-coderush-xpress-for-visual-studio-announced.aspx
I've read about CodeRush Pro and suspect that it is probably worth the money--but I've always had other things I needed to spend the money on. Is CodeRush Express worth the time and effort to download and learn to use. It's help file didn't install and I'm a little frustrated as to how to use it.
Thanks,
rp
How can I programmatically check whether SQL Server CE is installed (System.data.sqlserverce exist) in C# .Net 3.5. Can I get the version on SQL Server CE?
What is the vb.net equivalent of the following psuedo-code using LINQ?
select min(credits) minCredits, max(credits) maxCredits,
min(dollars) minDollars, max(dollars) maxDollars
from players
minCredits_lbl.Text = minCredits
...
maxDollars_lbl.Text = maxDollars
I have the following, but I can't figure out how to get any further.
Dim query = From row in myDataSet.Tables("Players") _
Select credits = row("credits"), dollars = row("dollars")
I have read that to match a word inside of a string using Regular expressions (in .NET), I can use the word boundary specifier (\b) within the regex. However, none of these calls result in any matches
Regex.Match("INSERT INTO TEST(Col1,Col2) VALUES(@p1,@p2)", "\b@p1\b");
Regex.Match("INSERT INTO TEST(Col1,Col2) VALUES(@p1,@p2)", "\bINSERT\b");
Is there anything I am doing wrong ?
i want to get keyboard events without having focus.
my application is a background application and should send "space" key to another app when user presses CTRL+space in any application.
i use .NET and i use C# as language.
What is the impact of creating variables using:
Dim ds as New DataSet
ds = GetActualData()
where GetActualData() also creates a New DataSet and returns it?
Does the original empty DataSet that was 'New'ed just get left in the Heap?
What if this kind of code was in many places? Would that affect the ASP.NET process and cause it to recycle sooner?
Hi,
I have a desktop written with Winforms. Now I have requests that people want to access the data from other machines. First I thought about a regular Client/Server app but now I think best would be if the app could act as HTTP server and send HTML to connected browsers.
Does anybody know if there is a library available to add HTTP server functionality to an app? Ideally it would be able to serve ASP.NET content.
Is the SAP RFC SDK (wdtfuncs.ocx, wdtlog.ocx respectively Interop.SAPFunctionsOCX.dll, Interop.SAPLogonCtrl.dll) an acceptable / recommended way to connect (Microsoft) applications via RFCs with SAP ? Will there be a support and maintenance of the SDK in the future (especially in ECC 6.0) ?
Are there people who use these controls in .NET applications ?
I need to use the Microsoft.Office.Interop.Word namespace to extract if a Word document contains macros, and which ones. The MSDN documentation for this namespace doesn't give much information compared to the documentation on other .Net classes.
Where can I get more informations about this namespaces (examples, complete documentation, etc.). I already searched on Google and SO but didn't much information.
Hey stackoverflow community,
I am looking for a Document Viewer application that I can embed in a Flash/Flex application that supports Microsoft Office documents as well as PDF. I have looked into print2flash as a possibility, but their automated converter executable requires access to the files and directories.
Does anyone know of other alternatives which would have .NET/Java/Other libraries to convert these files to a SWF that can do it based on the download stream, as opposed to the actual files?
Thanks!
Refer to
http://stackoverflow.com/questions/369794/good-and-full-implementation-of-rss-feeds-in-asp-net-mvc
Check the answer of Trevor de Koekkoek.
I am getting this error
CS1061: 'object' does not contain a definition for 'Items' and no extension method 'Items' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
i think the question says it all, but I have an application that uses a .net setup kit (in vs.2005), and the user asked me if it was possible to install it on the c:\Program Files\ProgramName instead of C:\Program files\Manufacturer\Program Name. Thing is, I just can't seem to find the way to do it.
Thanks.
I was serving html referencing svg files in Cassini, and having problems since the mime type was not being sent properly. I ended up writing my own port of Cassini that set the extension based on mime type.
After a good night of sleep I realized that there might be some sort of registry key or config file where I can configure custom mime types for SimpleWorkerRequest, the .NET class that serves content through Casinni. However, I don't know what that is.
Hi ,
I have an application in VS 2008, and now when I am migrating this into VS2010,
I am getting the "XAMLParseException" error on Click event.
Can anybody help me out on this.
Regards,
Manish Garg
[email protected]
For example, we have 19 items on the repeater datasource. And we wanted to separate them using by 5 items.
It's like
01 02 03 04 05 <br />
06 07 08 09 10 <br />
11 12 13 14 15 <br />
16 17 18 19
How are we going to do this in asp.net repeater? Thanks.