|
Nope I don't want any application for this task I want to write a code for it in my application
Thanks for your help
Rock Star
|
|
|
|
|
You can audit you errors in catch block and use SQL mailing option to send mail
|
|
|
|
|
Thanks but I am looking for sending mail on any kind of exception not only database connectivity exception. Thanks to adkalavadia I got what I wanted.
Rock Star
|
|
|
|
|
|
I just want to extend the functionality. Like these days we usually have more than one application in a single project solution. If I got error on any application within same solution how can we capture this bug, instead of writing same code in each application's global.asax file.
Thanking You!
Rock Star
|
|
|
|
|
Hello. I'm building some management page that should allow change profiles for users.
Web config looks like this:
<profile enabled="true">
<providers></providers>
<properties>
<add name="InstanceIDs" type="string" serializeAs="String"/>
</properties>
</profile>
Then I need to load some user's profile, change property and then save. I do the following:
ProfileCommon PC = (ProfileCommon)ProfileCommon.Create(UserName.Value, true);
PC.InstanceIDs = "1,2,3";
PC.Save();
Nothing happens. The profile was not saved or updated.
May be important. The database table aspnet_Profiles has only one row. For my logged in user. Save for logged in users in other cases works. For manually created profiles Save doesn't make a sence.
My best regards
|
|
|
|
|
Hi All,
I need help regarding Javascript in asp.net.
According to my requirement,we have to create a toolkit which is in one usercontrol and if we click on one control of the Toolkit.It shud add the control to the Container i.e.,Div of the Page,in which we are using this Toolkit Usercontrol,and User wants to add more than one control of same type then it should increment ID's of control automatically Like if Useradded one control then ID will be label1 if he adds another one then it will be label2 and so on.
Please I need this help ASAP.Can any one help me?
Thankyou In Advance
|
|
|
|
|
I think you need to clear out the basics on how ASP.NET works.
Using Javascript, you can create any html control and add it to a div container. But that doesnt means it will automatically added to the server. If you want it to be added to the server you need to postback the page and add the control. You will find each control inside Request.Form collection.
|
|
|
|
|
Thanks For ur reply Abhishek..
I know how to do that in server side but according to our requirement No postback shud happen in the page.As I dont know ways that how we have to do that using only javascript, i posted here ok.It doesnt mean that I dont know ASP.NET.if you know try to reply with better ways to get the solution without any postbacks just tell me.Remind that NO one is efficient as they think themselves ok,Even you.
If you dont know solutions then you dont reply ok
|
|
|
|
|
getaccessyr wrote: Remind that NO one is efficient as they think themselves ok,Even you.
I agree.... budd..
My suggestion is not meant to make you down. I just wanted to know if you know the basics clear. I have seen lots of people who doesnt knows basics right..
Well, regarding your issue, say you want to add a control in the client side, use this :
function addElement() {
var element = document.createElement('input');
element.id = 'txtbox1';
element.name = 'txtbox1';
element.type = 'text';
var cont = document.getElementById('mydiv');
cont.appendChild(element);
}
This will add a textbox in the client side to a container div element.
Now If you want to detect what value you enter in the client side to this textbox use :
string valueEntered = this.Request.Form["txtbox1"];
Also if you want to control to appear in the client side, add the control to the divelement in the server side also during this postback.
Actually, when postback occurs, the page is recreated in the server side and thus any client side controls that is created will be removed. If you want the textbox again, recreate the TextBox object using
TextBox tb = new TextBox();
tb.Text = valueEntered;
this.mydiv.Controls.add(tb);
I hope you are clear now.
|
|
|
|
|
|
getaccessyr wrote: ThankYou
If it Helps mark it as answer so tht it will be helpful to others..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
hi Abhishek,
Thankyou for your reply...
Dont think in other way for my reply which i gave earlier ok.
If u got hurted, Sorry for that..........
Wish u a Happy Christmas n New Year In Advance
|
|
|
|
|
No problem.. I didnt hurt.. I am always like to guide people in right path, as most of others here does.
Generally, I used to be very busy with my normal work in the morning, so sometimes cant give exact solution. Its ok.
Merry Christmas to you too.
Cheers
|
|
|
|
|
getaccessyr wrote: if you know try to reply with better ways to get the solution
Just Here many people just post the question without any basics..!
here no body is getting paid. every one is trying to help and learn..!
You ask him a question first if he replied with you a question ..!Is it Wrong..?Just to know how much you have tried?
getaccessyr wrote: NO one is efficient as they think themselves ok,Even you.
Yes thts Right..! But this is not the way to say Mr..!
getaccessyr wrote: If you dont know solutions then you dont reply ok
Its Rude..!
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Hi there
I created a web application on VS.NET 2003 that generates reports using crystal reports v 10… it is working fine on other PCs, but in my PC I get this error every time I try to run the report…
a crystal reports job failed because a free license could not be obtained in the time allocated. More licenses can be purchased direct from Crystal Decisions or through the Crystal Decisions Online store.
My Crystal Reports v10 is already registered and licensed
Any idea how to solve this issue??
|
|
|
|
|
NinaWilliam wrote: My Crystal Reports v10 is already registered and licensed
Then why dont you call their helpline to sort it out.
|
|
|
|
|
I did, but no answer
|
|
|
|
|
Help me please
|
|
|
|
|
Come on guys... help me
|
|
|
|
|
Hi there,
I checked the DLLs files in C:\Windows\Assembly and find out it contains many versions of CR DLLs... I also, checked the .vbproj and web.config files to match the versions and key tokens... and it match... but this still didn't solve the problem
I am getting the same error every time I run a report in my application.
I uninstall CR10 and reinstall it again... but no use...
I cantact the CR Suppot in there website... and I didn't receive any reply from them
If you have any idea how to solve this error, please share
|
|
|
|
|
I am still having this issue not fixed...
I tried to uninstall crystal reports 10 and reinstall it again... but this didn't solve the problem... when I run a web application developed in vs.net 2005 everything is fine and the report run smoothly... but if i try to run it in a web application developed in vs.net 2003 I get an error
I don't know waht to do,,,
|
|
|
|
|
Hi There
After the frustration and being exhausted in searching for more than a month, I finally found a solution to my problem and I wanted to share it with you.
All what I had done I download the Crystal Reports 10 Service Pack 6 from here
http://resources.businessobjects.com/support/communitycs/FilesAndUpdates/cr10win_en_sp6.zip
Then I install it.
After that I run the web application and generate a report
IT IS WORKING !!
I hope it helps ^__^
|
|
|
|
|
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
System.Web.Services
WinCrs
|
|
|
|
|
Hello All,
I need to be able to set an href property of an anchor tag to a javascript which will basically mimick a mouse click event. Can someone show me an example of how to go about doing that. I have barely used Javascript and not too familiar with it. Any help would be higly appreciated. Thanks
~tina
|
|
|
|