I have a ScriptControl that uses an image as an embedded resource and GetWebResourceUrl to generate the WebResource.axd URL. I am currently using GetScriptDescriptors() to send the URL to the JavaScript object.
The ScriptControl can be in a Repeater, so you may have 20+ instances. They all use the same images (not customizable through...
hi I am new in XML and wondering if you point out how to bind xml api url in gridview.
thanks.
...
I have a list:
var myList = new List<string> { "red", "blue", "green" };
I have a string:
var myString = "Alfred has a red and blue tie";
I am trying to get a count of matches of words in myList within myString. Currently, I am using .Contains(), which gets me a count of 3 because it is picking up the "red" in "Alfred". I need to...
I'm used to using VB.net for web programming.
Often, I have something like:
Dim s as string = Session("s")
I get a string value for s from the web session. If there is no value in the web session, I get a blank string.
However, AFAIK, in C#, I have to have something like the code below to do the same thing.
string s;
try { s = Ses...
My code:
protected void Button1_Click(object sender, EventArgs e)
{
CustomControl myControl = new CustomControl();
UpdatePanel1.ContentTemplateContainer.Controls.Add(myControl);
Button btn = new Button();
UpdatePanel1.ContentTemplateContainer.Controls.Add(btn);
}
After click new button app...
Stat Counter Not showing Accurate Hits
Webiste: www.curbappealconcepts.com
I have pasted xhtml code into the head tags of my site.master page for the stat counter.
This site was built with Visual Studio 2010 in C# ASP.NET
I dont know if any of this matters just wanted to be thorough.
The stat counter im using is from www.statcounte...
I'm trying to migrate an ASP.NET 2.0 app (WebForms) to ASP.NET 3.5. I've finally fixed a 500.19 IIS 7.5 error I was having. Now it will run, so long as I don't attempt to debug it. If I do attempt to debug it I get an error message. I've searched for help on this error and there's precious little out there. Here's the text of the er...
Ok, let me start this with I am more of an MVC person. I have a result set that I am trying to add paging. All I really want is a previous and next button on my page which are Link controls. I need these controls to post back to the same page, but have a query parm like page=4. How do I add these links? I see the PostBackUrl propert...
I have a Repeater on my page. There's nothing spectacular about it.
<asp:Repeater runat="server" ID="rptBusiness">
<HeaderTemplate>
<table>
<colgroup>
<col width="170px" />
<col width="75px" />
<col width="75px" />
</colgroup>
<tr> ...
Hello,
Recently my application has been getting tons of these exceptions.
I run ASP.net 3.5 on a Windows XP machine. The exceptions tend to be random.
The application uses the Telerik RadControls for ASP.NET AJAX Q2 2010 SP1.
The exception and StackTrace are below.
Exception Type: System.FormatException
Message: Invalid character...
How can I create an instance of a web control at runtime using reflection? I created a series of controls that implement a common interface and I would like to create these controls based on the name of the control which is stored in my database.
I have attempted (and failed) to create an instance of these controls using Activator.Crea...
So a friend of mine has a small business, where he sells paper products, as well as custom posters, banners, and the like. He doesn't have a website, so he's hired me to create one for him, where users can place orders, check the status of their order, etc.
Other than his requirements, I'm trying to come up with other common functionali...
I'm just now getting familiar with the .NET chart controls. I'd like to know if I can save the contents of a chart as a .jpg or similar file on the server.
I would like to be able to have the user download the file or display it to the user in a non-.net page.
I think it should be possible to do this. How?
...
Hi guys,
I'm trying to implement a .NET Custom Validator that uses $.ajax to query a WebMethod on the same page and return a boolean value to indicate whether the result is true or false.
The WebMethod I'm using is really simple
[WebMethod()]
public static bool IsPromoValid(string code)
{
string promoCode = "ABCDEFG";
bool res...
I'd Like to be able to have my web service accept multiple POST parameters, some of which will be XML. Is this possible? The code below will generate a server error:
WebResponse resp = (WebResponse)req.GetResponse();
string programId = "1";
string statusMessages = statusMessagesXML.ToString(SaveOptions.DisableFormatting);
...
Good afternoon ladies and gents --
I've been tasked with finding and fixing a bug in an unfamiliar legacy application that had some recent changes made to it, but I don't have an easy way (that I know of) to test my theory. I'm hoping your collective knowledge will verify the test for me.
This application lazy loads lookup lists (tongu...
I'm trying to do this on a DotNetNuke site with multiple portals, so I want to do this server-side VB loads a javascript file if it exists. Any ideas?
...
In an asp.net mvc application, I would like to be able to generate views, where the routing engine will create all URLs that point to a different site, i.e. change the application path.
...
We're using URLRewriter (http://urlrewriter.net), and would like to rewrite queries like this:
domain.com/find/red-boots
to this:
domain.com/search.aspx?k=red+boots
The sample code to go into the web.config is this (I'm a bit unfamiliar with this syntax)
<if url="/tags/(.+)" rewrite="/tagcloud.aspx?tag=$1" />
How can I code this lin...
I am trying to implement DotNetOpenid in my asp.net website. However, the more I try to read up on DotNetOpenid, the more confused I get. My initial goal is to allow user login process (similar to StackOverflow).
I attempted to get some help via this question http://stackoverflow.com/questions/3882248/dotnetopenid-tutorial/3895442#389...