i have to do some message exchange with a 3rd party (in a website).When the client posts a page, i start the message exchange. When that doesn't succeed for some reason, i report this to the client by rendering the page with a message.On the background, in a separate thread, i start a process to send abort messages to the 3rd party. I can't do this while the user is waiting for the page to come back, because it might take a few minutes.But in a test project, the test ends when the message to the 3rd party is sent, and after the new thread is started. But it seems that the new thread also ends, when the test is done.
Is that normal behaviour?I do start the thread in a new class with a reference to 2 objects from the class which tries to send the message in the first place, may that be a problem?EDIT: it keeps running when the whole process is started in IIS
I'm new to asp.net and I have quite an annoying issue. I have a masterpage and a number of linkbuttons to navigate through the aspx pages.
My problem is that when I click on a linkbutton than the one selected, it doesn't highlight the selected linkbutton, because postback has been initialized. Instead it highlights the linkbutton that I have specified in the Page_Load event.
As you can see, nothing special; just colors and beautiful things.
I click on the blue Edit button and it fires the OnClick postback just fine.... in Chrome! But if I do the same in IE8, it just does nothing; doesn't even detect a click.
I removed the tag and kept just the word "Edit", and it works just fine in IE8 as a simple underlined link; the postback fires.
So, Why can't IE8 accept anything within LinkButton?
I am doing Automated coded ui testing in asp.net 2010 for web application. I am testing site and i need to know how can i create the test which will work with all browsers. Right now i created test in IE 8 but its not working in Firefox. So is there any way i can create one test and will work in all browser.
In my user control I have gridview, and this grid is created programmatically, using Itemplate. In InstantiateIn methods I have this code.
Select Case _templateType Case ListItemType.Header Dim linkButton As New LinkButton [code]....
I want to wired up Click event to this LinkButton, and use this event in code behind.This is constructor of GridViewTemplate how implements ITemplate
Public Sub New(ByVal type As ListItemType, ByVal colname As String, Optional ByVal infoType As String = "") 'Stores the template type. _templateType = type 'Stores the column na [code]....
and i have this call from user control:bfield.ItemTemplate = New GridViewTemplate(ListItemType.Item, dt.Columns(col).ColumnName, "label")
where is Dim bfield As TemplateField = New TemplateField()
I transferred my precompiled Default.aspx and all related image files to the main folder of my www.freewebs.com account. I also transferred App_Code.compiled, App_Code.dll, App_Web_c871ipga.dll, App_Web_s_wu1khu.dll, App_Web_vy0pwb06.dll, and default.aspx.cdcab7d2. compiled in a new bin folder. When I accessed the URL address for the Default.aspx file in my freewebs account, all that I got back on my browser was: This is a marker file generated by the precompilation tool, and should not be deleted!
I also tried to deploy without precompilation. However, when I transferred my uncompiled Default.aspx web page to my freewebs account and entered [URL] what I got back on my browser was only a listing of the source code for the web page complete with my C# script code. Why can't I execute an ASP.NET web page?
I"m trying to test for the existance of 1 or more files. How do I test for the 404 error so the program doesn't blow up on me?The remote server returned an error: (404) Not Found
I've sucefully runned it in my local server (Windows Server 2003 Standart) but after tried several times upload it to my hosting, it never works. The web hosting company told first that they didn't had System.Web.Routing.dll installed (but they said that they've .NET 3.5 installed..), then i've copied the dll to Bin folder and again with no sucess. Can someone give me a very basic example of and website using System.Web.Routing.dll so i can do the "final" test on webhost before i go to the company because they say that they have 3.5 installed but i'm starting to see that they didn't have? If possible, is there another way to test if this dll is installed in web hosting? (test all .dll running for example)
getting error saying Operator '<' can't be applied to operands of type.TableCell' and int What am I missing? How does this differ from a GridView container?
What is the best way to unit test the presentation layer of a web forms application? I have been told that there are frameworks available like Watin. Are there better tools around?
I have more products in a single aspx page. So I want to upload this page in my remote server where my website is running. How can I test whether search engine can resolve my product on that page?
I have a formview in edit mode, with submit button and checkbox. I want to click the button and have it test to see if the checkbox is checked. The ID of the checkbox is "TestCheckBox". I figured it would be something like, If TestCheckBox.Checked then, but if I type in TestCheckBox it says it's not declared, even though it is a control in the formview.
I need to implement simple quiz in asp.net that displays question, its options and user can answer these questions by checking options and submit the result.
I think ListView is the best control to implement in a way that each Item is question and I need to display Option of the question using check box list.
In ItemTemplate, how can I specify such condition that give me the list of options to select for the user for the particular question in the same row. Just like this:
1. Question Text goes here: (Options to select for the user)checkbox1 goes here; checkbox2 goes here
2. Question Text goes here: (Options to select for the user)checkbox1 goes here; checkbox2 goes here and so on
I am trying to get the value of the LinkButton that I click on. I am passing in the command argument =<%#'Xpath("ID")'%>. Since, the Linkbutton is inside the Repeater and am dynamically binding values from xml. I need the value of clicked link to send as attribute in xmlrequest again. I tried this but din't work: my aspx as linkbutton with command argument = <%#'Xpath("ID")'%> and on server side I said : string str = linkbutton1.commandargument. But i m not able to access linkbutton outside of it. Is there someway of getting the value of linkbutton?