I've a simple, if not primitive, C++/CLI .NET 2.0 class library. It is used in order to wrap some C++ legacy code for the Web Service. The following facts appear to be true:
Primitive C# test program calls class library and it works.
If class library does not refer to any modules of our code base, it works as well as part of the web se...
Every now and then (once every day or so) we're seeing the following types of errors in our logs for an ASP.NET 3.5 application
Invalid viewstate
Invalid postback or callback argument
Are these something that "just happens" from time-to-time with an ASP.NET application? Would anyone recommend we spend a lot of time trying to diagnose...
Among the wall of text that is a pages source; I need to get the video_id,l and t without the quotes so for a section like this.
"video_id": "lUoiKMxSUCw", "l": 105, "sk": "-2fL6AANk__E49CRzF6_Q8F7yBPWdb9QR", "fmt_map": "35/640000/9/0/115,34/0/9/0/115,5/0/7/0/0", "t": "vjVQa1PpcFMbYtdhqxUip5Vtm856lwh7lXZ6lH6nZAg=",
i need the following...
Response.Redirect has two overloads:
public void Redirect(string url)
Parameters:
url: The target location.
public void Redirect(string url, bool endResponse)
Parameters:
url: The location of the target.
endResponse: Indicates whether execution of the current page should terminate.
If I call the first overload, or call the second wit...
Is there a way to scroll the selected node of an ASP.Net TreeView into view after a postback?
In my parrticular scenario the control is repopulated after each postback.
Thanks!
...
How do you update a single field in an Access database using an asp.net website in VisualStudio08. Assuming that the connection has been established, give step to step instructions of what to do in the design view.
...
Hello all,
We're currently working on a solution that involves managing a large number of parts for a project. In our database, we have a project table and we have a parts table. Those parts can be assigned to multiple projects and vise-versa. This is done through a link table.
We're happy on the database side and it wont be changed, h...
I have a user control (.ascx) in my project that I am adding to a page programmatically in the page's Page_Load event handler, like so:
Controls.Add(new MyProject.Controls.ControlWidget());
Databind();
When I try to access the control's child controls from within the control itself, they do not exist.
public override void DataBind()...
Hi - I am currently moving my website from an existing web server to a new machine.
The new machine is WIN Sever 2003 running IIS6. The site is using ASP.Net 2.
I added the following to the <system.web> section in my machine.config file to get the website and any future sites to use South African regional settings instead of the defau...
The sources I've read on making web pages accessible provide conflicting information on whether the 'title' attribute is actually useful. Some claim that it's best practice to give a web control a title attribute containing a more detailed explanation than the visible text on the control provides. Others claim that the default for most...
I am doing some reading, and came across avoiding an internalStore if my application does not need to massage the data before being sent to SQL. What is a data massage?
...
I was looking at one of our legacy applications (ASP.NET 1.1/2.0 Web App) and had a tool to do a count of all key/value pairs. It seems that across 11 config files for the legacy application (app, web, data, and a bunch of custom config files) I found 1172 keys. I assume that some keys are no longer used and I wanted to convince the mana...
I am not sure I am getting the correct definition for what API Usage is. I have a snippet of code that is used for a BulkInsert into SQL from c# application. It said the snippet shows the API usage. How do I translate that?
private void WriteToDatabase()
{
// get your connection string
string connString = "";
// connect t...
Looking for a good overview about .NET web services and SOA architecture. Any suggestions?
Any good links?
...
Hi all,
when i am trying to display result in gridview using LINQ i am getting this error message."Both DataSource and DataSourceID are defined on 'GridView1'. Remove one definition." i am not getting any clue what to do? Here is my code
protected void SelectBtn_Click(object sender, EventArgs e)
{
ShowEmployee();
}
private void Sh...
I'm trying to output a bulleted list (<ul>) in a LiteralControl, but a higher power doesn't like the bullets. When I inspect an <li> element, it has inherited the style list-style-type: none from the extJS styles. However, when I include the correct style in the ul tag, using the following code, the list gets rendered with an empty sty...
I'm using the asp.net charting control, and liking it for the most part. However, I would like my charts to size with the panels they are contained in. I cannot set the width of the chart to 100%, I have to give them an exact size. I don't want to stretch and distort the rendered chart image.
Does anyone have an example of how I might...
I'm about to replace a current e-commerce site with a brand new site. Before, a URL to a product was like this: www.example.com/ProductDetails.aspx?ProductID=123
Now it is like this: www.example.com/en-us/product/123/The-greatest-product-in-the-world
My question is: Should the 301 permanent redirect be done in the Application_BeginRequ...
I have an error message area at the top of a long page. After an ajax postback in asp.net (using an update panel), sometimes I need to display an error message and it will be displayed outisde the viewport and the user might not notice it.
I would like the return (same) page to scroll smoothly to the top of the page, rather than a sudd...
I need to start an external process from my web application. This means using System.Diagnostics.ProcessStartInfo to call out and execute a console app (exe). But I then need to somehow make sure nothing went wrong during it's execution and know when the application completed its work.
What's the best way to both catch all possible err...