|
Hey
I have a web application built in VS2003 using C# and asp.net.
I am having trouble linking to other pages, for example I have (sorry about the formating:
PostEvent"
Which is the the correct link (absolute). When i try to access this from login.aspx (which is a direcory down but this shouldnt matter due to the absolute link) i get an error page.
The resource cannot be found.
Requested Url: /RSAInter/LoginDemo/Organisors/Login.aspx
Can any one help me as to why it is looking for login.aspx
Cheers
Dan
|
|
|
|
|
Are you using Forms Authentication? If the user is not authenticated or does not have the proper role to access the resourse, the framework will redirect to the default login page.Also make sure that the loginUrl in Web.config is set correctly.Hope this helps..
|
|
|
|
|
there are one case , login.aspx is not in your current project, maybe you right click on your current project and addnew webform
__________
trannguyen
|
|
|
|
|
i'm trying to write a validator for a text box that can take an IP mask (kkk.xxx.yyy.zzz). the tricky part is that the mask can contain an asterix to allow IP range masking (ex. 123.10.*).
so, it's not a matter of checking for four groups of 3 digits, separated by '.'s.
it's a matter of checking for one group of 1,2 or 3 digits, followed by a '.', then either a '*' (which terminates the string) or another group of 1,2 or 3 digits followed by a '.', then either a '*' or a group of digits, etc..
this is beyond my regex abilities... is it even possible ?
|
|
|
|
|
I wish I was at my machine to test this, but something like this may work:
[0-9]{1,3}\.[0-9]{1,3}\.([0-9]{1,3}\.([0-9]{1,3}|\*)|\*)
|
|
|
|
|
hi to all
how to deleting the records temporarly from datagrid not from database
thanx
regards
saravanan
|
|
|
|
|
Have you tried hiding the row?
|
|
|
|
|
yes.i delete the record only in datagrid not database
regards
saravanan![Laugh | :laugh:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_laugh.gif)
|
|
|
|
|
why dont you try it with follow code?
select collumname from tablename where not collumname=something
ignore value you want to delete
or
create a view or a table content your value, databind it to your component and delete anything you want ^^
|
|
|
|
|
Assuming you are using a DataTable and binding the grid to it you can always remove the record from the DataTable without effecting the database.
only two letters away from being an asset
|
|
|
|
|
I have encontered a performance issue that I am not able to resolve. I have a simple form with some dropdownlist and text boxes (server controls). When I click the save button, it will perform a simple update in a table. The weird thing is that it takes about 3 to 4 seconds to post back. Saving the information in database takes less than a second. I set up a trace and the idle is between Begin Raise PostBackEvent and End RaisePostBackEvent as is shown below:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000383 0.000383
aspx.page Begin LoadViewState 0.000410 0.000027
aspx.page End LoadViewState 0.000911 0.000501
aspx.page Begin ProcessPostData 0.000933 0.000023
aspx.page End ProcessPostData 0.001130 0.000197
aspx.page Begin ProcessPostData Second Try 0.001213 0.000083
aspx.page End ProcessPostData Second Try 0.001237 0.000024
aspx.page Begin Raise ChangedEvents 0.001255 0.000018
aspx.page End Raise ChangedEvents 0.001280 0.000025
<b>aspx.page Begin Raise PostBackEvent 0.001298 0.000018</b>
<b>aspx.page End Raise PostBackEvent 3.517342 3.516044</b>
aspx.page Begin PreRender 3.517393 0.000051
aspx.page End PreRender 3.517547 0.000154
aspx.page Begin SaveViewState 3.519734 0.002188
aspx.page End SaveViewState 3.519846 0.000111
aspx.page Begin Render 3.519867 0.000021
aspx.page End Render 3.522489 0.002622
Any help on how to solve or improve the performance it is really appreciated.
Albert
|
|
|
|
|
How large is your viewstate?
|
|
|
|
|
View state shouldn't be an issue. It is under 22kb.
Regards,
Albert
-- modified at 15:57 Tuesday 28th November, 2006
|
|
|
|
|
Well, you know where to look; the post back event uses 3.5 seconds, that's where almost all the time is spent. If saving the information takes less than a second, what do you do other than that?
---
b { font-weight: normal; }
|
|
|
|
|
That's the weird thing. I am not doing anything other than call my update function. When I put a custom message Trace.Warn("Before ButtonClicked handler.") This is what it displays:
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000412 0.000412
aspx.page Begin LoadViewState 0.000440 0.000027
aspx.page End LoadViewState 0.000944 0.000504
aspx.page Begin ProcessPostData 0.000967 0.000023
aspx.page End ProcessPostData 0.001165 0.000198
aspx.page Begin ProcessPostData Second Try 0.001258 0.000092
aspx.page End ProcessPostData Second Try 0.001282 0.000025
aspx.page Begin Raise ChangedEvents 0.001301 0.000019
aspx.page End Raise ChangedEvents 0.001331 0.000030
aspx.page Begin Raise PostBackEvent 0.001349 0.000019
Before ButtonClicked handler. 3.498082 3.496733
aspx.page End Raise PostBackEvent 3.541860 0.043778
aspx.page Begin PreRender 3.541911 0.000051
aspx.page End PreRender 3.542067 0.000156
aspx.page Begin SaveViewState 3.544194 0.002127
aspx.page End SaveViewState 3.544302 0.000108
aspx.page Begin Render 3.544323 0.000021
aspx.page End Render 3.547021 0.002698
So I wonder what else happends between Begin Raise PostBackEvent and my actual postback event?
Regards,
Albert
-- modified at 15:57 Tuesday 28th November, 2006
|
|
|
|
|
Is that the first line in your event handler?
Do you have any other event handlers? Page_PreInit? Page_Load? Page_PreRender?
---
b { font-weight: normal; }
|
|
|
|
|
I have some overridable functions but I check them if it is a postback before performing anything. So from that side I know there is not extra trip to the server it is just what happend before the postback event, where the 3 to 4 seconds occurs.
If I found what was the cause, I'll definetly let you know.
Thanks for your help anyway.
|
|
|
|
|
Is there any way in C# to evaluation and Expression created in reporting services? Example evaluating the expression =Globals!ReportName + ".rdl" which would return MySample.rdl.
I know this is a very simple example and I would like to evaluate very complex expressions.
It looks like the expression is in VB.NET with a few addins like Globals!ReportName, Globals!ExecutionTime, etc. Therefore I could create a sample VB.NET project and make my C# code compile a VB.NET executable with the expression inside VB.NET project with the "addins" replaced with their text representation, but this would be a lot of work. Thats what I am trying to avoid.
Has anyone come up with a solution?
Chris
|
|
|
|
|
Just incase if anyone is wondering I had to create a class that would compile the VB.NET assembly with the expression code to get back a value.
Chris
|
|
|
|
|
Hi everyone!
I need help understanding how to add overlays and tiles over my google map... is there a way to overlay only one image instead of mapping the url's of each tile? Many many thanks in advance!
Nila
"...for that, I will need a large cup of coffee and a brand muffin!" -Samantha Bea
|
|
|
|
|
I have to run a crystal report within a specified date range and display this date range in the header of the report.
So, for example, I may be grabbing all data between 10/1/2006 & 10/31/2006. I would then need to place on the header of the report "Period: 10/1/2006 - 10/31/2006". These two dates would be specified within an asp.net textbox before the report is generated.
How can I pass these 2 dates to display on the report?
Thanks.
-Goalie35
|
|
|
|
|
|
im studying asp.net, i write a web page by using asp.net, it run on my computer so well, but when i try public it on web service which server support asp.net it cant run, it also correct on my web.config
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
but it does not work.
this is the file i just upload. i uploaded all dir of program
http://www.bambooproductall.com/chandoi/WebForm.aspx
any one can help me.................
___________
tran nguyen
|
|
|
|
|
tran, did you compile your code before uploading it to the server?
For example, in visual studio, you can debug your program on your machine with no problem however when you're ready to upload it to a server, you need to switch your "Solution Configuration" dropdown from "Debug" to "Release", then select "Build" --> "Rebuild Solution".
This will compile your project (your vb, c#, j#, or whatever your coding in) into a single DLL file, which can be located in your "Bin" folder. Upload your projects' DLL file to the "Bin" folder on the server and then upload your aspx file to its propper folder.
Also, since we're discussing troubleshooting options, ensure that the server you're uploading to is not only asp.net compatible but is also compatible with the version of asp.net you're using (i.e. a server with only the 1.1 .NET Framework will not run a project created in the 2.0 framework).
-Goalie35
|
|
|
|
|
thank for help but it still does not work, i complile it , check version, (i use .net 2003) , correct web.config file, in my conputer it run very well, but on web it does not work!
___________
tran nguyen
|
|
|
|