| Get detailed error report on remote host |
|
 |
Index ‹ dotnet-framework-aspnet
|
- Previous
- 2
- ImageURLEditor and a UserControlASP.NET 2.0 Question.
I have created a USERControl for my site (System.Web.UI.UserControl). I
added two string public properties that I will use to change an image box's
image URL at run time. I want to make the properties show up at design
time in the property browser and also have the ablility to use the
ImageURLEditor that the Image Control uses. I added this attribute to the
properties:
[Editor(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(UITypeEditor))]
Even though the attribute is there I still do not get the custom editor (the
box that has the "..." in the property browser). What am I doing wrong? Is
this a limitation to UserControls?
Thanks,
Matt
[Category("Images")]
[Editor(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(UITypeEditor))]
public string URLTopBorder
{
get
{
return urlTopBorder;
}
set
{
urlTopBorder = value;
}
}
- 4
- Is it possible to change resource strings while viewing the web site?I have a web site which supports a number of languages, usiing RESX files.
With ResourceWriter, it is possible to add a new resource to an existing
RESX file, and later the ResourceManger shows that resource string, even if
all this happens while I'm viewing the web site.
Is it possible to CHANGE and EXISTING string in the resx file? I don't see
any method on the ResourceWriter for this. AddResource for an existing
resource doesn't give an error, but afterwards when I do a GetString, it
shows the old one.
Thanks,
---Selden
- 4
- \u00A0 in VB.NETHi -
I'm using VB.NET to build an ASP.NET page with a dropdownlist control. I'm
trying to insert spaces into dropdownlist listitem text values. I read that
it's possible to do so with "\u00A0" to represent a non-breaking space
character. How do you implement such a character in VB.NET?? Or is ther a
different/better approach?
Thanks for your help.
- Jeff
- 4
- 4
- asp.net and FirefoxHi. Recently I discovered that my asp.net site doesn't render ok in Firefox,
so I added some browser caps into my web.config file as adviced in some
articles, but nothing happened. Please need some advice on that.
Thanks,
Alejandro
- 8
- doubt in creating localised resource filehai,
my requirement is to create satellite assembly,For that how can i
prepare the resource file that is typed in local languages.I can bring
the resource file in visual studio but how do i type the field value in
local language?
Thanks in advance
Regards,
Satheesh
- 8
- My.Computer.Network.Ping & files??Is there anyway to do something like this, but for an individual file
instead of for a server?
For example, when showing product catalogs, i would like to be able to
"ping" a product
image, and if it is not accessible, then put out a "No Image" file.
TIA - Arthur Dent
- 8
- App.Config cached for DLL called by ASP.Net?I've been trying to figure out an issue that's happened twice when
deploying changes to configuration file for a .Net DLL used by an
ASP.Net 2.0 Web Service. We deploy to servers using RANT and portions
of the config files that could be different between servers are
represented by tokens that are filled in as the files are deployed to
each server.
The relevant version numbers are: Windows 2000 Server w/latest service
packs, ASP.Net 2.0 Web Service, Code Library/DLL written in Visual
Basic.Net 2005.
The symptoms are that we change the token, redeploy the file, observe
that the file is changed on the server, but don't see the change
reflected in the DLL's behaviour when invoked by the Web Service.
I've tried redeploying all of the files, stopping/starting IIS, and
editing the ASMX and VB files in the Web Service to force recompiles,
but the changes to the DLL's App.CONFIG don't appear to be forthcoming.
No doubt there is a simple, elegant answer that I'm blindly
overlooking...
Thx,
Gilbert Marlowe
- 8
- Custom control that ingerits from textboxHi Guys,
I have a huge problem....I think.
I have created a control called Textbox2 which basically inherits from
Textbox. Now my problem is this.
The Textbox2 retains its state when I submit a form and it posts back.
However when I place a Textbox2 in the footer of a gridview, it loses its
value on postback and I have no way of getting the value. If I replace the
textbox2 with a normal textbox, I can get the value, using the same syntax,
with obvious ctype changes.
Off the bat does anyone know anything that may point me in the right
direction? If you need to see my code, I can post it.
PS: I am using .net 2.0 Framework. And I am a NOOB at control development,
having only created simple controls in teh past.
Many thank you's in advance.
Kind Regards
Warren
- 11
- Keyboard shortcuts, please help. Hello,
I am using asp.net 2.0 and I want to add keyboard shortcuts to my
application just like the shortcuts you see in GMAIL. I was wondering
how can I do this in ASP.NET? Scenerio that would like to implement is
as follows
" User hits ALT-A on hitting ALT-A a server-side event is raised"
Is this possible, I mean can a server side event be raised with a
keyboard shortcut OR I will have to raise a client side event? I am
kind of confused, I will appreciate if anyone can point me to the right
direction.
--Erikson
- 12
- AuthenticationException: User not authenticatedHi all,
I got the exception "AuthenticationException: User not
authenticated" , when i call the web service method. Before I call the
method I have set the credentials also.here is the sample code.
Web_Service.CustomerManagerService custManger = new
Web_Service.CustomerManagerService();
// set the credentials
custManger.Credentials = new
System.Net.NetworkCredential("xxx","xxx");
//Calling Web Service method
int nId= custManger.GetCustomer();
Please help me asap.
Regards,
Mohan
- 15
- Encapsulating a webservice in an assemblyHi I was wondering if it was possible to completly enclose a webservice
in an assembly and dynamically
enable this webservice through an http handler of some sort ? this
would mean not having the publicly accessible asmx file.
This could also be acheived via remoting. but I still would love the
webservice alternative more thant remoting.
best regards,
Alexandre Brisebois
- 15
- Using class collections in the asp:grid controlI believe I understand the concepts of OOP as far as how to set up the
classes and how they use inheritance and other related topics, but I have to
say I don't see how this works for us in our DB apps. All the examples I am
going through on asp.net and msdn.microsoft.com don't use collection
classes, they just create ADO datasets and bind to them in the form. The
magazine samples I have been using don't use grids to connect to the
objects. In addition I don't get why I would use a data collection over
binding to the data. I guess I am just confused on how OOP should apply to
my apps. I want to do this right and get better at this, but I can't seem
to find any example code that takes advantage of OOP which I can relate to
what I am doing.
Does anyone know of any sample code locations where I can look at how this
works for an e-commerce or even a simple DB app or a grid or something? I
thought someone on this forum might have some good pointers on where to go.
Sincerely,
Scott
- 15
- ListBox and sqldatasourceHi,
I have a ListBox that bind to a sql source with managed code?
I know how to print ListBox1.SelectedItem and ListBox1.SelectedValue.
to print two fields from the following select statement.
But how can I print other fields in my select statement? I guess it
should be ListBox1.something...??
Suppose my select statement is like :
"select custid, name1 as firstname, name2 as lastname, address2 as
address from customer where custid=@custid"
- 15
- ASP.Net with Enterprise library 2.0 in hsoting environmentHi All,
I am using Enterprise library 2.0 for my site. Everything thing is
working fine for me locally.I have hosted my site on GoDaddy and for
every server side event that calls ExecuteScalar is giving me
"Resource not found" error. For Ex: if i click a button that updates
something using ExecuteScalar() method it gives me 404 error.
For Example, if you input this form http://www.codedigest.com/Register.aspx
and submit it will give 404 error.
I dont know what i am missing..
Note: The environment is medium trust environment.
Regards,
Satheesh
|
| Author |
Message |
Pavils Jurjans

