|
A piece of advice, mr/s beginner:
people here will be glad to help with specific prohlems, but we are not here to do your work for you. There is a very good website called Google[^] which is invaluable for finding things out. For example, try searching for "asp.net file upload"...
|
|
|
|
|
Hi AccessRed,
I think you are very new in our forum. So, I would like to give you one suggestion. If you want to do something, don't forget to search in Google.
<a href="http://www.google.com/search?q=asp.net+file+upload&rls=com.microsoft:*:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7&rlz=1I7SUNA">ASP.NET File Upload</a>[<a href="http://www.google.com/search?q=asp.net+file+upload&rls=com.microsoft:*:IE-SearchBox&ie=UTF-8&oe=UTF-8&sourceid=ie7&rlz=1I7SUNA" target="_blank" title="New Window">^</a>]
You can read those articles and try to test in your machine.. then, you will understand more about how things work. After that, if you are still facing the problem, you can come back here and ask the specific question. I think that the first link from the Google result that I gave you might solve your problem. Good luck.
|
|
|
|
|
sorry. there is no reply when I posted this thread..
|
|
|
|
|
Hi
I have developed an C# web application in VS2005. This executes well and fetch the mails in the Outlook 2003 in DEBUG mode, but when I am creating Virtual Directory and accessing using the local IP, i am getting the following exception:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.
Madhan
|
|
|
|
|
Hi,
I'm having an web application that is exporting data to multiple excel worksheets.
Even though I haved added References and included the namespace , using Microsoft.Office.Interop.Excel, that Excel object is not coming in the Intellisense property. Because of that i'm not able to create the excel object.
I'm using ASP.Net 2.0. In version 1.1 it is working. Could anybody pls help or any url please?
Thanks
Meeram395
|
|
|
|
|
I think you might add the wrong one.. you should try to remove it and re-add it again.. I have tested in my machine and it works fine..
|
|
|
|
|
hi all,
i have a problem in renaming folder ,
problem as follows:
i am moving files from one folder to another folder it is moving files to new directory but it is reset the session value to null. how to solve this . or give me any idea with out using move method rename the folder . its very urgent please help me in this.
Thanks And Regards,
Guru
|
|
|
|
|
Thre is no reason why moving files or renaming directories should, in itself, end your session - there must be some other reason why this is happening.
|
|
|
|
|
i am trace out the problem but i read in forms while searching in Google they explained as if we move on directory to another directory it will reset the application state.if u know any another way to rename the directory please let me know.
Thanks And Regards,
Guru
|
|
|
|
|
I have a datagrid with an CalendarExtender conected to a TextBox in a DataGrid
<br />
asp:datagrid id="dgSubscription" runat="server" CssClass="grid" AllowPaging="False" CellPadding="0"<br />
GridLines="Vertical" AutoGenerateColumns="False" ShowFooter="true" OnItemCreated="dgSubscription_ItemCreated"><br />
<br />
Columns><br />
asp:TemplateColumn HeaderText="Date" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="150px"><br />
ItemTemplate><br />
asp:TextBox ID="tbDtmStart" runat="server" AutoPostBack="true"></asp:TextBox><br />
<cc1:CalendarExtender ID="ceStart" runat="server" Format="dd.MM.yyyy" TargetControlID="tbDtmStart" SelectedDate='<%#(DateTime)DataBinder.Eval(Container.DataItem, "dtmStart")%>'><br />
</cc1:CalendarExtender> <br />
I have an on item created in the code behind, hver I add a TextChanged event to the Date TextBox
<br />
protected void dgSubscription_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)<br />
{<br />
try<br />
{<br />
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)<br />
{<br />
<br />
tb = (System.Web.UI.WebControls.TextBox)e.Item.FindControl("tbDtmStart");<br />
tb.TextChanged += new EventHandler(this.OnSubscriptionDtmStartChanged);<br />
<br />
.....<br />
At first time the page load, the DataGrid.DataSource gets it values from
a dataview.
The problem is that the OnSubscriptionDtmStartChanged is
triggerd for every row in the DataGrid, because the CalendarExtender changes the TextBox's value.
There is allso a problem that the OnSubscriptionDtmStartChanged funtion i triggered 2 times
when I change the value on one of the DataGridRow.
I know that all of this has to do with the CalendarExtender changes the TextBox's value,
but can I some how get around this?
Thanks
Thomas
|
|
|
|
|
The problem was that I binded the Date to the CalendarExtender as:
<cc1:CalendarExtender ID="ceStart" runat="server" Format="dd.MM.yyyy" TargetControlID="tbDtmStart" SelectedDate='<%#(DateTime)DataBinder.Eval(Container.DataItem, "dtmStart")%>'><br />
All of my problems went away when I insted:
asp:TextBox ID="tbDtmStart" runat="server" Text='<%#((DateTime)DataBinder.Eval(Container.DataItem, "dtmStart")).ToString("dd.MM.yyyy")%>' AutoPostBack="true"></asp:TextBox><br />
<cc1:CalendarExtender ID="ceStart" runat="server" Format="dd.MM.yyyy" TargetControlID="tbDtmStart"><br />
</cc1:CalendarExtender>
Thomas
|
|
|
|
|
how to use the cursors for a select statement in a stored procedures to get the values in the asp.net applications
|
|
|
|
|
I think you need to do a brave bit more reading...
I think you want to execute your dataset using a SqlCommand object and then iterate through the results using a SqlDataReader.
You might want to have a look at the MS application block for data access, simplifies things a little:http://msdn2.microsoft.com/en-us/library/aa480458.aspx[^]
|
|
|
|
|
I created a web application in vs2008. I click run in that. It works. Then I create a virtual directory using IIS. From IIS itself, I try to run that application. But it shows the following error.
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A name was started with an invalid character. Error processing resource 'http://localhost/example/'. Line 1, Position 2
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="example._default" %>
-^
Can anybody help me.
I am using IIS 5.1
Thanks in advance
Regards
|
|
|
|
|
Just delete your cookies and try again i think this could be your problem.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
|
hi guys,
I am stuck on the issue of being able to call a javascrip function from my c# code.
This is my javascript:
<br />
<SCRIPT LANGUAGE="JScript"><br />
function showPosition()<br />
{<br />
var oElement = document.all.resultPanel;<br />
return oElement.offsetLeft;<br />
}<br />
</SCRIPT><br />
The javascript itself works fine, the problem comes down to how do I call my javascript in c#. This was my attempt:
<br />
private void CallJavascript()<br />
{<br />
string popupScript = "<SCRIPT LANGUAGE='JScript'>" + "function showPosition(){ var oElement = document.all.resultPanel; return oElement.offsetLeft;}</SCRIPT>";<br />
Page.RegisterStartupScript("PopupScript", popupScript);<br />
Label1.Text = popupScript.ToString();
}<br />
Can someone please help me correct the CallJavascript() method.
thanks
|
|
|
|
|
Page.ClientScript.RegisterStartupScript(me.GetType(), "dummyKey", "function name()", true);
|
|
|
|
|
jagadeeshkumar2106 wrote: Page.ClientScript.RegisterStartupScript(me.GetType(), "dummyKey", "function name()", true);
thanks for posting however i still dont get this ClientScript.RegisterStartupScript method. If my javascript is return a value how does this get handled in ClientScript.RegisterStartupScript ?
|
|
|
|
|
i think its better to keep in a hidden fiel value
|
|
|
|
|
A hidden field can be something similar to the input element as suggested in the example below ?
<br />
<script runat="server"><br />
public void Page_Load(Object sender, EventArgs e)<br />
{<br />
String csname2 = "ButtonClickScript";<br />
Type cstype = this.GetType();<br />
<br />
ClientScriptManager cs = Page.ClientScript;<br />
<br />
if (!cs.IsClientScriptBlockRegistered(cstype, csname2))<br />
{<br />
StringBuilder cstext2 = new StringBuilder();<br />
cstext2.Append("<script type=\"text/javascript\"> function DoClick() {");<br />
cstext2.Append("var oElement = document.all.Panel1; Form1.Message.value= oElement.offsetLeft;} </");<br />
cstext2.Append("script>");<br />
cs.RegisterClientScriptBlock(cstype, csname2, cstext2.ToString(), false);<br />
}<br />
}<br />
</script><br />
<html ><br />
<head><br />
<title>ClientScriptManager Example</title><br />
</head><br />
<body><br />
<form id="Form1"<br />
runat="server"><br />
<input type="text" id="Message" /> <br />
<input type="button" value="ClickMe" onclick="DoClick()" /><br />
<asp:Panel ID="Panel1" runat="server" style="position:absolute;top: 375px;left: 628px;height: 422px;width: 513px; border-color:Red;border-width:thick;border-style:solid"></asp:Panel><br />
</form><br />
</body><br />
</html><br />
edit: Example is based from MSDN article http://msdn2.microsoft.com/en-us/library/z9h4dk8y.aspx[^]
edit: sorry I worked out what a hidden field is thanks to google
http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlinputhidden(VS.71).aspx[^]
modified on Thursday, December 06, 2007 8:33:21 AM
|
|
|
|
|
hi friends
i will type any text in textbox. and chose any language that text will converted in that language example like englisg to french..
how to convert text like this anyone help me..........
|
|
|
|
|
1. The pros of "GetLocalResourceObject" and "GetGlobalResourceObject" is to help you achieve
Gloabalization and Localization easily. Cons is that writing code is a little complex than usual.
2. You can use Xml file instead of Resources, as resource itself is in xml format. I would not
suggest you use xml files, because you will lose the ability of using the build-in resource
Localization/Globalization support.
3. The captions of controls should also be get from the resource file.
4. Since .NET 3.5 hasn't been released yet, I do not know whether it will have any new feature on
this.
You can take a look at the following links for more information
http://msdn2.microsoft.com/en-us/library/ms227982.aspx[^]
http://msdn2.microsoft.com/en-us/library/c6zyy3s9.aspx[^]
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
You need to have the translation service for that. so, you may develop your own one or you can use the third-party translation web services....
|
|
|
|
|
hi everyone,
I have 4 DropDownList controls which are used to take the starting time and ending time of a business. I only take hours and minutes for the Starting time.
Now I want to put some client side validation so that the starting time is less than the ending time. I'm using 24 hour notation so AM/PM is not an issue.
How can i make use of Javascript here. plz give me some idea/guidance/code sample(if any)
Thanks in advance
Rocky
You can't climb up a ladder with your hands in your pockets.
|
|
|
|