|
You please check the ClientID of that control on the master page. It may be different on master page and content pages.
|
|
|
|
|
Hi,
I want to make a function that will call automatically.
Suppose i have a registration form, at the registration time, a vouchar has een generated and that has a PIn number(ID). And it has 5 days validity.
I want to sent a mail, when the voucher is expired. I need to do this automatically.( When expire date comes, sent a mail with the inform of voucher hasbeen expired).
How can i do this with asp.net 2.0
Or any other idea.. plz let me knw in detail
Its urgent
Thabks & regards
|
|
|
|
|
Ha_80 wrote: How can i do this with asp.net 2.0
You can't.
Ha_80 wrote: Its urgent
Turns out that it's not urgent for anyone except you.
Ha_80 wrote: Or any other idea.
The best way to do this, is a windows service, because it can always run, check the DB, and send the emails.
Ha_80 wrote: plz let me knw in detail
This smells of 'I have taken a paid job and have no clue how to do it'. You're on your own, do some research, I've told you what to look up.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Some people go crazy to point their urgency...
|
|
|
|
|
To clarify more...
When the Registration form is submitted, put an entry to the database with current time. Use your windows service to check if Currenttime.AddDays(5) == now .. and send mail here.
Hope this would make your job easier.
|
|
|
|
|
Hi!
I have an application that has a Windows Application Project, a Data Access Layer Project and a Web Application project.
I am using a DataSet with Classes in my Data Access Layer. Here is how my method looks in the Data Access Layer:
public void SaveTimesheet(dsWBGT dsTimesheets)
{
WBGT.DAL.dsWBGTTableAdapters.TableAdapterManager saveTimesheet = new WBGT.DAL.dsWBGTTableAdapters.TableAdapterManager();
saveTimesheet.TimesheetTableAdapter = new WBGT.DAL.dsWBGTTableAdapters.TimesheetTableAdapter();
saveTimesheet.BackupDataSetBeforeUpdate = true;
saveTimesheet.UpdateAll(dsTimesheets);
}
When I access information from the Windows application everything works fine and I am able to save. When I try to do the same for my web application it gives no errors but the information does not get saved to the db.
I have created a form on my aspx page and when I hit save the following code executes:
protected void btnSave_Click(object sender, EventArgs e)
{
WBGT.DAL.Class_Managers.clsTimesheet_Manager timesheetDataManager = new WBGT.DAL.Class_Managers.clsTimesheet_Manager();
JobId = (int.Parse(ddlJobId.SelectedValue.ToString()));
Date = cDate.SelectedDate;
StartTime = (int.Parse(ddlTimeStarted.SelectedValue.ToString()));
EndTime = (int.Parse(ddlTimeFinished.SelectedValue.ToString()));
CalculateGrossTotal(StartTime, EndTime);
txtGrossTotals.Text = GrossTotal.ToString();
timesheetDataManager.SaveTimesheet(dsMain);
lblTimesheetStatus.Text = "Done!";
}
Can someone please tell me how to get the information from the form into the database?
Illegal Operation
|
|
|
|
|
timesheetDataManager.SaveTimesheet(dsMain);
Where is dsMain defined and populated? Have you stepped through this code with a debugger? That should help you to determine what is happening.
only two letters away from being an asset
|
|
|
|
|
I have created a new instance in the code behind for the aspx page. I know that the DataSet implimentation is wrong because I do not see the values inside the dataset at debugging time.
My question is how can I access the dataset in the DAL?
I created a new instance as follows:
WBGT.DAL.dsWBGT = new dsWBGT();
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: My question is how can I access the dataset in the DAL?
You're asking us how to use a library for which you presumably have the source code, and we do not. If it doesn't return what you need, change it so it does.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
What Error are you getting ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi,
Can anyone tell me how to display multiple records of data as one row in a Gridview. I have data coming from the database in the following format, but I would like to display records in the same group as one row when bound in a Gridview. Any help would be greatly appreciated.
Thanks
PRODUCT GROUP JAN FEB MAR
Product A Group1 20 30 10
Product B Group1 40 100 20
Product C Group1 80 45 70
Product A Group2 50 30 40
Product B Group2 20 10 100
Product C Group2 90 30 60
-
-
-
|
|
|
|
|
If you want to group stuff together like this, you probably need to nest gridviews, or perhaps repeaters, to give you more control. Your data source should then change accordingly, so each nested control is bound to a group.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks for your response Chris,
If it is no bother, could you please post a sample code snippet? put in mind though that I can't change the datasource because it is being used in multiple places but I was thinking that the grouping could be done on databound..
|
|
|
|
|
If you can't change the data source, then you have a lot of work ahead of you. I was imaging two controls like this:
<asp:Repeater >
<ItemTemplate>
<asp:Repeater>
Then you bind a list of the top level ids to the repeater, and in onitemdatabound, look up the inner repeater and bind it to the table that corresponds to the id passed into the row. Obviously you add code to style it the way you want, define the columns, etc, the point is just that you get the granularity to create and style the data into groups.
I imagine if you're not allowed to create a new method to return a group of tables, that you'd need to write code that binds to the group names, and then searches the data source to filter based on group name.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
I have a website (web-project), which I can publish locally and then run thru the virtual directory.
But when I moved that published code to the hosting of www.godaddy.com, it doesn't work and says:
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
Why it happens? No one error happens on my side, the pages are simple, moreover, the one I tried to run has the only one control with static text, under masterpage. Even when I set the cutomErrors="Off", nothing is shown for me and no additional information...
Please advise.
|
|
|
|
|
Well, what's obvious is, there is an error, and you've not succeeded in setting up your web.config in such a way that the error is reported to you.
That it's reading the web.config means that you have .NET installed ( although perhaps the wrong version ). Beyond that, you need to find out the actual error, in order to fix it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
It could be any number of things, wrong version of .net framework, a custom control, a dependent assembly is missing, a bad character in the config file. I would suggest you contact godaddy technical support.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: I would suggest you contact godaddy technical support.
ROTFL. They will say 'it's a coding error, fix it yourself'. They say that even when you present evidence that this is not the case. They are worse than useless.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Never used GoDaddy. I'm spoiled by having control over my own environments.
only two letters away from being an asset
|
|
|
|
|
We're a big company, I have been fighting for that ability for some time now.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi All,
I am trying to create Enum Dynamically.
When I try to Save dll It gives me error - "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" I am also writing code snippet :-
AppDomain currentDomain = AppDomain.CurrentDomain;
AssemblyName aName = new AssemblyName("TempAssembly");
AssemblyBuilder ab = currentDomain.DefineDynamicAssembly(aName, AssemblyBuilderAccess.RunAndSave);
ModuleBuilder mb = ab.DefineDynamicModule(aName.Name, aName.Name + ".dll");
EnumBuilder eb = mb.DefineEnum("Elevation", TypeAttributes.Public, typeof(int));
eb.DefineLiteral("Low", 0);
eb.DefineLiteral("High", 1);
Type finished = eb.CreateType();
ab.Save(aName.Name + ".dll");
I got error at last line.
Please help me.
your help is appreciated.
Regards,
Sunil Dhiman
|
|
|
|
|
Is it your web application ? if yes then where the application is hosted ? Do you have the write permission on that dll ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
The code seems to be fine. It should work.
The problem definitely is the FileIOPermission. Check if ASP.NET has write permission to the folder where the dll is created.
|
|
|
|
|
Hi,
In my intranet application (VB.Net, Framework 2) when Iam trying to export data to csv format junk charaters are displayed in place of Arabic data...
When Iam tying to export the same data to Excel it is working fine...
What could be the reason why it is not displaying the junk characters....
Please guide what is going wrong...
Thanks
Imtiaz
Imtiaz A.K
|
|
|
|