|
|
How to make Asynchronous calls between two .NET objects
Sathiya
|
|
|
|
|
Use Threads to Asynchronous calls between two.Net objects.
Regards,
Satips.
|
|
|
|
|
Whoa, steady on there matey. Threads are a whole other cup of tea entirely and aren't always what you need. What do you mean asynchronous calls and under what context? If you want two object to act on each other all they need is a reference to the other object, easy enough done with a property or constructor parameter. If your talking two processes that work outside the ASP.NET request lifecycle then you probably do need threads but I'd highly recomend not using them inside the ASP.NET container (ie the web site), it can cause all kinds of headaches.
|
|
|
|
|
I have a VB application that creats an objekt of a c# component, like
Dim objParser As Object<br />
Set objParser = CreateObject("My.BusinessLogicLayer.BusinessLogicObjects.Importer")<br />
This works fine in WinNT2000 Server, but it dosen't seem to be able to get
access in WinNT2003 Server.
Both my compnents are reg. in com+ and my
My.BusinessLogicLayer.BusinessLogicObjects.dll is on gac.
Does anyone know why?
Thanks
Thomas
-- modified at 4:52 Monday 14th May, 2007
|
|
|
|
|
|
Whats the properties you are referring to? If its Project Property, you can right click your project in Solution Explorer and view the properties there.
If you are referring to properties of variables, thats available in code behind file. Open Solution Explorer - select the web form - and press F7 key, which would display the code behind file. In the code behind file, usually the variable declarations would be found after class declaration.
|
|
|
|
|
Hi All,
I am using reportviewer control to show some data on an asp.net page. It is working fine in the Development Machine, but when I move the code over to our Production server I get a runtime error, the runtime error shows up on the webpage and simply says:
An error has occurred during report processing.
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.
That didn't help at all.
Any ideas?
Thanks a lot you guys have been very helpful.
Sajjad
|
|
|
|
|
To catch the exception, enclose the line within a try/catch block and get the InnerException:
Try with this code and catch the exception
try<br />
{<br />
MyForm.Invoke(MyForm.MyDelegate, new Object[] { someParameter });<br />
}<br />
catch (Exception ex) <br />
{<br />
MessageBox.Show(ex.InnerException.Message);<br />
}
Regards,
Satips.
|
|
|
|
|
I could use some help on this issue. I am creating a page and having problems disabling my browser going back to the loging page. When back to the login page, i can click the forward button and find my self on the Default.aspx page without actually loging in. I guess the browser saves this info but i don't know how to create this properly. in my code i am not using cookies. if you think you could help me please do, and if i made this post confusing i appologize.
Respectfully,
Milan
-- modified at 4:15 Monday 14th May, 2007
Croatia
|
|
|
|
|
You need to store something in the session, to tell you that the user is logged in. If they go to the login page and they are logged in, take them to the default page. All other pages are derived from a base that checks if they are logged in, and if not, takes them to the login page.
I thought there was built in support for this, but if not, it's easy to write.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thank you sir,
I will look into this what you said. thank you so much for puting me in the right direction.
Milan Seremet
Croatia
|
|
|
|
|
Hello,
I am new to using ASP.Net.
I currently developing a ASP.Net database application.
I have a login and have used the memberships to create the roles and users, but going to the project properties on the security tab.
My question is, is the App_Data used for just keeping the memberships roles and users?
If I want to use another database I would use a typed dataset and use SQL server. Would I need to add this database to the App_Data folder? The problem with doing that would make my application very big to deploy.
Just want to really know what the Add_data is for, as I am a bit confused with it.
Many thanks for any suggestions and help,
Steve
|
|
|
|
|
If you write your own data layer and call it, there is nothing forcing you to put it in any specific area of your project.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
Need little help in using master page.
In my application, i'm ussing a master page which has a hyperlink control. Also i've used stylesheet for the hyperlink, so that on active of the hyperlink its color changes.
But on navigate url, i'm loading another page (target = _self) which is also using the same masterpage.
So my problem is the hyperlink doesn't show color changed (since a fresh page opens).
Could you please help me out as to how the color change is shown in the new page's masterpage hyperlink.
Thanks...
|
|
|
|
|
Try to use the following code in ur new page's Page_Load Funcion(ASP2.0)
Dim cssLink As New HtmlLink()
cssLink.Href = "~/PathOfCSS.css"'Your CSS Path
cssLink.Attributes.Add("rel", "stylesheet")
cssLink.Attributes.Add("type", "text/css")
Page.Header.Controls.Add(cssLink)
Sherin Iranimose
|
|
|
|
|
I have a Wcf Application and 2 Wcf Services,each Wcf service are having seperate .svc files ,can i have only one .svc file for both the Wcf Services.
Gladston Raj
Software Engineer
Quest Informatics
|
|
|
|
|
Hi All,
There is a search technique in my page. It search record between two dates. I use Access DB. The problem is that it does not display the record on a date, although record exist on that date, my Query is as following.
Select cust_orders_det.VAT, cust_orders_det.TAX from cust_orders_det, cust_order where cust_orders_det.order_id = cust_order.order_id and cust_order.order_date >=#" & ViewState("startDate") & "# and cust_order.order_date <=#" & ViewState("endDate") & "#"
Pls help me. I can give u access of my page.
|
|
|
|
|
Have you included timestamp with the Date ? if not , include the timestamp for from its 00:00:00 for To its 23:59:59
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Yes I have included but it does not work yet.
|
|
|
|
|
Hi
I think the date field of the DB is date type. And the date in view state may be string type. Please make sure both are date type. If both are string type it will not return correct result, because it is using string sort not the date sort.
Gg
|
|
|
|
|
Why the hashes in the string ? I've never seen that before.
Are you certain there are dates in those viewstate properties ? What if you run the SQL directly on your access DB ?
and, as someone said, your start date needs a time of 0:00:00 and your end date needs a time of 23:59:59, if it's going to return all records for the days specified, regardless of time.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How can i give start date 0:00:00 and end date 23:59:59. And that hashes are used for Date in Access. Also my query gives correct result. But gives problem if for example result is of Date 12/12/2007 and I want to search between 11/12/2007 and 13/12/2007.
|
|
|
|
|
How to Transfer Value from One Page to another Page Using Hidden Fields.
I am using ASP.NET 1.1
Mkanchha
|
|
|
|
|
in terms of vb.net
Response.Redirect("MyForm.asp?hiddenvalue=" & HiddenField1.value)
Sherin Iranimose
|
|
|
|