|
Hi anybody pls help me its very urgent
I am facing a problem while doing commit & roll back in one of my pages. My problem is i have
to upload data from one database(accounts) to another say Gaccounts programmatically.
In my web.config i wrote 2 connections by name con(for database accounts), con1(for
Database-Gaccounts).
Then in my program i am using commit & roll back.
I have to check the code from ledger table (say 0003) with code in accounts table if it exist then i have to check whether that code exits in accounts table of gaccounts database. If it is not there I have to add more value in the code like (0003tvm) and then create a row in accounts table of gaccounts database with this new code. This much am not feeling any problem.
Now I have to update this new code back in accounts table of accounts database. .here the problem comes if roll back happens then also updating of this code take place
Creating complete error .I am giving database details in a class file. In this project I used 2 class files say objdb-representing accounts and objmdb-for gaccounts.
‘This is the code I am using for roll backing
Dim objCon1 As New oleDbConnection(ConfigurationSettings.AppSettings.Get("con1"))
Dim objCmd As New OleDbCommand
Dim objTran As OleDbTransaction
objCon1.Open()
objTran = objCon1.BeginTransaction
objCmd.Connection = objCon1
objCmd.Transaction = objTran
Try
****** I have given the code for updating as *******
'sSQL = " Update accounts set txtmastcode='" & snewcode& "'WHERE txtcode='" & objdr("txtcode") & "'"
ireturn=objdb.executenonquerry(ssql,objdb.opendb)
objTran.Commit()
Catch ex As Exception
objTran.Rollback()
MessageBox.Show("Transaction failed. Contact Administartor")
MessageBox.Show(ex.Message().ToString())
Finally
objCon1.Close()
objCmd.Dispose()
End Try
Please anybody help me , this is very urgent.
-- modified at 13:25 Wednesday 24th January, 2007
|
|
|
|
|
Hi,
I have configured my project in the server.
I am using menus in my project.
I get a java script error as "menu is undefined" in the server.
But locally the same setup is running fine.It doesnt give any error message.
So i found that there is an error in the path where menu is defined.
I hardcoded the path as .It runs fine.But this should be set globally.
If i give globally as <script language="JavaScript" src="../scripts/menu.js">
it doesnt work.
Is there any ways how to specify the path to run the application in the server.If anyone knows reply me as soon as possibe.
Thanks,
Anandhakumar
-- modified at 6:09 Tuesday 23rd January, 2007
|
|
|
|
|
Try:
More Info:
<a href="http://msdn2.microsoft.com/en-us/library/ms178116.aspx">http://msdn2.microsoft.com/en-us/library/ms178116.aspx</a>[<a href="http://msdn2.microsoft.com/en-us/library/ms178116.aspx" target="_blank" title="New Window">^</a>]
<div class="ForumSig">Declan Bright
www.declanbright.com</div>
|
|
|
|
|
Thanks. I tried with the solution u gave, but doesnt seem to work.
Can u give me some other solution.
Thanks,
Anandhakumar
|
|
|
|
|
Hi,
I am using tag in one of my pages to display text entered into a text box. The problem is I don't want horizontal scroll bar. How do I achieve this?
If I am using
style="OVERFLOW: auto;height=150;width=125"
I am getting both the scroll bars. But I want the behaviour similar to wrap text property.
Regards,
Uma
|
|
|
|
|
style attribute overflow: hidden
Keep Smiling !!!
Parwej Ahamad
g_parwez@rediffmail.com
|
|
|
|
|
There are two attributes - overflow-x and overflow-y, which control the scrollbars independently, so to hide one and show the other, use something like...
<div style="overflow-x:scroll; overflow-y:hidden"></div>
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
hi
I am showing my data on webpage thro gridview. I want to add context menu
in it. I dont know how to do it. I m doing my project in vs2005 using C# lang.
plz help guys.
|
|
|
|
|
Hi bipin,
Following Microsoft Cutting edge article shows good example with source code on context menu but only limitation is, this context menu is running in IE not in firefox.
http://msdn.microsoft.com/msdnmag/issues/05/02/CuttingEdge/
Regards,
Swap.
|
|
|
|
|
swap
i know that link...
but they used readymade option overthere called contextmenu..
how can i get that menu?
i hve not seen that in my gridview property..
i think that contextmenu is custom control.
|
|
|
|
|
Bipin,
You are right, it is custom control. But to put it in to gridview you can add it in to cell during databind method. But it will not feasible to put it in all cell, so if you have functionality to put it in one column or particular cell than it will work.
and if you want to add to whole grid than you need to develop custom control and for that javascript context menu will help you, this menu attaches with any html element in case of gridview(table), and popup on right click of that particular html element.
http://www.dynamicdrive.com/dynamicindex1/jsdomenu/index.htm
Regards,
Swap.
|
|
|
|
|
thanks man..
ur absolutly right..
i m thinking abt javascript...
i think it is little bit lenthy process..
i wil see the link .
thanks
|
|
|
|
|
Hi Bipin,
I just surf around and got this link on codeproject itself may be it helps you.
http://www.codeproject.com/aspnet/dynamenu.asp
Regards,
Swap.
|
|
|
|
|
hai
i want to refresh the page of asp.net without blinking.my code is
.
if i given this code means page are refresh with blinking.so i want code for refresh without blinking.plz help.
regards,
sathyanarayanan
|
|
|
|
|
You can use AJAX to get updates from the server and then update the page without reloading it.
---
Year happy = new Year(2007);
|
|
|
|
|
hi i have written code in xml to load ads to the adrotator control , the images are not changed so i added
the below code to refresh the page
then the page will refresh for every 5 seconds , but page was blinked (i mean visible,invisible )
what is the solution?
|
|
|
|
|
HI
try This
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hi,
I have this program that I'm trying to compile and it flags this error:
The type or namespace name 'src' could not be found(are you missing a using directive or an assembly reference?) I've tryed to look for a .dll called src I can't find it. It's only a folder called src that I find. Am I missing something?
thank you
|
|
|
|
|
when we using the ajax enabled project, there's a problem that we cannot share it in the network and cant be debugged. the following error shows when debugged from network,
"An error occurred loading a configuration file: Failed to start monitoring changes to 'Y:\F_AjaxEnab' because the network BIOS command limit has been reached. For more information on this error, please refer to Microsoft knowledge base article 810886. Hosting on a UNC share is not supported for the Windows XP Platform."
Y: is the drive which is mapped.
Pls give me a solution..
|
|
|
|
|
I'm trying to send an email from a website with mailmessage.
It works all fine, but...
Only 1 recipient will get the message.
Other recipients or cc's won't get delivered.
The recipient that gets the email can see in the header that the message is send to multiple recipients and cc's.
I'm sure the email adresses are correct. I tried sending them in the same domain, other domains etc...
When I send the message to a file, it also looks OK.
There are also no errors thrown.
What am I doing wrong ?
Const ToAddress As String = "remco@a.nl"
Const fromaddress As String = "test@a.nl"
Dim mm As New MailMessage(fromaddress, ToAddress)
mm.CC.Add(New MailAddress("corinda@a.nl"))
mm.To.Add(New MailAddress("corinda@a.nl", "Jan A"))
mm.Subject = "onderwerp"
mm.Body = "Inhoud"
mm.IsBodyHtml = False
Dim smtp As New SmtpClient
smtp.Send(mm)
|
|
|
|
|
Hi,
Can anyone tell me wat is the best way for ONLINE payments using credit cards..(it has to be world wide)
I know there is PayPal ..can any one tell me the steps in detail...
Awaiting for ur speedy resposes
Thanx in advance!!
Regards
Bino Varghese.V
|
|
|
|
|
Hi Bino,
following are paypal sdk,
https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/software_dev_kit_asp_net-outside
you can develop an asp.net application with paypal integration by following way it contains step wise instruction
http://www.devsource.com/article2/0,1759,1766266,00.asp
and if you are looking for other payment gateways than following are some of the payment gateways like paypal
http://www.ccavenue.com/
http://www.abcpayments.com/
http://www.transecute.com/
Regards,
Swap.
|
|
|
|
|
Hi Swap,
Thank u for ur Timely reply .vl check those sites.
Regards
Bino Varghese.V
|
|
|
|
|
Hi Swap..
I came to know that Paypal service is not in India..is that True???
can u plz suggest me some other alternative which accepts both Dollar and money transfer(i.e)both US and India Credit Cards...
Awaiting for ur reply..
Regards
Bino Varghese.V
|
|
|
|
|
Dear All,
i am bit new to the dotnet world. i am making web application using asp.net ,C# (Visual studio 2005).i have .jpg file(which can be set to destop). i want it to show on Full (or even in content area)page as a background. Is it possible.
please guide me
thanks
regards
imran khan
|
|
|
|