|
Danpeking wrote: Thanks for the replies guys, it would be great to have one central table containing the IPT rates and dates effective but this would be extremely difficult to do given there is only 2 developers in the team and the IPT is a rating factor in a few products quote engines.
Not just great, but proper design, and you wouldn't need to face this problem again. If you don't fix this sort of problem properly, you'll spend increasing amounts of time firefighting, as you are doing now.
You are in a triage type situation:
1) Sort the immediate problem
2) contact customer who have need re-quoting,
3) fix the system to handle this kind of change properly, tax rate changes are quite common (normally upwards ).
|
|
|
|
|
Yeah, I agree, it's just a case of small businesses and priorities, etc.
We'll have one central figure if possible, gonna scope how long it will take, etc.
EDIT - We're gonna do it the proper way - static class, bit of work but will be worth it! Thanks for the advice guys!
modified on Thursday, October 28, 2010 6:38 AM
|
|
|
|
|
I want to implement Repository pattern using object based model, bcoz all the code which i get so far is based on linq to sql.So do any body have any link for repository pattern without linq to sql.
|
|
|
|
|
|
I have already viewed both articles and is of no use to me. If you look below article of code project, you will know that code is written for linq to sql but how can i convert it using entlib 5.0 persistence methodology.
<a href="http://www.codeproject.com/KB/architecture/linqrepository.aspx?fid=1382161&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26#xx0xx">Implementing the Repository Pattern with LINQ-to-SQL</a>[<a href="http://www.codeproject.com/KB/architecture/linqrepository.aspx?fid=1382161&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26#xx0xx" target="_blank" title="New Window">^</a>]
For eg, In the below article for GetAll method of IRepository,
IEnumerable<T> FindAll(Func<T, bool> exp);
same thing i do using entlib 5.0
public static CustomerResponseLogCollection FindAll(int orderID)
{
Database db = EmersonDataHelper.CreateConnection();
CustomerResponseLogCollection customerResponseLogs = new CustomerResponseLogCollection();
var c = db.ExecuteSprocAccessor<CustomerResponseLog>(ConstantsDB.USPGetResponseLogsByOrderID, orderID).ToList();
foreach (CustomerResponseLog item in c)
{
customerResponseLogs.Add(item);
}
return customerResponseLogs;
}
|
|
|
|
|
|
Am totally stuck with an issue.
I have developed a web application using Visual Studio .Net 2005. The problem is that i could see a straight line displayed in the application, However its not due to any code i guess. Since the issue exists only in Windows 7 OS with IE8. For the same OS, there is no such issue when tested in Mozilla Firefox . And the other scenario i noted here is that when i test the application( same code) with these configurations - Windows XP , Firefox/IE8, the issue is not reproduced. Am not able to trace out whether this issue is browser specific, or OS specific or whether the problem with Visual Studio.Net. Please help.
Thanks,
Arudya
|
|
|
|
|
Please post some code! The problem is probably due to rendering quirks between browsers, somtimes borders and alignment go out of whack due to these, it is possible that the line you describe is due to this. Without the markup, we can't tell at all what is going on.
[Edit] see PogoBoy's answer below, he describes the problem better than I have!
|
|
|
|
|
You may have an issue where two elements with a common background are meant to be seamlessly aligned with each other, but in the affected system and browser, the rendering is forcing a pixel or two of spacing between the objects, causing the background to bleed through. This would appear as though a line is rendered, when in reality it is just the background. That is why you won't find it in yourcode directly. If it is a table tag, make sure your cellspacing is explicitly set to 0.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Hi,
I have a form which including different sort of information. for instance, some information is regarding to personal data which related to Table1 and some are for Table2 and the some are for Table3. all this information are in 1 form.
Now, I just wondering to know, when I wanna insert data via Store procedure do I have to write SP for each of them?
is there any approach to insert data with writing just one SP.
|
|
|
|
|
|
future3839 wrote: Now, I just wondering to know, when I wanna insert data via Store procedure do I have to write SP for each of them?
is there any approach to insert data with writing just one SP.
Get the data in parameters and based on their name, in which db you need to insert.
Are you asking something else?
|
|
|
|
|
I'm having visual web developer 2008. I haven't found any masked textbox. How to have masked texbox functionality like (__/__/__).
|
|
|
|
|
You need to download the AJAX control toolkit. There is a MaskedEdit Extender for text boxes:
Masked Edit Control[^]
The toolkit download link is at the top of the page.
|
|
|
|
|
You can use AJAX Control as Keith suggested, or you can try with Masked Textbox[^]
|
|
|
|
|
Hi,
I have a grid with 10K rows
and i'm trying to convert it to datatable.
<br />
First Ex.<br />
DataTable dt = (DataTable)GridViewArgs.DataSource;<br />
<br />
Second Ex.<br />
DataView dataview = (DataView)GridViewArgs.DataSource;<br />
DataTable dt = dataview.Table.Clone();<br />
In both ex. i got an empty datatable (the grid has values).
Can someone please tell me what i'm doing wrong?
|
|
|
|
|
treuveni wrote: I have a grid with 10K rows
Which is not good design! Why 10 K Records in a grid? Does it really make any sense? It will hit your application performance very badly. Show only those data that are required. Use some filter to show less amount of data.
treuveni wrote: DataTable dt = (DataTable)GridViewArgs.DataSource;
What is your Source of Gridview data ?
|
|
|
|
|
First example should works.
Second example:
DataView dataview = ((DataTable)GridViewArgs.DataSource).DefaultView;
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
If you are trying to retrieve the data after postback, datasource will return null unless you bind the data again.
If your GridView ViewState is not disabled, you can access the data by iterating rows and columns like this:
foreach(GridViewRow row in grdRawData.Rows)
{
myData = row.Cells[ColNum].Text;
}
If you are using controls, say TextBox, in GridView Columns, you can fetch the data by using FindControl method.
TextBox txtName = (TextBox)grdRawData.Rows[rowNum].FindControl("IdOfTextBox");
myData = txtName.Text;
Hope this will help.
|
|
|
|
|
I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list.
Secondly,
How to dropdown the list when it got focus.
Regards
Asif Rehman
|
|
|
|
|
Asif Rehman wrote: I want to remove defaultvalue that dropdownlist captures when I bound the control to sqldatasource. So that user selects from list.
Try this,
myDropDownList.Items.RemoveAt(0)
Asif Rehman wrote: Secondly,
How to dropdown the list when it got focus.
Didn't get your question
|
|
|
|
|
Abhijit Jana wrote: Didn't get your question
Actually I'm basically a windows developer in which on gotfocus event I can dropdown list which makes user easy to select and type.
Is there any way when I dropdownlist gets focus it automatically opens(drop down).
Hope you understand what I'm trying to say.
Regards
Asif Rehman
|
|
|
|
|
|
سلام
من مي خوام يه كدي بنويسم كه مشخصات سخت افزاري سيستم رو با اگوريتم
aes
رمز كنه و به وب سايت كه طراحي كردم بفرستم
ميشه راهنمايي كنيد
مرسي
lf8898@yahoo.com
|
|
|
|
|
gghhmmll wrote: لاممن مي خوام يه كدي بنويسم كه مشخصات سخت افزاري سيستم رو با اگوريتم aesرمز كنه و به وب سايت كه طراحي كردم بفرستمميشه راهنمايي كنيدمرسيlf8898@yahoo.com
It means?!
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|