|
Posted: 2004-11-25 22:54:31 |
Top |
dotnet-framework-aspnet, Get detailed error report on remote host
Hello,
When developing on the local host, asp.net provides detailed runtime error
information - error number, description, and even line of code where the
error happened.
When the aspx page is put on the remote location, security settings prevent
me to get the same detailed runtime error report.
Is there any way I can override this setting? I am experiencing situation
when the app runs smoothly on localhost, but fails for unknown reason on the
remote location, and I can't get enough error information to try to fix the
situation. I badly need the same error detail level I get on local machine.
Rgds,
Pavils
|
| |
|
| |
 |
Scott Allen

|
Posted: 2004-11-26 1:12:00 |
Top |
dotnet-framework-aspnet >> Get detailed error report on remote host
In web.config, the mode attribute in the <customErrors> section must
be set to RemoteOnly. Change mode to Off for ASP.NET to display raw
error information everywhere.
On Thu, 25 Nov 2004 16:54:31 +0200, "Pavils Jurjans"
<email***@***.com> wrote:
>Hello,
>
>When developing on the local host, asp.net provides detailed runtime error
>information - error number, description, and even line of code where the
>error happened.
>When the aspx page is put on the remote location, security settings prevent
>me to get the same detailed runtime error report.
>Is there any way I can override this setting? I am experiencing situation
>when the app runs smoothly on localhost, but fails for unknown reason on the
>remote location, and I can't get enough error information to try to fix the
>situation. I badly need the same error detail level I get on local machine.
>
>Rgds,
>
>Pavils
>
|
| |
|
| |
 |
