|
when trying to save documents that have been modified, errors such as “webserver not found” or “path not found” seem to be a continual problem
Can anyone explain on this with the possible occurence and their solutions, i know some reasons for this occurence that is the link might have broken to the server and the session problems. do it has any other reason.
|
|
|
|
|
Maxy55 wrote: when trying to save documents that have been modified, errors such as “webserver not found” or “path not found” seem to be a continual problem
There can be following reason.
1. Document Size.
2. Check the Document Library Permission. What type of files its allows to upload.
Hope this will helps you.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Thanks for the reply abhijeet.I had that option open but even if that is a problem will it give the error as webserver not found... I was thinkin in that way.
|
|
|
|
|
Hello everyone,
In my project,I have a master page which is applied to almost all the other aspx pages.On some of the pages I have used Update Panels.I want to display a Loading image whenever any page is opened or any button on the page is clicked(i.e. on every postback). Hence,I placed an UpdateProgress control on Master Page ,then I put the ContentPlaceHolder inside an UpdatePanel(say, UP1) and set AssociatedUpdatePanelProperty to UP1.But it works only when first time I try to login into the site,after that it doesn't work at all,for any postback.
Any idea why is it behaving like this?
Please give some suggestions to make it work for all the postbacks.
Thank You.
|
|
|
|
|
there may be the problem of multiple script managers in master page as well as the content page.
Try using ScriptManagerProxy in content pages. If this was not your problem, let me know
|
|
|
|
|
Hey, thanx for the reply,but it din't work.
Any other suggestion???
What might be the possibility that updateProgress is not working on page load,any idea???
|
|
|
|
|
I have an asp:Menu on a master page and for one of the menuItems navigation url I can use 'javascript:myfunction()' to call a javascript function in the master page. No problem. Now, what I need to do is use that same master page asp:menu menuItem to call a javascript function in the content page. Does anyone know how I can call a javascript function located in the content page from the master page using an asp:Menu menuItem navigation url located on the master page?
Thanks,
Steve
|
|
|
|
|
There is no such thing as a content or master page on the client, just a page. If you output script to call the method, and it's there, then it will be called.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have a detailsview showing data from 2 tables. One of the data fields in the detailsview is a link for another page.
The link is created using <a id=.. runat=server target="_blank>..etc
In the Page_Load, I am using code like -
DetailsViewRow row = dvParams.Rows[0];<br />
tbox = (TextBox)(row.FindControl("txtEqpID"));<br />
anchorSpEquipment = (HtmlAnchor)(row.FindControl("lnkSpEquipment"));<br />
anchorSpEquipment.HRef = "....."<br />
It works fine but if edit-update/cancel is clicked, the link goes away, leaving only the text. So, I put the same code above in the detailsview PreRender event handler and it started to work fine.
But to edit this field(in edit mode), I have a dropdown list with values populated from another table in the database. To do that - I needed to put code in the PreRenderagain.
As soon as I did that, the previous code is giving me null reference on the HtmlAnchor object. I tried to move the code in other EventHandlers like ModeChanging,ItemCommand - but everywhere it does the same...even in the Page_load if I move it outside of the !Page.IsPostBack, it gives the error.
Any ideas? Thanks.
|
|
|
|
|
This looks nasty, why not ust define the link in your aspx ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I tried that as well - and it's giving me the same error.
Is there any other way?
Thanks.
|
|
|
|
|
I got it figured out, thanks Christian.
I did this: in the DataBound event handler, to filter the exception - I used if:
<br />
if (dvParams.CurrentMode != DetailsViewMode.Edit)<br />
{<br />
DetailsViewRow row = dvParams.Rows[0];<br />
tbox = (TextBox)(row.FindControl("txtEqpID"));<br />
HtmlAnchor anchorSpEquipment = (HtmlAnchor)(row.FindControl("lnkSpEquipment"));<br />
anchorSpEquipment.HRef = "~/EquipmentDetails.aspx?Station=" + stationID + "&ColType=" + collType + "&Param=" + paramID + "&ID=" + tbox.Text;<br />
}<br />
|
|
|
|
|
I've been trying to create a simple method to update iframe content via a mix of asp.net and javascript. I can set a meta refresh, but that makes for a lot of traffic. I had created an aspx page that loaded into a hidden iframe (which did a meta refresh every 60 sec). This aspx would connect to a database and check for updated content, a "yes" or "no" in a table field. If "yes" then it would spit out some javascript code to reload the appropriate iFrame. But, there seems to be a couple of problem with this in that, one, the hidden aspx doesn't seem to load or execute but once. The other is that the javascript code isn't reloading the appropriate iframe.
I would think this approach should work. I probably don't have it coded correctly. But, what I want to ask was if this method is a reasonable approach? Is there a better way of doing content updates without a lot of overhead code loading into the browser?
Thanks
|
|
|
|
|
If you want the page to refresh itself, a js timer is the only way to do that. If only part of the page refreshes, you can use AJAX to make requests for that data.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
HI
Can any one let me know, how to create different subdomains using ASP.NET C#, e.g if My URL is www.Mydomain.com if any user gets registered then the users own subdomain get created e.g. www.UserName.MyDomain.com, can any one let me know how to do it , can any one provide me any code snippet, thanks in advance,
regards,
Tippu
|
|
|
|
|
The only code that could do this, is URL rewriting. Look at HTTP handlers.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Can you send me any code?
|
|
|
|
|
No, I can't. I know that ASP.NET as it's typically used, plainly can't change a URL. URL rewriting can, and I know where to look for that info in ASP.NET. That's why my reply was tentative. I've not done it, I just know enough about ASP.NET to know where I'd look, so I gave you some keywords to type into google. Good luck.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
How about you read about this and write an artice with source code?
Yusuf
|
|
|
|
|
Hello sir,
On registering our details to a new website, we recieve a confirmation mail along with user name, and password. How is it possibile? How can i do so using c#?
|
|
|
|
|
Nothing special... just during registration enter all the info into table, and leave the active field of the database as false. Send a confirmation mail with one transaction id, which you hold to the database upto a certain time... When the user clicks on the link you have provided with the email, it opens up a new page for activation, you can get the transaction id through query string or else ask the user to enter....
If the user enters correct transaction id, you can update the active bit field in the database and make the user active....
Simple..
|
|
|
|
|
Check This[^] Post. That is similar post like you. You will get a better idea from that.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
in class mail
public static void SendMail(string MailTo, string MailFrom, string Subject,String MailBody)
{
System.Net.Mail.MailMessage objMailMessage = new System.Net.Mail.MailMessage(MailFrom, MailTo);
objMailMessage.Subject = Subject;
objMailMessage.IsBodyHtml = true;
objMailMessage.Body = MailBody;
SmtpClient objsmtp = new SmtpClient();
objsmtp.Send(objMailMessage);
}
in aspx.cs call Sendmail function
string Subject="Hoe to send mail";
strimg MailBody=" Dear user your Username=" +username +"";
"password ="+ password;
SendMail(to@mail.com, from@mail.com, Subject,MailBody)
and also set smtp setting in webconfig
|
|
|
|
|
Hello sir,
I have to encrypt my password.I used the following statement.
string pswd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPswd.Text, SHA1 );
Error message is "SHA1 is a type not a variable".
How can i do?
|
|
|
|
|
The second parameter is expecting a string not an enum.
Try this:
string pswd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPswd.Text, <code>"SHA1"</code> );
Kelly Herald
Software Developer
|
|
|
|