|
Iam finding a web template.That web template say about buy and sell books.If somebody have it,send source of it to me,please.Programming language which I used is C#.My yahoomail is phap007@yahoo.com.Thanh you everybody.
|
|
|
|
|
This Forum is for help if you faced or stucked to an issue
please don't post like this
What are you requirements ? Accordning to that start working if you stuck to any problem then ask in this forum
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Sorry,Iam a new member.I have not understood be complete about this regulation of forum.
|
|
|
|
|
hi..
you can read the first message in forum which explains you the same in detail about how to work in this forums..
-- modified at 13:40 Wednesday 18th April, 2007
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
hi...
Can anyone let me know how to give permissions for the application to allow it to create,alter,delete a file in a folder using asp.net.i want to perform these operations at a file on the server side.
Any good links that help me out are also welcome.
thanks in advance
-- modified at 11:43 Wednesday 18th April, 2007
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Is it in the client machine's folder or server folder ?
you can give if the folder is of server side
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
hi thkns for ur time
i want to write file at server side ..
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
you need to right-click the folder, go to security tab and add ASPNET account to the list, then grant write permissions to that account
<< >>
|
|
|
|
|
thnks its working...
Rama Charan Prasad
"Be happy and Keep smiling.Thats what u want be always.. "
|
|
|
|
|
Hi,
I am using Response object to dowload a file from my server like, <Response.WriteFile(), Response.End()>
During the FileDownloading, I wish to redirect to another page, saying some message (Thank you for download) to the user.
Problem : If I use the Response.Redirect(URL) after Response.End() in download, It wont works. If I use previously, the file is not downloads.
What is the soln for this?
Regards,
Jay
|
|
|
|
|
|
If it is another page in your web site you should be able to use:
Server.Transfer(URL)
Hope that helps.
Ben
|
|
|
|
|
Bit of a tricky one here - have an app which is framed, and into the main frame we load usercontrols (ascxs) into a placeholder to act as pages (The app was written before Master Pages ). Now all is fine with this setup, but I've recently run into a strange problem.
I have an ascx which grabs its data using AJAX. Everything works correctly. Now when I use the back button, I navigate correctly back, but when I come to navigate forwards again, I find that SOME of the contents of the "dialog" are still there. What do I mean by Some? Well, the data that was contained in ASP:Labels is cleared correctly as it should be, but items in ASP:TextBoxes aren't cleared down - they maintain their state from before the browser back.
I have a js function, which is run every time the page loads (including on bck / forward nav)which is responsible for clearing everything down, and having stepped through it, the plot thickens! The code uses document.getElementById, which manages to get hold of the controls correctly. Strangely, the props of the controls indicate that they're empty already, but pressing ahead with some .value='' lines, everything appeared to go correctly, but the text in the textboxes steadfastly refuses to diappear.
ANYONE have any ideas - anything at all? It's driving us nuts here!
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
RichardGrimmer wrote: but items in ASP:TextBoxes aren't cleared down - they maintain their state from before the browser back.
The browser remembers the contents of form fields.
RichardGrimmer wrote: I have a js function, which is run every time the page loads
Are you running it from the onload event in the body tag, or from a script tag in the body? If the later, try the former. You may be clearing the fields before they are populated by the browser.
---
single minded; short sighted; long gone;
|
|
|
|
|
Yeah - that was my first line of enquiry! And we also suspected that it was to do with the fact that they're form fields, but unfortunately, the problem is that I need to clear these fields down, so wrote a clearDialog() function, coded into a separate js file. This function appeared to do what it said on the tin, but it was as though something was happening AFTER I'd cleared it.
At the moment I'm leaning to putting the blame on my AJAX manager - rather than use a "global" XMLHTTP, I've created a lib to handle it, and one of the features is that multiple requests are "handled correctly". Having traced the code, it looks like my onreadystatechanged callback functions are getting confused, so that on startup, it's going off to get some static data, getting the data, then falling through to the wrong callback fn - which by a strange quirk, still has its data available, so it goes off and does its thang, which fills in the fields I've just cleared down...
Ooops
Cheers for the reply though Guffa.
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Hi,
Is there anyway that I can check through code (C# or VB.Net) whether the scripts enabled in the browser, if the user disabled it? If I write some javascript validations, inorder to work the validation correctly, scripts has to be enabled. Also, is it possible to check whether the cookies are also enabled? any help in this regard would be greatly appreciable.
Thanks,
Meeram395
|
|
|
|
|
i think youu should not play with user's browser. It solly depends on him
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Thank you Sandeep. I agree that it's not wise to play with user's browser. But for some applications, it may be essential to check whether the scripts enabled or not inorder to run the script validations and functions run properly.
I have found out one solution is that there is an html tag called 'noscripts' after the "" tag in html page. Write any text between that. For eg: '<noscripts>' Check Scripts Enabled ''. We can get this value using another variable which is explained clearly in this url:
http://www.eggheadcafe.com/community/aspnet/6/10004494/detect-the-browser-using.aspx[^]
Thanks,
Meeram395
|
|
|
|
|
Hi Ram
I didn't say that its not possible you can do that there are many ways to achieve it but Who knows due to dependency your logic get collapsed at any time If you want to do then think other side also and implement for worse case also
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
Hi,
I have Infragistics's Webgrid on page. Whenever I click submit button, it successfully post all data (of webgrid also) to database, but fires following error for which I have pasted stack trace:
I am not getting the reason behind it. (What do it mean "Check WebCombo ValueList settings" in stack trace.)
Please help on why is this happening. It's urgent.
---------------------------------------------------------------------------
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Infragistics.WebUI.UltraWebGrid.UltraGridRow.GetCellText(UltraGridColumn column) +67
Infragistics.WebUI.WebCombo.WebCombo.Infragistics.WebUI.Shared.IProvidesEmbeddableEditor.RenderValue(Object value) +531
[Exception: WebCombo DisplayTextField or DataValueField is not correctly configured. Check WebCombo ValueList settings.]
Infragistics.WebUI.WebCombo.WebCombo.Infragistics.WebUI.Shared.IProvidesEmbeddableEditor.RenderValue(Object value) +591
Infragistics.WebUI.UltraWebGrid.UltraGridColumn.GetFormattedText(Object value) +108
Infragistics.WebUI.UltraWebGrid.CellText.Infragistics.WebUI.UltraWebGrid.IRenderable.Render(HtmlTextWriter stream) +590
Infragistics.WebUI.UltraWebGrid.UltraGridCell.Infragistics.WebUI.UltraWebGrid.IRenderable.RenderInner(HtmlTextWriter stream) +69
Infragistics.WebUI.UltraWebGrid.UltraGridCell.Infragistics.WebUI.UltraWebGrid.IRenderable.Render(HtmlTextWriter stream) +2190
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.RenderCell(UltraGridRow row, UltraGridColumn column) +67
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.RenderRowData(UltraGridRow row) +2793
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.RenderTableData(RowsCollection rows) +933
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.RenderTable(RowsCollection rows) +2678
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.RenderTableDiv() +2243
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.RenderTableFrame() +2557
Infragistics.WebUI.UltraWebGrid.RenderDHTMLGrid.VisitObjects(HtmlTextWriter output) +938
Infragistics.WebUI.Shared.RendererBase.Render(HtmlTextWriter output) +16
Infragistics.WebUI.UltraWebGrid.UltraWebGrid.Render(HtmlTextWriter output) +355
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +280
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +21
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +61
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +257
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +280
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +45
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +21
System.Web.UI.Page.Render(HtmlTextWriter writer) +27
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +53
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +280
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7425
Ashish
|
|
|
|
|
I think that you must be calling this method:
Infragistics.WebUI.UltraWebGrid.UltraGridRow.GetCellText
someplace in your code. I am guessing for some reason you are passing in a column number that doesn't exist. I think you should debug into your code and watch the call to the method above.
Hope that helps.
Ben
|
|
|
|
|
I havn't put GetCellText method anywhere. Application do not raise any exception that can be catched (There is try catch for all code). It succesfully executes (seen in debug mode) without going to any catch block. When page is to be rendered on browser after all execution on server side, it generates this error. All data is successfully posted to Database.
What do this mean?
[Exception: WebCombo DisplayTextField or DataValueField is not correctly configured. Check WebCombo ValueList settings.]
|
|
|
|
|
Hi friends,
I just tried this code to send mail from asp page.
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("mrk_hari@yahoo.com");
message.Subject = "This is the Subject line";
message.From = new System.Net.Mail.MailAddress("shkuricheti@gmail.com");
message.Body = "This is the message body";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("localhost");
smtp.Send(message);
I'm getting this error
Server Error in '/Phase1&2Backup23Mar' Application.
--------------------------------------------------------------------------------
An established connection was aborted by the software in your host machine
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
Source Error:
Line 24: message.Body = "This is the message body";
Line 25: System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("localhost");
Line 26: smtp.Send(message);
Line 27: }
Line 28: }
Source File: c:\Inetpub\wwwroot\Phase1&2Backup23Mar\SendMail.aspx.cs Line: 26
Stack Trace:
[SocketException (0x2745): An established connection was aborted by the software in your host machine]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +200
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +60
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +579
[WebException: Unable to connect to the remote server]
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +391
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +288
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +46
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +429
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +332
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +287
System.Net.Mail.SmtpClient.GetConnection() +56
System.Net.Mail.SmtpClient.Send(MailMessage message) +1672
[SmtpException: Failure sending mail.]
System.Net.Mail.SmtpClient.Send(MailMessage message) +2237
SendMail.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Phase1&2Backup23Mar\SendMail.aspx.cs:26
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +31
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +68
System.Web.UI.Control.OnLoad(EventArgs e) +88
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3038
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Am I missed something...
Thanks
Hari
|
|
|
|
|
Do you have a SMTP mail server called localhost? You have to put in the actual IP address or name of your SMTP mail server to send mail.
Ben
|
|
|
|
|
Hi,
Replace your code with the following code and check your application:-
static string HostName = System.Net.Dns.GetHostName();
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("mrk_hari@yahoo.com");
message.Subject = "This is the Subject line";
message.From = new System.Net.Mail.MailAddress("shkuricheti@gmail.com");
message.Body = "This is the message body";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(HostName);
smtp.Send(message);
Sandeep Kumar.V
|
|
|
|
|