|
When I want the exception to bubble up to a higher level to be handled at a business process level where I can centralize problem logging and abort whatever transaction is going on at the time, which is most of the time.
Doing it your way would limit the exception to that function, where you'd have to throw a new exception to get it to go higher.
But, don't take my word for it. There's tons of articles on the subject: Google Results[^]
|
|
|
|
|
You'd want to handle the ThreadException [^].
If you want to swallow exceptions, do it there - after logging them or something like that. There's an example on the page on setting up basic exception-handling.
I are Troll
|
|
|
|
|
Yes. See this[^] code snippet.
/ravi
|
|
|
|
|
to add try catch block u type try and give two tab entry using key board u will get the try catch block automaticly
|
|
|
|
|
Hi All,
I have a created Custom Culture Info using CultureAndRegionInfoBuilder.in C#
Now I want to edit some of the properties of that created Custom Culture.
Any body has any idea, How to do this?
Regards,
Sunil G.
|
|
|
|
|
Hi, One of my client is providing FTP Acess over VPN Connection.
Whenever i try to use FtpWebRequest object.GetResponse().GetResponseStream() throws error message "fil not found,no acess,..."something like that.
I found the "Proxy" property is available for FtpWebRequest object.
can anyone help how to use this Proxy property or is there any other way to connect FTP to list a file using c#.
Thanks & Regards
Madhi
|
|
|
|
|
Message Closed
modified 23-Nov-14 5:51am.
|
|
|
|
|
If so, whether I need to connect through c# or CISCO VPN client software.
if i connect through CISCO VPN client software it shows connectionEntry:"SMARTMD VPN MPARTNER",
HostName:"XXX:XXX:XX:XX",
Transport:IPSEC/UDP
how can i obtain the ip address, and whether i need to send the Credential property of FTPWebRequest?
|
|
|
|
|
hi! friends,
I am using modalpopextender to display the data.
my modalpopextender is open on Linkbutton click.
i have a multiple linkbutton in datagrid.
My query is:
i want to display the record from the database in Label which is placed on modalpopextender.
i already retrieve the data from the database but, I don't know how to put these information in Label
Actually the linkbutton is not shown on my ascx page because
some internal coding. so i can't generate click event.
Please guide me: I display my some code for your help,:
<asp:LinkButton ID="lbtnID" runat="server" Text='<%# Eval("ApplicantId")%>' CommandArgument='<%# Eval("ApplicantId")%>' CommandName="Det"></asp:LinkButton>
<asp:Panel ID="pnltest" runat="server" >
<table>
<tr>
<td >Applicant Name</td>
<td ><asp:Label ID="lblAppName" runat="server"></asp:Label></td>
</tr>
<tr>
<td >Applicant Code</td>
<td ><asp:Label ID="lblCode" runat="server"></asp:Label></td>
</tr>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lbtnID" PopupControlID="pnltest" RepositionMode="RepositionOnWindowResizeAndScroll">
</cc1:ModalPopupExtender>
thanx and regards
modified on Thursday, October 28, 2010 6:18 AM
|
|
|
|
|
|
Hi,
I've been trying to view blob images from sql but when i select the colom it states System.byte[]
I think this where my problem is?
Please can you assist?
Thanks,
Monde
|
|
|
|
|
|
i want to increase the space between to record front the front end by passing value as a parameter like 1,2,3
that should increase line spacing by 1,2,3 lines
how can i achieve this plz help
|
|
|
|
|
Hi - as we all know when developing an application in Visual studio (assumming c#), you can change a controls property like for example a buttons text property to reflect its function which is all very nice. But what happens when you say don't want to change the text property, infact you done even want any text there? All you want is a logo instead, how do you go about getting a logo on a button, give that it does not have a image property?
|
|
|
|
|
Tichaona J wrote: how do you go about ...
As always[^].
|
|
|
|
|
Oh, that is beautiful. Well done. I haven't laughed that hard in quit a while.
|
|
|
|
|
if you prefer the competition's engine: Bing[^].
|
|
|
|
|
Oh
That was good one!
In soviet Russia code debugs You!
|
|
|
|
|
- A button has an image property.
- A button has a text property.
- Either or both of those may be specified.
- You have 4 possibilities.
- One of which will meet your needs.
/ravi
|
|
|
|
|
|
Apologies - I should have specified that I am developing a WPF application. There doesn't seem to be an option to add an image, unless I am just missing it....Confused
|
|
|
|
|
With WPF your options are even greater, if I remember correctly. Take a look at some of the WPF articles here on CodeProject and you are bound to find some samples.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
It's easily done with WPF. See this[^] code snippet, for example.
/ravi
|
|
|
|
|
You can place virtually any control inside the button, even a listbox, datagrid or in your case an image. You all add them in the content property. In this case better specify the Content as an element instead of an attribute.
see MSDN for more details
V.
|
|
|
|
|
V. wrote: even a listbox, datagrid
Now that would look positively weird. But who knows? It might be useful in some odd application...
Will Rogers never met me.
|
|
|
|