|
I don't think i will abandon PHP anytime soon, but i will slowly, but surely shift over to ASP.NET. That's why i want to start as soon as possible to learn all the stuff that is required to produce a working web application, with the same quality standards i have for my PHP based applications.
|
|
|
|
|
|
Thanks
But Phalanger looks like the dirty way into ASP.NET!?
|
|
|
|
|
That's why mentioned as "Offtopic" there. Some people don't want to move quickly to new things so suggested that one.
BTW I forgot to mention one more useful link.
Beginner's Walk - Web Development[^]
|
|
|
|
|
That is exactly what i was looking for. Thank
|
|
|
|
|
I made the switch 7 years ago. Last year I took up PHP again, took a week to get use to it again, learn the new rules and terms. Actually my knowledge of ASP.Net made me a better PHP programer, at least I think.
With asp.net, you have to declare primitive values for everything, actually you have to declare everything, it's not like PHP where it sort of just assumes. And always check that the value exist first, or else you'll throw an exception.
Just remember that and coding should be sort of similar.
Most of the principles are the same, Just worded different. Just keep Google handy to search for comparisons. That what I did for going back to PHP.
I took up PHP again because there are so many little cash jobs out there for it in my area, and the jobs are so easy to do and take little time to complete.
|
|
|
|
|
first I made "connection.asp"
the codes in "connection.asp" file are as follows
<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = Test; User Id = sa; Password=as"
If conn.errors.count = 0 Then
Response.Write "Connected OK"
End If
%>
then I made "author.asp". The following code are in "author.asp"
<title>
AuthorID
Author Name
<%
dim aid,aname,objs
aid=Request.form("aid")
aname=Request.form("aname")
Set objdb=conn()
query = "INSERT INTO author (aid,aname) VALUES ('"& aid &"','"& aname &"')"
Set objs = objdb.Execute(query)
Response.Redirect ("thankyou.asp")
%>
the code can't run. I think, there may be error in "author.asp". So, Plz help me
|
|
|
|
|
i dont understand that Conn()
first you try this below code in one page, and if run sucessful then sperate connection on second page.
<%
dim Conn
set Conn = Server.Createobject("ADODB.Connection")
Conn.ConnectionString = "PROVIDER=SQLOLEDB;DATA SOURCE=yourMachine\SQLEXPRESS;UID=sa;PWD=whatever;DATABASE=DB;"
Conn.Open
Dim MyRs
Set MyRs = Server.CreateObject("ADODB.Recordset")
MyRs.CursorLocation = 3
Dim vAuthorID, vName,sql
vAuthorID = Request.Form(txtid)
vName = Request.Form(txtName)
sql="Insert into author(aid,aname) VALUES ('"& vAuthorID &"','" & vName &"')"
conn.Execute(sql)
conn.close
set sql = Nothing
response.Redirect("thankyou.asp")
End If
%>
Let me know if it helps
|
|
|
|
|
<title>
AuthorID
Author Name
<%
dim Conn ' As Object
set Conn = Server.Createobject("ADODB.Connection")
Conn.ConnectionString = "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = Test; User Id = sa; Password=as"
Conn.Open 'an error will occur here if the server/connection info is incorrect.
Dim MyRs 'As ADODB.Recordset
Set MyRs = Server.CreateObject("ADODB.Recordset")
MyRs.CursorLocation = 3 'adUseClient
Dim vAuthorID, vName,sql
vAuthorID = Request.Form(aid)
vName = Request.Form(aname)
' --note this is wide open to SQL injection better to use StoredProcedure instead:
sql="Insert into author(aid,aname) VALUES ('"& vAuthorID &"','" & vName &"')"
conn.Execute(sql)
conn.close
set sql = Nothing
response.Redirect("thankyou.asp")
End If
%>
Hello fri, plz look at my code. Error still happen in my code. Thz
|
|
|
|
|
|
No error was found but I need to encrypt one field (e.g - password). How should I do with Classic ASP?
|
|
|
|
|
Ye Htut wrote: but I need to encrypt one field (e.g - password). How should I do with Classic ASP? Check this article
Encrypting Passwords in ASP[^]
If possible get rid of Classic ASP. Go with ASP.NET
|
|
|
|
|
SubjectUserSid S-1-5-21-3532193094-2589986628-862158326-1002 how do i find the name that goes with this #?
|
|
|
|
|
|
SubjectUserSid S-1-5-21-3532193094-2589986628-862158326-1002
|
|
|
|
|
Please help me...
My Problem is "When my application idle for 20 minutes then they redirect to login page"
Scanerio "
My Boss except to application if application is idle for 30 min then password acceptance popup is open and if application idle for 60 minutes then session timeout
I check all objects there is no Session.Clear () or Session. Abandon () in my application only I use Session. Abandon () in global.aspx page for session out
"
For Solution I perform following task:-
1. <SessionState mode=inproc cookiless=false timeout=60 statenetworktimeout=60>
2. <form name =login defaulturl=login.aspx protection=none timeout=60 slidingexpiration=true>
3. In IIS Perform following task:-
• Clear all recycle
• set ideal time to 120
Thanks in advance.......
singh
|
|
|
|
|
I think you check the associated application pool advance setting 'Idle Timeout (Minuts)' under 'Process Model'
Help people,so poeple can help you.
|
|
|
|
|
Hi everyone
I am trying to create a comment system with ASP.NET,Ajax and Jquery as following:
This system is different from other comment system , in this system user can select a sentence or a paragraph with double click on it and then comment on that , after this a tag appear beside this sentence or paragraph . when a user click on that the related comment appear.I want to know how can create a comment system like this? I do many search but fail . for more information you can visit website www.nowcomment.com , I want a comment system like this
Thanks everyone for his/her help
|
|
|
|
|
Why not create one using your favorite technologies, then post it on the web, so next time people will be able to find your code and use it for free. Could you please do it?
|
|
|
|
|
Dear Peter
Thanks for you replay and suggestion but I try many times to do it but I fail , Have you any idea about it?
Thanks for your help
|
|
|
|
|
Hi,
I have a website that uses some componenets from the Ajax Control Toolkit.
Everything works fine on my computer, but when I upload the solution to my Windows Server 2008 R2 none of the ajax features seem to load.
I dont get any error message or anything, it just doesnt work.
I've tried to add the assembly information to web.config.. actually I've tried every solution I could find on Google, with no luck.
Anybody got any good ideas ??
|
|
|
|
|
I would like to ask if how Linq works in mvc 5 for visual studio? can you post some image or some step or code?
|
|
|
|
|
Hi, I am trying to create a report in Asp.net using report viewer and passing parameters. I have created the report (.rdlc) with Dataset with parameter that points to a function in DomainService. The function returns IQuerable from SQL server. I use that report in an .aspx page. When I launch the page it repeats the first record 5 times (there should be 5 different records). I'm sure I am missing something. Any ideas? Thank you!
here is html for page...
<body>
<form id="form1" runat="server">
<div>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="650px">
<LocalReport ReportPath="Construction\Reports\Test1.rdlc">
</LocalReport>
</rsweb:ReportViewer>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</div>
</form>
</body >
here is vb.net code behind page...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim projectjey As Integer = Request.QueryString("projectkey")
ReportViewer1.LocalReport.DataSources.Add(New ReportDataSource("DataSet1", New ENGINEERSDevEntities1().spCNSTBidProposalReportByProjectKey(projectjey)))
Dim rptParameters As New ReportParameter()
rptParameters.Name = "projectkey"
rptParameters.Values.Add(projectjey)
ReportViewer1.LocalReport.SetParameters(rptParameters)
ReportViewer1.LocalReport.Refresh()
End If
End Sub
|
|
|
|
|
Got it to work, I needed to set up the datasource on the web page with an asp: EntityDataSource...
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana"
Font-Size="8pt" InteractiveDeviceInfos="(Collection)"
WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="636px">
<LocalReport ReportPath="Construction\Reports\CNSTReportProposalByProjectKey.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="EntityDataSource1" Name="DataSet1" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:EntityDataSource ID="EntityDataSource1" runat="server"
ConnectionString="name=ENGINEERSDevEntities1"
DefaultContainerName="ENGINEERSDevEntities1" EnableFlattening="False"
EntitySetName="vwCNSTBidProposalReportByProjectKeys">
</asp:EntityDataSource>
</div
|
|
|
|
|
hi, i have a hard problem with linq and asp.net
i have 3 table
(table1 = person)(table2 = equipment)(table3= ralation on person and equipment)
i have a page with a search button and a checklistboxthat bind with equpments
i want that user select one or more check list and then show persons that have those equipments
i create this page with elements and attach on this post
technology : Linq
please help
thanks
-------------------------
table 1
p_famil p_code
ali 1
reza 2
mohamad 3
kazem 4
---------------------------------
table 2
e_code e_title
1 home
2 car
3 job
--------------------------------
table 3
er_eq_code er_per_code
2 1
3 1
1 2
1 4
be happy
|
|
|
|