|
Why are the databases different ? What benefit does this give you ? .NET has classes optimised for SQL Server and for Oracle, ideally you'd have two data layers and be calling both.
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 )
|
|
|
|
|
Actually this question is asked in an Interview.
Lets us consider i have same table and structure in both Oracle and MS SQL Server.
i am updating same data in Oracle and MSSQL simultaneously using their corresponding providers.
During that time if one connection fails while updating,other will be updated.
And finally i want the data to be present in both the tables.How to do this?
Sathiya
|
|
|
|
|
Hi Friends
I have created an ASP.NET application to send Email. It is working fine. Now I want to know how to send an Email on a particular date. For eg: The Email should be send tomorrow. How can I achieve that.
Thanks in advance.
|
|
|
|
|
Hey go with the Calender control or fix the date with the drop downlist.
When the user clicks a link in the Calendar control, instead of the normal processing that submits the form and selects the clicked day, I want the custom JavaScript procedure to be invoked. By default, all the links rendered by the Calendar control generate a postback to the server. What I want instead is for them to point to the custom SetDate procedure. Changing the default output for the table cells that contain the day links is pretty easy thanks to the Calendar's DayRender event, which is raised every time a day is rendered and which provides a reference to the table cell being created. The following code snippet replaces the default cell's content with my own hyperlink control, which has the same text but points to the JavaScript procedure:
Private Sub DatePicker_DayRender(...) Handles DatePicker.DayRender<br />
Dim hl As New HyperLink()<br />
hl.Text = CType(e.Cell.Controls(0), LiteralControl).Text<br />
hl.NavigateUrl = "javascript:SetDate('" & _<br />
e.Day.Date.ToShortDateString() & "');"<br />
e.Cell.Controls.Clear()<br />
e.Cell.Controls.Add(hl)<br />
End Sub<br />
<br />
Regards,
Satips.
|
|
|
|
|
Hmm, am I missing something or was that all totally unrelated to the original post?
|
|
|
|
|
|
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.
|
|
|
|