|
Those are events, just place appropriate handlers.
Actually if you see any httpmodule you will see we generally we always handle those events.
Use
application.BeginRequest += (new EventHandler(this.Application_BeginRequest));
Place this in Init.
Cheers
|
|
|
|
|
Hi,
I'm trying to insert some data in excel file version 2003. It is working fine in local machine. But when i'm uploading it on web server then its giving the error like.
system.invalidoperationexception: 'the microsoft.jet.oledb.4.0' Provider is not registered on local machine.......
Please give me the solution. Its urgent. Please..
Thank you...
krishna veer singh
|
|
|
|
|
Install MDAC in your server...
Its the Microsoft Data access Tool.
Get it from here :
MDAC 2.8[^]
|
|
|
|
|
Thank you for your reply,
but here its written that,
"This release does not include Microsoft Jet, the Microsoft Jet OLE DB Provider, the Desktop Database Drivers ODBC Driver, or the Visual FoxPro ODBC Driver."
even after it will work??
waiting for your reply.
krishna veer singh
|
|
|
|
|
I think this is what you need to look at:
http://www.zuggsoft.com/data/
And this:
http://support.microsoft.com/default.aspx?kbid=239114
Hope you can do it now.
cheers
|
|
|
|
|
Hi,
i have a requirement like selecting multiple dates or weeks or months on a calendar control in ASP.net web application.please help me to archive the requirements.
Thanks,
Vinay.
|
|
|
|
|
Why dont you create your own calendar or use Javascript Calendars like Yahoo or anyone in the market which will enable you to select dates without postback?
Other than that If you really want to use the ASP.NET calendar there is also a way for that here:
http://forums.asp.net/p/1032656/1420001.aspx[^]
I hope you like my answer.
|
|
|
|
|
Hi everyone
Can anybody please tell me how to prevent simultaneous login using same user name. if one user is already logged in with one machine and if he tries to login with same credentials with another machine. I want to logout firstly logged in user by force..
I am using C# language and Asp.net SqlMembershipProviders tables to store records of Members. Please help me.
Thank you very much
Thilina....
|
|
|
|
|
Just place a key(preferably the sessionID) in Database when the user is logged in (you may also use Shared Variables like Application). When he logs in again, just replace the key with the new one.
On every call to the server,
check if the current SessionId matches with the SessionId which is placed for the same user.
If it doesnt match, redirect to login and let the user login again.
|
|
|
|
|
<p>Hi,</p><p>Why not add a field to every user in your database to flag whether this user logs in or not?</p>
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 9:00am.
|
|
|
|
|
Dear april_123456
Thanks for your reply...
I also thought about that, but I want to know how to logout first logged in user by force...
please let me know your idea.
Thanks in advance.
|
|
|
|
|
This is my code
html = Server.HtmlEncode(FreeTextBox1.Text)
I have done validaterequest=false in the page then also its throwing error.I searched on google but all are saying same thing what i have done.I think it works for v1.1 and v2.0. I have targetframework=4.0.So please provide any idea to solve this error in .net 4.0.
|
|
|
|
|
hi
Put ValidateRequest="false" in source page directive of the freetextbox used pages.
<%@ Page Language="C#" ValidateRequest="false" />
your's subbu
|
|
|
|
|
Is it possible to hide (visible=false) a complete row of controls with 1 command? And can this be controlled from code-behind? If so, pleasee show example...
Thanks in advance...
Chuck...
|
|
|
|
|
Yes, it is possible.
Give the Row a id and make it runat="server" like
<table>
<tr id="rowhide" runat="server">
<td>
<asp:Label id="lbl" runat="server" Text="Test"></asp:Label>
</td>
<td>
<asp:Label id="lbl2" runat="server" Text="Tes2"></asp:Label>
</td>
</tr>
</table>
And now at the code behind page you can do like
rowhide.Visible = false; //true
Hope it helps.
Regards,
Kaushal Arora
|
|
|
|
|
Thanks Kaushal, I will try this out first thing in the morning and let you know. I think I tried something like this with out much results but I might not have included the runat=server in the tr statement. I'll let you know...
Thanks again... Chuck...
|
|
|
|
|
Hi MacIntyre,
Please specify which control you are using now ???
Most of the controls support this visiblity feature. You can use Fetchrowstyle(),OnItemDataBound() methods, only when you are using grids.
datarow.visible is also possible. or,
place these controls in a panel, after that manage the visibility of the panel.
If you are using server tables you can manage it from code behind. But it would be
memory consuming. So, dont try to use server controls, if possible
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
most of the rows are in a table and are things list dropdownlist, label and textbox. They are usually all within the same row or tr tags..
I actually want it to appear to non-managers as if there was never anything there, but to managers the row appears.
Ex: To manager:
Customer Name: John Doe
Account Balance: $10.000
Account Standing: Excellant
EX: to non-managers:
Customer Name: John Doe
Account Standing: Excellant
So you see a non-manager would never know that the "Account Balance" row ever existed.
If you have additional thoughts I would appreciate hearing them.
CHeers..
Chuck...
|
|
|
|
|
Hi everyone,
I have some usercontrols which implements my custom interface IMyControl.
I want to know if there is a EASY and EFFICIENT way to retreive all my custom controls with type = IMyControl from either ASP.net page or winforms.
I know I can recursively loop through each control.controls and compare the typeof ctrl is IMyControl but I think this is not efficients if I have nested level of controls?
thanks in advance..
cheers.
Wilson
Still a newbie.. learning
|
|
|
|
|
Y can't you use 'findcontrol()' method. Will it solve your problem ?
Thanks & Regards,
Jeneesh k. v.
|
|
|
|
|
thanks.. but don't think that is what I want to achieve..
what I want to do is retreive all those controls with specify type e.g. IMyControls. then I can call a function declared within that interface for all those controls. . I don't think I can just the FindControl to get certain TYPE of control?
Cheers,
Wilson
Still a newbie.. learning
|
|
|
|
|
Hi to all,
I am using formview control to generate invoice. Instead of printing html view , it is printing html code in PDF. I am doing like this:
public void generate()
{
MemoryStream m = new MemoryStream();
Document document = new Document(PageSize.A4, 10f, 10f, 10f, 0f);
try
{
Response.ContentType = "application/pdf";
StringWriter sw = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(sw);
FormView1.RenderControl(htw);
string html = sw.ToString() ;
StringBuilder str = new StringBuilder();
str.Append("<h3><b>Online Application Form Details </b></h3>");
str.Append(html);
PdfWriter writer = PdfWriter.GetInstance(document, m);
writer.CloseStream = false;
document.Open();
document.Add(new Paragraph(str.ToString()));
}
catch (DocumentException ex)
{
Console.Error.WriteLine(ex.StackTrace);
Console.Error.WriteLine(ex.Message);
}
document.Close();
Response.OutputStream.Write(m.GetBuffer(), 0, m.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
string filename = "~/Invoices/sample.pdf";
string path = Server.MapPath(filename);
m.WriteTo(new FileStream(@path, FileMode.Create));
m.Close();
}
public override void VerifyRenderingInServerForm(Control control)
{
}
please assist me.....
cheers,
sneha
|
|
|
|
|
hi friends..
iam working with remote ssrs in sql2005.i deployed reports to my remote server sucessfully...but when am conneting to reportviewr am getting
"One or more data sources is missing credentials"
this error...
ReportViewer1.ShowCredentialPrompts = false;
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
ReportViewer1.ServerReport.ReportServerCredentials = new ReportServerNetworkCredentials();
ReportViewer1.ServerReport.ReportServerUrl = new System.Uri("http://SAI/ReportServer");
ReportViewer1.ServerReport.ReportPath = "/TotalStudentsReport/TotalStudentInfo";
ReportViewer1.ServerReport.Refresh();
this is the my code..and also mentioned credentials ..
please help me..
txs in advance...
|
|
|
|
|
Hello -
I need a help with this issue and I hope someone can help me. I want to have a page which will perform a delayed action, lets say, after 10 minutes execute some method, but I want the user to be redirected in the same moment when the button will be clicked, not to wait 10 minutes for the next page.
Like even if the page is closed, the code to be executed after the amount of time I will declare.
Is that possible?
Thanks a lot for every help, Laziale
|
|
|
|
|
Hi
You can use multithread programming and Ajax(to inform work complete)
Multithreading:
when the server recieves the client's request , the web application
delegates a secondary thread to do time consuming task and responses the
client to be waiting.
Ajax:
the client callbacks every 10 minutes(for example) to the server to inform
whether the task is completed or not
Hope to be useful
Mohammad Khansari
|
|
|
|