|
Can't you just create a daily task with Windows Task Scheduler?
I don't like my signature at all
|
|
|
|
|
I am new to .net developement..stuck with an issue..
I have 2 grids in a page...Maingrid( key:- EmpID) and a Childgrid (key:- EmpID,PeriodID)
For Each Maingrid details there will be one or more corresponding Childgrid details. When user selects a Maingrid detail record (ie, when selecting a row), corresponding Childgrid detail will be loaded in the Childgrid …(same as dependent grid.)
How to load the 2nd grid according to the 1st grid row selection?
protected void rdg_Maingrid_ItemCommand1(object source, GridCommandEventArgs e)
{
if (e.CommandName.ToString().ToUpper() == "RowClick")
{
}
}
and I have delete ,edit options in both the grids.
Anyhelp will be appreciated.
|
|
|
|
|
Have a look on Link it'll help you.
|
|
|
|
|
In this example it shows gris in a row..but in my scenario, two different grids are there.I dont know how to bind data in to the 2nd grid according to the row selection of the first grid..
I am using telerik rad grid.
|
|
|
|
|
I dont have much idea about telerik grid.
But in rdg_Maingrid_ItemCommand1 event you can find the row of main grid and accordingly you can fetch the record and bind it in child grid.
|
|
|
|
|
Hi.
I have a detailsview with a checkbox. This checkbox´s state should be determined from a ObjectDataSource which "fills" the detailsview. And, if the checkbox´s state is changed by the user, the ObjectDataSource´s UpdateMethod should of course save this new state.
Problem is, that i dont know how to bind this checfield, since the 'Checked' attribute only takes true/false, and my data is in xml. Therefore i only have "true"/"false" data as strings.
So how do i bind this checkbox state? And save the new state when the user changes it?
Thanks alot!
<code>
<asp:DetailsView ID="dvTaskDetail" runat="server" DataSourceID="odsTaskDetail"
CssClass="detailgrid" GridLines="None" DefaultMode="Edit" AutoGenerateRows="false"
Visible="false" Width="100%">
<Fields>
<asp:TemplateField HeaderText="Send mail?" HeaderStyle-Font-Bold="true">
<EditItemTemplate>
<asp:CheckBox ID="txtNotify" runat="server" Checked='how to bind it here?' > </asp:CheckBox>
</EditItemTemplate>
</asp:TemplateField>
</Fields>
</asp:DetailsView>
</code>
|
|
|
|
|
what is the data type of your field you want to bind?
|
|
|
|
|
The data type is string. The field contains "false" or "true". And should be bound to the checkbox´ checked attribute which takes boolean.
Thanks!
|
|
|
|
|
Try This
Checked='<%#(Eval("Field").ToString() == "true" ? true : false) %>'
|
|
|
|
|
Thanks alot!
But it did not solve my problem.
With this solution, i can DISPLAY the correct data (if the box are checked or not). But when the user updates the data (changes the checked state), the ObjectDataSource´s UpdateMethod sees the field as null.
Is there a workaround on this? 
|
|
|
|
|
<UpdateParameters>
<asp:ControlParameter ControlID="CheckBox1" Name="Field"
PropertyName="Checked" Type="String" />
</UpdateParameters>
|
|
|
|
|
Thanks.
But I cant get it to work.
Can you please post the full example including the DetailsView and CheckBox tags?
Thanks alot! 
|
|
|
|
|
try something like this?
<asp:templatefield headertext="DNSLive">
<insertitemtemplate>
<asp:checkbox id="chkDNSLive" runat="server" checked="<%# Bind("DNSLive")%>">
<edititemtemplate>
<asp:checkbox id="chkDNSLive" runat="server" checked="<%# Bind("DNSLive") %>">
make sure in the prerender event you have soemthing like this..
CheckBox chkdnslive = (CheckBox)detailsView.FindControl("chkDNSLive");
chkdnslive.Checked = true; //default to true
|
|
|
|
|
Hi,
I have an issue relating to AJAX . I have an AJAX enabled webform where I have various controls and one button among them requires to open a new page (.asp) which should have all the controls of the source page.
I have achived this functionality. but after a new page opens in new window, my source window started giving error on any control change. THe exact Error Message is:
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled
One scenario I can understand is, I have used
window.document.formrs.action = "Test.aspx";
window.document.formrs.target = "_blank";
window.document.formrs.submit();
when going to new page, and when returning, it is set back to
window.document.formrs.action = "RS_Test.aspx";
window.document.formrs.target = "_self";
Because of this, my viewstate might be changing thus Response is modified...
I need to completely eliminate chnaging Form.action property for some reasons. Please help.....
Thank You.
Regards,
Anand Desai
|
|
|
|
|
|
Thanks Jinal,
The thing is, I have resolved the problem by overriding "Render" method and the error disppeared. Thanks a lot for all inputs.
One another issue is I have an classic ASP Page I am traversing from AJAX Enabled .aspx page. And I require all the controls (basically whole page) in that .asp page. .
In this scenario,
1) "PostBackUrl" is not applicable.
2) "Session" is not useful also because I will not get ASP.NET session in classic ASP.
3) Talking about Querystring and Cookie is pointless.
Can you suggest something to achive this???
Thank You.
Regards,
Anand Desai
|
|
|
|
|
|
After the huge success of the Windows Azure Virtual Boot Camp I and II, here comes…
Virtual Boot Camp III
Learn Windows Azure at your own pace, in your own time and without travel headaches.
Windows Azure one week pass is provided so you can put Windows Azure and SQL Azure through their paces.
NO credit card required.
You can start the Boot Camp any time during May 3rd and May 10th and work at your own pace.
The Windows Azure virtual boot camp pass is valid from 5am USA PST May 3rd through 6pm USA PST May 10th
More information at http://blogs.technet.com/webtech/archive/2010/04/26/windows-azure-one-week-virtual-boot-camp.aspx[^]
modified on Monday, May 3, 2010 6:21 PM
|
|
|
|
|
What are you doing here.This is not the place to advertise something.Befor posting anything do read forum rules.
|
|
|
|
|
HI,
I bought a ecommercemax_upsrates.dll to check ups rate from our website.
it worked for a month and now I am getting this error message.
"could not load file or assemble 'ecommercemax_upsrates, Version=1.0.3480.35489, Culture=en, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. "
I have a feeling that if I can register this dll to assembly (c:/windows/assembly), it might work fine.
I am just referencing this dll and send parameters to check up the rate.
when I try to register in GAC, an errors message pops up says that I need strong name.
so I made snk file, but still cannot register in GAC.
any ideas???
|
|
|
|
|
|
By looking at the error message it seems that some dependency dll
that is required to be registered in GAC may be deleted or
unregistered from GAC.
For GAC Commands and other details you can check following links.
http://msdn.microsoft.com/en-us/library/ex0ss12c%28VS.80%29.aspx[^]
You can confirm whether your assembly is really added to GAC or not by traversing following path
which opens GAC Space where all the assemblies (added to GAC) reside.
%WINDIR%\assembly
You can also add your assembly to GAC by directly drag your assembly and drop it in GAC Space.
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
Hi Jinal,
Do you have any idea about the question I have posted above.
Please Help.
Regards,
Anand Desai
|
|
|
|
|
Hi all
I am using asp.net 2008 sp1,Crystal reports exporting is not working I solved the images toolbar problem by copying the images locally and changing the images path in the report viewer properties but I am not able to do the samething for the java script files, can anyone help please.
Thanks
Mohammad Al Hoss
Development To Me Is A Pleasure more than a Job
|
|
|
|
|
Hi,
I want to access same page same time from different users. Is it possible using Session. Also I don't want to use database once i create users.(I dont want to use flag if someone is login etc.)
Also if I want to restrict user not to access page same time. what can i do for this also.
Thanks
sjs
|
|
|
|