|
hello
one question
i have to do a page for looking for space avaible of the day to programming citations.
mi store procedure can be someo
select xfiel , x2 field from xtable
in my tier logic i can drive all reference business logic
where is better drive my logic in store procedure o in class in .net
thank for the time
regards
|
|
|
|
|
That depends a bit on what you include in the term business logic.
Most business logic belongs in the code. Some logic (like for example creation of related records) can be done in the database.
The database should have some sanity checks and containts to guarantee basic integrity of the data in case the logic in the code fails.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi,
I have the form contain some fields and one button in master page. I am handling that master page update button click event in my content page.
On the master page I have one drop down list which contain years. After that drop down list there is Update button in master page.
In that event button click in content page my code is like this:
Button_Click(object sender, EventArgs e)
{
If(previousyear)
{
LoadData(Previousyear) -> load data from the database
ShowFormReadOnly() -> this function will set all the form fields as readonly.
}
Else (currentyear)
{
LoadData(currentYear)
}
From the dropdownlist if they select previous years then I need to load data for that year and make the form as Readonly. If it is crrent year only load data no need to make readonly.
Here the problem is once they select 2004 from dropdown list the form is readonly. Once the form is readonly next I select the 2007 from dropdown, It is loading the data for 2007 but the form is still readonly. It is not resetting the form to enable state. We have to enable the form explicitly.
Thanks
|
|
|
|
|
Yes. That's because the status is saved in viewstate.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi,
How to make it work properly.
Thanks
|
|
|
|
|
Mahimam wrote: How to make it work properly.
It's working exactly as it is supposed to do.
You could try to disable viewstate for the controls, which will change their behaviour. See if you like it better that way.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi all. I want to develope a shopping cart and want to integrate it with ebay. Any help regarding this will b appriciated.
Thanks in Advance.
|
|
|
|
|
|
|
|
venky456 wrote: textdoc
What is this?
If it is TextBox then use textdoc.Text
bEst rEgard
PathAn
|
|
|
|
|
Hai all,
i have one grid view ,and in that i display all the employee list of perticular departement ,and for perticular employee attendance i have maintain 7 columns for day1,day2,day3......
if i want to select the radio buttonlist for attendance,
then what could i do,
send me some sample code with explanation
Thanks
Subbu.
|
|
|
|
|
Whats your actual requirement?Please first explain your query in brief.
beSt rEgard
pathAn
|
|
|
|
|
hai ,
my Requirement is maintaining attendance of a employee.
in my gridview i have employeename and one perticular week days as columns.
in every column of days ,i have radiobuttin list 1.present 2. half day 3. Abscent
in that if perticular employee is not attended the office ,then half day radio button should be checked and that perticular data should be saved in \DB
Thanks
Subbu.
|
|
|
|
|
Ok now
Take one Button control out side of gridview.On click of button,looping through gridview rows ,find out EmployeeId and attandance value from the radiobuttonList and insert data in the DB.
for example
on click of button
foreach(GridViewRow gRows in GridView1.Rows)
{
int EmpId=int.Parse(((Lable)gRows.FindContrl("EmpId")).Text);
int AttandaceVal=int.Parse(((RadioButtonList)gRows.FindControl("rBtn")).SelectedItem.Value);
}
bEst REgarD
pAthAn
please don't forget to vote on the post that helped you.
|
|
|
|
|
hi,
I am designing a ASP web based system using VB.Net language, it performs some calculations and should show results, I need these results to be in chart,
How can I do it to have the chart as output of the system
Thanks
There is always something to learn
|
|
|
|
|
I guess .NET Framework doesnot have a built-in Chart Component. You need to use some third party component .NET Charting[^] or Dundas Chart[^]. You can either try .NET crystal Report which has a Chart Control in it.
Regards - J O H N -
|
|
|
|
|
thanks,
do these third parties take the results from my program?it is realy nice
Best wishes
There is always something to learn
|
|
|
|
|
No. your company has to purchase the full version of the component from them. If you want check those components, You can download the Demo Version(dll) and the Sample .NET code from the Website and check whether it suit's your requirement. I have worked on .NET Charting Tool. It's really excellant and powerful.
Regards - J O H N -
|
|
|
|
|
Dear John !!
Im going to ask you a very stupid and simple question, please give me your valuable instructions...
dbo.Books is PK table
dbo.Category is PK table
dbo.BooksCategory is FK table
now im going to add a book into dbo.Books table. I got bookID=1001 and CategoryID=101.
my question is when should I insert data into dbo.BooksCategory table
1. insert data into dbo.books then dbo.bookscategory
2. insert data into dbo.bookscategory then dbo.books
is their anything i can do on my sql server 2005 database or i have to write a function to insert data into dbo.bookscategory from asp.net
waiting for a good instructions not like learn the basics
Sarfarj Ahmed
|
|
|
|
|
Please ask your Question in the Suitable Forum.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Thanks for your reply.
Im using asp.net and sql server 2005
i have design my database using sql server 2005 and writing code in asp.net (vb scipt)
Thanks
Sarfarj Ahmed
|
|
|
|
|
Sarfaraj Ahmed wrote: Dear John !!
This is a common forum. Donot Post your question to a particular person. Because Someone else in the forum may have a better solution.
Regards - J O H N -
|
|
|
|
|
Thanks John
I am not gonna do it again.
Im waiting for your instructions
Sarfaraj
Sarfarj Ahmed
|
|
|
|
|
You don't need to have a BooksCategory table. simplify it. Add a Foreign Key Column to the Books Table which will hold the CategoryID info.
Note: You have posted a SQL question in the ASP.NET forum.
Regards - J O H N -
|
|
|
|