|
If you want to interact with the user you have to go back to the browser.
---
Year happy = new Year(2007);
|
|
|
|
|
I don't know what you mean "If you want to interact with the user you have to go back to the browser."....
|
|
|
|
|
Try this
if(condition)
dosomething();//code here
else//if condition fails give the prompt
{
string selectwarning="alert(\"Please Select user\");";
Page.RegisterStartupScript("selectwarning",selectwarning);
}
|
|
|
|
|
It means that you can not interact with the user in the server code, any interaction is done in the browser. If you want to ask the user anything, you have to put it in the response that is sent to the browser, and then handle the answer from the user in the next request.
---
Year happy = new Year(2007);
|
|
|
|
|
Guys,
I have a web based 3-tier application in Asp.net 1.1 and Sql server
2000. We have decided to go from 1.1 to version 2.0 and SQL 2005 as the backend .
I am very confused about which codes go where... Any advice is greatly appreciated.
I have the data layer and business layer classes for each object used
in my application in a separate class project (C#) in version 1.1.
I was wondering if I have to put all the data layer classes(with methods
to access stored procedures) in App_Code directory. I understand that
the App_Code contents get compiled dynamically. So, is it ok to put the
entire datalayer for the application into this directory?
If not, how do I organize the data layer and business layer classes? Please note i am refering data access layer in Buzz layer through dll reference.
I appreciate any advice and direction with links to articles or books.
Thanks in advance.
Amit Gugnani
|
|
|
|
|
You can keep the code in separate projects.
---
Year happy = new Year(2007);
|
|
|
|
|
then how will take the benefit of APP_Code folder?
|
|
|
|
|
What benefit?
---
Year happy = new Year(2007);
|
|
|
|
|
Maybe his question was meant like "then what is this App_Code folder for" ?
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
|
Hi ...
How can i fill ListRorder control from SqlDataSource using C# code (not HTML).
Thanks
|
|
|
|
|
I am building an employee search application in C#.NET.
How do i search within a keyword,e.g if i am searching for an employee named Jonathan, it should be listed if i enter Jon. Please suggest any queries to be included.
|
|
|
|
|
hello,
u can make ur query as: like "john%"
Thanks alot
Hamody
|
|
|
|
|
Sorry but this doesn`t work when using a stored procedure and using the passed parameter as the value field.
Here is what i did...
Alter procedure Emp_proc
(
@fname nvarchar(20),
@lname nvarchar(20)
)
as
Select * from Employee where fname like '@fname%'and lname like '@lname%'
|
|
|
|
|
hi friends i am very new for ajax I just want to know what is ajax , why it is use and Please give me some refrance links for study of ajax
|
|
|
|
|
Refer asp.net.
And AJAX is a tech used for async call to server. Async means without page post back you can call server code. E.g you need to fill different dropdownlist without post back.
In classic ASP time, we do the same by using HttpInit.
In both the cases, from page you call javascript and from javascript you create server page request and as a coder your control the response.
This is one of the feature of AJAX toolkit, but many more. So please refer AJAX on asp.net.
I hope this gives u some idea...
Good Luck,
Amit Gugnani
|
|
|
|
|
Just to add www.asp.net and in Asp.net 2.0, callback features are in built. )
|
|
|
|
|
a very intresting article[^] right here on code project
|
|
|
|
|
hi friend's i am dealing with datagrid ,i am using item templte to show data
I use a table in one item templete and in that item templete i have 3 rows 5 columns. i have 3 buttons inside that itemtemplet itself .
I want to edit the content inside datagrid using on that buttonclick event.
how to do that.
Initially i took edit templete and edit command to update records.the problem
is doing with this is if i took edit command then edit button comes in next column and i want edit button inside same column between records
please tell me how to do this
it is urgent
thanks in advance.
Makarand Jadhav
|
|
|
|
|
hi
place the edit button code inside the next col. code and let me know. please send me the sample html code. for further assistance.
|
|
|
|
|
I am trying to develop an intranet site and using App_Code built in folder to place my Business classes etc. I am getting below issues under below listed scenario:
a) In App_Code folder i have two Folders
1) BL contains class1.vb (having methods say A,B,C)
2) UT contain class2.vb (having methods say D,E,F)
b) In Class1.vb i have written something like
Public Sub ReadMsg()
Dim objclass as new class2
objclass.E
End Sub
c) web.config file is as below
<compilation debug="true">
<codeSubDirectories>
<add directoryName="BL"/>
<add directoryName="UT"/>
</codeSubDirectories>
</compilation>
My Problem
1) I can't use method of class2 in class1 ?????? i.e step b
Amit
|
|
|
|
|
Make sure your classes are marked public and that the methods you want to execute as instance methods (which is how you are using method "E" in your "b)" example) are NOT marked as shared .
|
|
|
|
|
how to hide the underline of link label in asp.net.
|
|
|
|
|
Use the style text-decoration: none; .
Is this a class project? Can we expect another 20 identical questions from your class mates?
---
Year happy = new Year(2007);
|
|
|
|
|