|
It's basically a rewrite.
|
|
|
|
|
u mean we have to write the code start from the begining? it means no compatability b/w ASP and ASP.NET? i tought that we have migrating tools available for this, using the migration tools we have to migrate the project with minimal coding.
thanks for the response,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Think of it as a perfect opportunity to write it correctly, or enhance certain regions, etc.
|
|
|
|
|
thanks again. if any firm wants to migrate the existing ASP application, then it have to hire the developers again? i mean again they have to spend the money and time for the existing application?
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
They also have the option of not migrating to .NET.
|
|
|
|
|
Hey Microsoft is providing a tool (A exe) to convert ASP to ASP.NET. Search in msdn2.microsoft.com. We deed that for a client.
|
|
|
|
|
iam doing a web application in VS.net 2003 in XP sp2 OS
the problem is,
i use imagebutton control and image control on my webform in VS.net 2003.
when i specify the image url property to some image in my web application directory then i can see the image on the webform and when i right click the webform and select "view in a browser" then also i can see the image in my page.
but when i run the application by pressing F5 i do got a problem...
iam using IE7 as my web browser, it is not displaying the image of the image button and image control that i had used in my application. instead it is displying a panel with the left top corner with a cross symbol ...
|
|
|
|
|
I assume you specified the static path for image url or you are using themes.
You need to give virtual path of the image.Virtual path is the path starts from the web server area.
Some thing Like.
imgButton.ImageUrl="../Images/Cancel.jpg";
|
|
|
|
|
thanks for ur reponse.......
i used the path like this
"file:///E:\aspwork\project 5\image buttons\p_links1.gif"
in which aspwork is the virtual directory and project 5 is the folder name
|
|
|
|
|
When you are accessing the Web Application the response will not come from file system it will come from the web server so you need to go the virtual web server path.
for ex:you deployed the application in the web server with name "myProject" then do you think the path what you have given will be available there! no it wont be there. so we will use a folder in our project which will reside in the web server and from that we will access all necessary things. And here your path starts from "images/imgcancel.gif".
|
|
|
|
|
thanks for u reply
i got my error ...........
|
|
|
|
|
Use a relative path, not a static path. That way it can be ported to other environments without headache.
|
|
|
|
|
thanks for u reply ....
i used this path
"file:///E:\aspwork\project 5\image buttons\p_links1.gif"
is u not the relative path
how can we specify a relative path..sir
can u keep one example what is a relative path is
|
|
|
|
|
If the project is in the "project 5" directory, it would be "image button/p_links1.gif"
|
|
|
|
|
yes it is in "image button/asdjf.gif"
can u clearly explain how can we use relative paths .....
|
|
|
|
|
Your relative path IS "image button/p_links1.gif"
Place that in the image's path/url
|
|
|
|
|
hey thanks for ur response.
i got it .....finally..
why is it happening .....
may i know the exact reason....sir....
|
|
|
|
|
Hi,
I am trying to check where user group number 7 is logged in. If they are, then a certain Field mandatory. When I click on save, this procedure is not even running. I have been trying to fix this code since December but I can't find the problem. Please let me know if you can.
Here's the code:
The VB Script
Protected Sub CheckTimeEstimate(ByVal sender As Object, ByVal e As ServerValidateEventArgs)
Dim blDeveloper As Boolean
Dim objAccess As clsAccess
objAccess = New clsAccess
blDeveloper = objAccess.checkHasRight(System.Convert.ToInt32(Session("UserID")), "7")
If blDeveloper = True Then
If Len(Me.txtTimeEstimate.Text) > 0 Then
e.IsValid = True
Else
e.IsValid = False
End If
End If
End Sub
The Validator
<<asp:customvalidator id="cstTimeEstimate" runat="server" forecolor="#7C1E3F" display="Dynamic" controltovalidate="txtTimeEstimate"
="" errormessage="<Img border=0 width='10px' height='10px' src='Images/Star.gif'>" tooltip="This field is Required!" <b="">OnServerValidate="CheckTimeEstimate">
Ignore the double angled brackets at the start of the validator, I did that so the page will display it.
-- modified at 10:41 Tuesday 9th January, 2007
|
|
|
|
|
Dayekh wrote: I have been trying to fix this code since December but I can't find the problem.
What problem are you having that you can't find? That would be helpful.
only two letters away from being an asset
|
|
|
|
|
Sorry .. I modified my post after realising what you pointed out. Here's what I intend for the code to do:
1 - I logon as Developer(User Group).
2 - I attempt to store a record while 'Time Estimate' field is empty.
3 - The Subroutine fires up and checks the ID of the user. If the User is a Developer(in this case 7), the variable blDeveloper is True, and according to my code, the validator will invalidate the developer's request.
The whole point is so that the 'Time Estimate' field is Mandatory for Developer User Group but is not mandatory for others.
Currently, when I try to add a record, the subroutine is not even running. That is the problem.
|
|
|
|
|
I think I found the problem. The validator is not attempting to validate the Textbox because the text box is empty.
How can I get the validator to ignore the fact that it's empty?
|
|
|
|
|
try to place a required field validator first
|
|
|
|
|
Dear CPians,
I want to add a new UserControl to my WebProject. The problem is that I need it be in a way that recompilation is not required. Any ideas?
Thanking you in advance.
|
|
|
|
|
Why would recompilation be a problem?
|
|
|
|
|
Recompilation is a problem for many reasons.
When recompiling, the application restarts, hence sessions are lost.
I want to be able to make a UserControl without having the source code of the entire solution.
Any ideas?
|
|
|
|