I have a Windows server that is intermittently losing the ability to lookup DNS information. I'm trying to get to the root cause of the problem but in the mean time I'd like to be able to monitor whether the server can perform lookups.
Basically, it should attempt to lookup some common hostnames and the display 'Success' if the lookups ...
I'm using Linq to SQL within an ASP.NET MVC application. The model consists of a Decisions table with a foreign key link to an Options table (one decision, many options). So the Model allows me to access the Options collection through the Decision.Options property. I want to allow my users to update the Options collection for a Decisio...
My asp.net application is not using formsauthentication. Instead we make a call to database, check username//password and save the value in session if user is logged in.
Now i need to secure my html files. I put IIS7 in integrated mode and added a handler mapping to a statichtmlhandler that i wrote that basically checks that if the requ...
Hi,
I am using the AJAX Autocomplete extender for ASP.NET 2. Everything works fine...I am calling a webservice which gets me the values to fill the drop down with after 3 letters are typed into certain es. I have set the maxheight attribute and am using a scrollbar in case there are more entries than would fit that height.
However, I no...
How do you set up the routing to handle http://mysite.com/Foo?
Where foo can be any value. I want it to go to /Home/Action/Id where foo is the id.
These are the mappings I have tried:
routes.MapRoute("Catchall", "{*catchall}",
new { controller = "Home", action = "Index", id=""});
routes.MapRoute("ByKey", ...
I use UpdatePanel with DataList element inside. I want to update the contents from DB every 10 secunds. I noticed that updating occures only after the postback. I did the code like
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" E...
The string passed to my custom function is the following:
SELECT key FROM ubis WHERE MemberID = '144'
AND To >='11/7/2009 9:11:23 pm'
AND From <= '11/7/2009 9:11:23 pm'
Public Shared Function GetDataTable(ByVal CmdText As String) As DataTable
Dim myConn As New SqlConnection(ConfigurationManager.ConnectionStrings("Conn").Con...
I am trying to set up a page that will allow the user to browse a file directory on the Web server.
The aim is to allow users to drop files within a given directory structure and the code will create the tree view based off the directory.
When setting the Nodes Navigate URL it maps to the C:\Staging\Files which obvioulsy does not work ...
Hi all.
Hope this is the right place to be asking this, so my apologies if it isn't.
I have written a number of web applications which use Windows authentication to allow uer access.
The only problem is that we have 2 domains at work, one called student.local and one called staff.local. All of the servers sit on the staff.local domain...
I am experimenting with Intraweb right now, for a few small personal-use web apps I am wanting to develop. Learning time is at a premium, so I am very attracted to intraWeb due to Delphi experience transferring so well and immediately -- just messing around with it today, I managed to get a data-driven web app up and running, almost eff...
Hello everybody.
I am trying to learn some ASP.NET MVC.
Please bear with me but asp.net mvc is the first mvc framework i ever tried to learn. I do plan to learn more about mvc framework in different languages, but for now i got asp.net mvc.
I am fairly good with asp.net forms and love them, but would like to have another asp.net tool...
This is hurting my head. In a func i haave the code below. What is hurting my head is the fact i can se &id= in my RawUrl and it the value it should hold meanwhile req["id"] in the if statement returns null
var req = HttpContext.Current.Request;
string u = req.RawUrl; // --> /pstcm&id=5653999025705172077
d = null;
if (re...
Hi every body,
I am looking for a control which can show me selected image detail view which is actually gonna be bigger image in a modal pop up to show a better view of image to my customers. You know those standard modal pop-up resizeable to selected image original size. Dynamicly resizable modal pop-up is actually what I am looking f...
Hi,
I have a few labels on my page with a class of 'error', the rule for .error is:
.error {
color:Red;
visibility:hidden
}
The markup for the labels is:
<asp:Label ID="lblError" runat="server" CssClass="error" ></asp:Label>
I then set the .Text of the error in my code behind. If I use lblError.Visible = True; when I ...
hi
In a .aspx web page, by setting a textbox's text property by code in run time, will Textchanged event handler of that textbox be fired?
...
Can anyone tell me is it possible to executing '.exe' or '.dll' file(s) to run Asp.net on Linux server?
I know its possible with the use of Mono project.
But is it possible with the use of Mono Project?
Thanks in advance.
...
.NET application being tested uses <authentication mode="Forms"> so whenever an instance of WatiN.Core.IE is created the login page appears.
Can successfully fill in the login form and authenticate, but wondering how to handle this for multiple tests? As soon as the IE instance is released, the next test must log in again.
Does WatiN h...
I'm trying to do something very simple, yet I can't seem to find the proper way to do it.
I have a MySqlDataAdapter object which contains the result of a query. I want to parse the results of this query before rendering them in an ASP.NET Repeater. (convert date from Unix Epoch to human readable, that sort of things).
So far, I'm unabl...
Hi all.
Can I use Internet explorer's "find" to find a number (and go to the first result) in a webpage after I open a new IE window through ASP.NET?
Edit : Maybe I should clarify, I am opening a page on a site that is not mine, I cannot embed and run javascript on it...
Is this even possible?
Thanks
Roey
...
I have some IO code that reads a stream within a try..catch. It catches IOException and calls System.Runtime.InteropServices.Marshal.GetHRForException()
within the catch, in an attempt to take different actions based on the HResult. Something like this:
try
{
stream.Read(...);
}
catch (IOException ioexc1)
{
uint hr = (uint) Mar...