|
Main method in C# should be declared with a Capital 'M' and
Main method should have a "public" access modifer so that the Runtime can access the Method. Check any of this is missing or the main method itself is missing...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
But i am developing Web Application. So there is no any question of Main().
Pravin
|
|
|
|
|
didn't find any information relevant to "Compiler Error - CS5001" in web application...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
its ok... i will write new programme for it....
Thaks for it.
Pravin
|
|
|
|
|
pavya_Cool wrote: error CS5001: Program "d:\wwwroot\keen\MultipleFileUpload.aspx.exe" dose not
have an entry point defined.
How come your ASPX file got EXE extension ?
|
|
|
|
|
that is also question...
Pravin
|
|
|
|
|
pavya_Cool wrote: that is also question...
You created the application and you don't know how it came. It's strange
|
|
|
|
|
Actually i am new to ASP.Net.
Pravin
|
|
|
|
|
Looks like you're trying to create a project of the wrong type. I'd be inclined to abandon this version, and create a new ASP.NET project. There is no exe in an ASP.NET project.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am beginner of asp.net. Now generate a sample project for training purpose using Visual Basic coding. Some function using more than one form.
Now I write a same function into every form.
But I need the particular function using different form
without writing a same coding.
How to create a function and which place to store it.
Please give me idea in detailed. I need a sample coding.
abglorie
|
|
|
|
|
This can be achieved by using a static class, for example named Utilities like below
Public Class Utilities
Public Shared Function DoSomething(Byval item as string) as integer
'Do something
End function
End Class
You can then call this from anywhere in your project
Dim myValue as integer = Utilities.DoSomething("Hello")
If you are using c# post back and I will give you the code for that, which works in a slightly different way.
|
|
|
|
|
SHatchard wrote: This can be achieved by using a static class, for example named Utilities like below
Why you are so specific on Static class ?
|
|
|
|
|
abglorie wrote: Now I write a same function into every form.
But I need the particular function using different form
without writing a same coding.
Create a base class and inherit this base class in all the pages. Write common function in Base class. By default you will see all the ASPX pages are inherited by Page class. You have to remove this and write your base class and your base class should inherit from Page class.
|
|
|
|
|
AFter successfully achieved form authentication how to redirect the page to the corresponding next page?
|
|
|
|
|
Call the next page. using following coding
Response.Redirect("NextPage.aspx")
|
|
|
|
|
|
Can anyone tell me how to get click event of Flash Object?
I have to redirect to some page on click of the flash object. I have tried Onactivate event of the object, and its working fine in IE but not working in FireFox and Safari browser
|
|
|
|
|
Now I need a help from you quite urgent.
I read a data from DataSet as EmpID.
Display the EmpID in form1.aspx using Label control.
Data Enter in textbox controll like salary.
Now click a submit button.
The form refresh and update the salary respective EmpID.
Next we want the empID move to next employee.
How to apply the above task.
I try to session state but not working. my form was developed following method.
form.aspx
<asp:label id="Mylabel" text="<%Session(" ds")("empid")%="">" runat="server">
<asp:textbox id="MyText" runat="server">
<asp:button id="Submit" text="Submit" runat="server">
form.aspx.vb
dim cmd as new sqlcommand("Select EmpID from MyTable", connection)
dim adp as new sqldataadapter(cmd)
dim ds as new DataSet()
Try
connection.open()
adp.fill(ds,"MyTable")
session("ds") = ds.tables("MyTable")
catch
finally
connection.close()
end try
abglorie
|
|
|
|
|
Hi,
You may want to look more into using a datareader for this type of usuage if your wanting to cycle through a record at a time.
An SqlDataReader sits in the System.Data.SqlClient namespace.
You call a read by something like this (this isn't perfect code as I work in c#!)
SqlConnectionconnection = newSqlConnection("myconnectionstringhere")
Dim command As SqlCommand = newSqlCommand("SELECT * FROM Customers", connection)
connection.Open()
Dim data As SqlDataReader = command.ExecuteReader()
data.read()
The Data.Read method will advance and retrieve the next record. Remember to close the connection once your done with it.
Do a search on google for SqlDateReader and you will get information on it's usage back.
Regards
Paul
|
|
|
|
|
hi friends
in my application i am using Iframe
i have three form 1) checkout.aspx 2) frameurl.aspx 3) abc.aspx
from checkout.aspx i redirect to frameurl.a
on frameurl i have one Iframe Iframe's src is abc.aspx
abc.aspx is outside url
which shows in Iframe control
I enter some key here
When i Enter key and press 'Submit' button
i want to redirect to Checkout.aspx
my problem is it redirects to Checkout.aspx
but shows in same Iframe means IE's url doesn't change
Thanks
|
|
|
|
|
kmanisha wrote: my problem is it redirects to Checkout.aspx
but shows in same Iframe means IE's url doesn't change
Specify target=_self or _blank
|
|
|
|
|
i was trying to display a image on the right side of the node.....
any help is appreciated
|
|
|
|
|
I have two dataset. Each datasets contain one table .
Dataset1.Tables[0];
----------------------------
Id Description
100 Raja
101 Jayaraj
102 Ramesh
103 Mani
104 kavitha
Dataset2.Tables[0]
-----------------------------
Id UpdatedWhen
100 05/06/07
104 01/09/00
How can i filter the above datasets columns by using DataView?
The result should be like this
Id Description
101 Jayaraj
102 Ramesh
103 Mani
The result going to bind in DropDownList , like this
Jayaraj
Ramesh
Mani
Pls give the code ASAP
|
|
|
|
|
Navigate through the Dataset2.Tables[0] records and have the collection of ID in a string.
write something similar to this...
For Each drow In Dataset2.Tables(0).Rows<br />
Str = Str + drow("ID") + ","<br />
Next<br />
str.Remove(lstr.Length - 1, 1)<br />
To filter the records
Dim dv As DataView<br />
dv = Dataset1.Tables[0].DefaultView<br />
dv.RowFilter = "ID NOT IN (" + str + ")"
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
hi friends
i have class name as class1.cs.
how to create the javascript popup window in class.
i got the window in aspx page,but class page shown error.
regards
saravanan
|
|
|
|