| |
 |
Index ‹ dotnet-framework-aspnet |
- Next
- 1
- vb asp.net form for adding records to Access DatabaseOn My Webserver I have an Access Database called "Warehouse.mdb"
I have a webform that has:
6 Textboxes named: txtAsset_Number.Text, txtDescription.Text,
txtSerial_Number.Text, txtMfg.Text, txtRDCnumber.Text,
txtAssetType.Text
1 Button named btnAdd
I dragged the Table called Assets onto my design surface (I'm using
Visual Web Developer Express. On another form I was able to drag the
table over and see the data in a gridview - but I want to add data to
the table - but in the fashion of textboxes and a submit button) to
get my datasource available.
What I need to do is take the values in the textboxes and update the
database's table called "Assets".
What I have so far is just this code:
Imports System.Data.OleDb
Partial Class Default5
Inherits System.Web.UI.Page
Protected Sub btnAdd_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnAdd.Click
rowNew.Asset_Number = txtAsset_Number.Text
rowNew.Description = txtDescription.Text
rowNew.Serial_Number = txtSerial_Number.Text
rowNew.Mfg = txtMfg.Text
rowNew.RDCnumber = txtRDCnumber.Text
rowNew.AssetType = txtAssetType.Text
End Sub
End Class
So what I have above may not be the best code... for one thing I don't
know what to Dim the rowNew. Plus I need help knowing where to place
the code for the Update, etc.
I've looked in 2 Textbooks that have two different solutions. But I'm
stuck on how to make this work.
Any help would be appreciated. I don't want to have an Editable
Gridview to enter data... I'd like to learn how to do this in a
structured way.
- 2
- Here it is!http://www.microsoft.com/products/expression/en/web_designer/default.aspx
Click the "see it in action!" link for a demo video.
Looks great! But, I'm afraid the best features will be specific to
Vista.....there's got to be a catch. Microsoft has NEVER adopted a standard
without trying to change it.
"Jim" <email***@***.com> wrote in message
news:VbMtf.9491$email***@***.com...
> Can you do that without screwing up something in .Net?
>
> I was afraid I'd eliminate some headers that ASP.Net required.
>
> Speaking of hosing up html......when I first saw it's output, I thought
> that FromtPage was an intentional bastadization of the HTML standard to
> get a better foothold in the web.
>
> Fortunately, FrontPage never could compete with the likes of
> Dreamweaver......or notepad for that matter.
>
>
> "Spam Catcher" <email***@***.com> wrote in message
> news:email***@***.com...
>> "Jim" <email***@***.com> wrote in news:9FKtf.2412$vL4.2365
>> @bignews1.bellsouth.net:
>>
>>> BTW.....Microsoft does see Dreamweaver as a competitor. I found the
>>> following after reading ClintonG's reply to the OP.....
>>
>> The previous post is a minority in this group. Last time I posted a
>> similar
>> rant about VS.NET's HTML editing capabilities, most people agreed that
>> VS.NET needs a major overhaul.
>>
>> VS.NET's HTML editing is "good enough" to get by. Hence that's why I
>> build
>> my templates in DW, then copy and paste the HTML back over to VS.NET! : )
>>
>> --
>> Stan Kee (email***@***.com)
>
>
- 3
- ASP.NET SurveyHi Guys..
Can anyone point me to a survey example built in ASP.NET(Database driven).
And if possible with maintainence functionalities..
Thanks alot.
- 4
- ASP.Net and client side control (SelectedIndexChanged)I was wondering what capabilities ASP.Net has at the client level.
I have been using a RadioButtonList.
My control and additional textboxes look like this:
o See item number [ ]
o See items from Date [ ] to date [ ]
I have the method defined for SelectedIndexChanged event. Basically,
I am trying to clear and disable the text selections for the
unselected item.
Example:
private void RadioButtonList1_SelectedIndexChanged(object sender,
System.EventArgs e)
{
if (RadioButtonList1.SelectedValue.ToString() == "ItemNumber")
{
txtFromDate.Text = "";
txtToDate.Text = "";
txtFromDate.Enabled = false;
txtToDate.Enabled = false;
txtItemNumber.Enabled = true;
}
}
The problem is that my SelectedIndexChanged event does not fire until
the post. I can set the AutoPost=True, but this is still doing a
post. That seems like a lot of traffic (back to the server and
running code again, etc) just to disable some client level fields. I
should be able to do this all on the client because the server does
not need to know this information.
Well, I could fall back by writing some JScript to do this for me, but
I thought there would be a native way for ASP.Net to handle this.
Does anyone have any ideas?
Thanks in advance!
- 5
- Datagrid column width and truncating ...Hello,
How can I size my text to fit in a datagrid column ? I do not want the
datagrid go multiline.
I am using WEB Forms, not windows form, so CreateGraphics ans MesasureString
do not work.
Thanks.
- 6
- Consuming Webservices from ASPMost of the threads that i have read say that i should use the soap
toolkit. But a lot of them also say that the SOAP toolkit is not
supported anymore and has problems with it. Some one has mentioned
problems passing in data that has "." in it or somthing to that
extend. Overall it looks as dull as the weather here today. Anyway
maybe i can get some info from gurus browsing this forum. The question
would be, how would i access a webservice from a plain jane ASP
page...
Regards
- 7
- 8
- initialize value - FormView InsertItemTemplateAm a newbie on VS2005. I've created an input form using Formview's
InsertItemTemplate control. There's one field I want to initialize to
today's date:
Protected Sub frmMain_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs)
Dim strToday As String = DateTime.Now.ToString("d")
If (frmMain.CurrentMode = FormViewMode.Insert) Then
(TextBox)frmMain.FindControl("txtPubDate").text = strToday
End If
End Sub
But I keep getting syntax error at the assignment statement. I've played
with the placements of the parentheis but it still doesn't work.
Have spent a lot of time on "simple" thing like this. Any insight
appreciated. Thanks.
- 9
- mailer doesn't send till program endsHello,
The code below works to send email through my email system. However,
nothing gets sent till I end the program.
I don't understand why. Maybe someone else does.
Thanks for any help.
Scott
--------------------------
public sub sendemail()
dim emails(5) as string
emails(1)=email***@***.com
emails(2)=email***@***.com
emails(3)=email***@***.com
emails(4)=email***@***.com
dim emails_count as integer=4
Dim credential As Net.NetworkCredential = New Net.NetworkCredential
credential.UserName = "email***@***.com"
credential.Password = "password"
'Now we 've got everything we need to send the email except an SMTP server.
'To create that just create a new instance of SmtpClient.
Dim client As New Net.Mail.SmtpClient()
'First we need to set up which SMTP server that the SMTP Client needs to use
client.Host = "mail.abc.com"
For i As Integer = 1 To emails_count
Dim msg As New MailMessage("email***@***.com", emails(i))
msg.Subject = "subject" & i.ToString
msg.IsBodyHtml = True
msg.Body = "This is <i>the body</i> of the email message, it can also
contain HTML code in it"
'client.Port = 587
'the first line sets up the address the second we need because gmail uses a
non-standard port.
'Because gmail requires authentication to send a message we need to tell it
about the credentials we set up earlier.
client.UseDefaultCredentials = False
client.Credentials = credential
'client.EnableSsl = True
'The first line tells the SMTP client that we are supplying our own
credentials. The second line sets those credentials to the
NetworkCredentials we set up earlier. The third line tells the SmtpClient
that gmail uses SSL for authentication.
'Everything is ready to go now, all that is needed is to send the message.
Just call the send method supplying the MailMessage we created earlier.
client.Send(msg)
'client.SendAsync("email***@***.com", "email***@***.com", "hi", "hi more",
"")
Next
end sub
- 10
- Redirect does not workI have created custom control. Click event doesn't redirect to other page. I do not know why ?
Could you help me ?
public class WebToolBar : Control, System.Web.UI.INamingContainer
{
protected override void CreateChildControls()
{
Button btn = new Button();
btn.Text = "Prvni stranka";
btn.Click += new EventHandler(this.Prvni_Click);
this.Controls.Add(btn);
}
private void Prvni_Click(Object sender, EventArgs e)
{
this.Context.Response.Redirect("page1.aspx",true);
}
}
--
Message posted via http://www.dotnetmonster.com
- 11
- ASP.NET 1.1 - Controlling access to pagesHi all
I have an XML file with pretty much the 1.1 version of a sitemap. In
the xml file, we store whether the user is an admin or not (our
permission structure only calls for "Users" and "Admins")
I need to control access to pages by what is in this xml file. Any good
ideas on implementation?
At the moment, on the first call, the menu.xml file is put into the
cache with a file dependency on the file to make sure if the file
changes, the cache is current.
Should I pull the cached XmlDocument from the cache and find out from
there? Or is there a better solution?
Regards
Ray
- 12
- Validators not validating anymore. ??For some reason, my validator controls stopped working when a form posts.
They seems to work on fields that lose focus but if I submit a form with all
empty fields, not of the required validators catch it and this results in
runtime errors with my code.
It's real standard stuff using .NET 2 (VB). I've stopped and restarted IIS
several times and I even re-registered the NET service using this at the
command prompt:
c:\windows\microsoft.net\framework\v2.0.50727>aspnet_regiss -i
The aspnet_client folder also does exist on the server.
Any ideas?
- 13
- Running web service on SBS 2003I have created a web server to access a SQL sever database. The web
server works fine on my XP machine but when I tried to set it up on the
2003 server and try to access the web services I am getting an error
404. I have read messages that the server is not setup correctly to
access the web service. Can anyone give me any information on this
problem?
thanks
Dale
- 14
- populate listbox using JavascriptI tried following :
document.getElementById("lsTest").Items.Add(new ListItem("Test"))
This gives following error message:
'document.getElementById(...).Items' is null or not an object
Also tried:
document.getElementById("lsTest").Add(new ListItem("Test"))
Result - Error Message:
'listitem' is undefined
Any idea?
- 15
- FormView & SqlDataSourceIs there a way to handle when you're on insert mode on a formview and the
record you're about to save to the database already exist and insted you
rather update instead of inserting and getting an error of primary key?
Thanks,
Victor
|
|
|