|
Maybe U should use this
string path = Server.MapPath(@"~\Your_folder");
"@" means to escape backslash into string. And "~\" means that your files will upload into server folder.
Regard,
Edwin
|
|
|
|
|
if you're using Visual Studio to develop your ASP.Net applications, you may want to have a look at the extremely cool refactoring tools for ASP.Net just made available for free by Developer Express.
Have a look at see this blog entry and don't miss the link to the screencast!
More info can be seen (lots of screenshots) on this page from Mark Miller, the funny brains behind these productivity tools.
|
|
|
|
|
Woah, Thanx Cycnus, how do know about this coolest tool?
This is great!!!
Regard,
Edwin
|
|
|
|
|
I use the components and other tools developed by this company.
The non-ASP tools have lots more features but are not free. They are really cool an useful though and I couldn't do without them.
I love the visual effects too...
|
|
|
|
|
thanks for the infomation
Regards,
Tomi
|
|
|
|
|
Here is what I am trying to do. I am using ASP.NET 2.0. I have created a data set called Stocks data table called Data and put it in the App_Code folder. I am filling the data table from data in a csv file located on the web. I am populating the data table with the following code. This code works because I checked the record count and it shows 21 records for the Data data table.
public static DataSet Convert()
{
WebClient Client = new WebClient();
Stream myStream = Client.OpenRead("http://mysite.com/table.csv");
StreamReader myStreamReader = new StreamReader(myStream);
Stocks myStocks = new Stocks();
string line = myStreamReader.ReadLine();
string allData = myStreamReader.ReadToEnd();
string[] rows = allData.Split("\r\n".ToCharArray());
foreach (string r in rows)
{
string[] items = r.Split(",".ToCharArray());
myStocks.Tables["Data"].Rows.Add(items);
}
return myStocks;
}
I am trying to bind the data in this table to a report. I added a report to my project and selected the fields from the data table. I then added a ReportViewer control to the web form. I’m not sure how to configure the ObjectDataSource that is added to the web form after the ReportViewer control is added. It firsts asks to select business object. I have the following options. I’m not sure what to select.
Stocks
Stocks + DataTable
Stocks + DataRow
Stocks + DataRowChangeEvent
Stocks + DataRowChangeEventHandler
Next I need to define a data method. Not sure what option to select. I just want to bind the report to the data table and return the rows.
Any help would be appreciated. Thanks.
Weste
|
|
|
|
|
Hi,
I have a gridview User enter values into rows and with one button click I Want to save all data to Gridview. I am able to save all data from the Gridview to Database with one click.
Here my problem is :
On the Page_Load I am getting the data from Database. And storing it in the Data Table binding the datatable to Gridview.
The first column of Gridview getting the data from another apsx page. User add one row to gridview enter some data in that row. Again he clicking on addrow button which will add the row to gridview. This time the data entered in previous row is erasing. But
I need to persist the data in the previous row before adding the new row. Atlast I want to update all rows data into database with the Update button click which is outside of grdivew.
How to persist the gridview data.
Thanks
|
|
|
|
|
Since you are binding gridview on page_load , ASP.NET won't maintain it's viewstate. You need to bind it in any event that occurs before viewstate is loaded. Check MSDN for ASP.NET page lifecycle.
|
|
|
|
|
I'm installing a web page based on one of the MS templates at http://msdn2.microsoft.com/en-us/asp.net/Aa336613.aspx(the "personal" template, 2nd one down)
When running the site on the host, I get a "Server Error in '/' Application." error . What is more, the error references a line of code in the App_Code Folder >> PageBase.vb file, specifically
Return HttpContext.Current.Profile("StylesheetTheme").ToString()
If I comment out the property that the above line is from, the page loads, but stripped of any formatting. Now, the odd part is, I don't need any database connection yet for this page - just static pages - so I have removed all Datagrids and such that reference the database.
I'm still a bit fuzzy on how Themes work, except that they are some sort of server-side version of CSS. Any idea what is causing this error? Thank you for any suggestions!
Here is what that whole PageBase file looks like:
Imports System.Web.UI<br />
Imports System.Web<br />
<br />
''' <summary><br />
''' Base class for all pages in the application.<br />
''' </summary><br />
Public Class PageBase<br />
Inherits Page<br />
<br />
''' <summary><br />
''' Override the <see cref="Page.StyleSheetTheme" /> property to use the current user's profile.<br />
''' </summary><br />
''' <remarks>The reason for using the <see cref="Page.StyleSheetTheme" /> property instead of <br />
''' <see cref="Page.Theme" /> is the resulting output:<br />
''' StyleSheetTheme CSS files get output at the very beginning of the <head> element in the source, <br />
''' whereas Theme CSS files get output at the end. We're using IE-specific conditional comments in the <br />
''' masterpage that *must* be interpreted after the main style sheet, so we have to output the link to the <br />
''' main style sheet as early as possible.</remarks><br />
''' <br />
Public Overrides Property StyleSheetTheme() As String<br />
Get<br />
Return HttpContext.Current.Profile("StylesheetTheme").ToString()<br />
End Get<br />
Set(ByVal value As String)<br />
HttpContext.Current.Profile("StylesheetTheme") = value<br />
End Set<br />
End Property<br />
<br />
End Class
|
|
|
|
|
How to create the formatting bar at run time as provided in this site for bold,italic and underline
Thnx & Regards
Manoj Bisht
|
|
|
|
|
Hi
I am fairly new to asp.net ,i am using a grid view to show data from SQL database, I have enabled editing in grid view, when i run it in a browser and try to update any field, i get the error "Updating is not supported by data source 'SqlDataSource1' unless Update Command is specified."
i tried to configure data source >used Query builder>selected update tab>Chose the table which i want to update, and gave the Query as "UPDATE Calltracker SET Badge_numner ="
I am not sure this the way to do it or do we have any other way. and if this a way to update it what the value i should give and how should i give it..Your help will be greatly appreciated
NvN
|
|
|
|
|
When you configure your SqlDataSource1 make sure you select all from the table and also click on the advanced botton when the new window appears, make sure you check both radio botton and try again
|
|
|
|
|
Hi, I starting to development two applications connected to the same MSSQL server one is the back-end and the other one is the front end. I want to do it that way for security proposes, but I came across with saving the path of the images in the database. Since both ends are in different folder or application, if I save the path relate to one application I won’t be able to see it in the other, also I don’t want to have the images duplicated. Any subjection or idea how is that made?
|
|
|
|
|
hi there can anybody please tell me i want to do MCP Certifiaction and dotnet certification and i come to know that Microsoft had change the testing companies and centers can anybody tell me about this .Well This is Preeti form Jaipur(Rajasthan) India . I will be very thankful for your conern
With Regards,
Preeti Khandelwal
|
|
|
|
|
hi ,
Click on this link
http://vss.vue.com/VSSReports/ActiveIndiaTestingCenters.cfm
you can find list of centers
rajesh
|
|
|
|
|
There are three columns in a datagrid and first column will always contains values(for ex 4 records) but the second & third column may contain only 1 value or 4 records so kindly let me know in this type of scenario how to merge the rows and display the single value in middle against the first column values.
Thanks In Advance
|
|
|
|
|
|
Try
char t = (char)8800;
test.Items.Add( t.ToString() );
Check here[^] for different codes.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Don't know visual basic, but you have to cast the 8800 to a char. You are using 8800 as a string which is wrong.
try
Dim t As Char = ChrW(8800)
ListBox1.Items.Add(t.ToString())
That is a guess as I can't test VB here. I just googled around a bit.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
A pleasure.
Where's my 5 vote then?;)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Hi Malcolm,
i want to do the work withdundas developing a few sample charts against sum dummy databases.
so you hv any idea guide me so tht i can do tht
thanking you
chandrasekhar
|
|
|
|
|
Hi Chandrasekhar
It is best you reply to my original message and not start a new thread. I don't know the product, but I would have thought there would be plenty of samples provided with the Dundas framework, and also from the Dundas website. Do Dundas have a help forum? This forum is for ASP.NET, not for supporting 3rd Party products. Sorry.
Try clicking here for Dundas Forums[^]
Regards
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Please read the forum guidelines. Asking the same question four times will result in people ignoring you and you never getting help.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Dundas have support forums, that's the place to be.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
Im having a little problem retrieving the text from the textarea. I load the text for the text area and display it as follow in the aspx page.
<textarea id="editorArea" name="htmlEditorArea" rows="40" cols="60">
<%=editorAreaText %>
</textarea>
and then in the code behind I want to retrieve the text that has been modified by the user. I tried the following.
HtmlTextArea _textArea = (HtmlTextArea)Page.FindControl("editorArea");
string _content = _textArea.Value.Trim();
But it returns the HtmlTextArea as null and then throws the exception when getting the value that object reference not set to an instance of an object, I know this is because it did not assign the control, but what am I doing wrong?
thanks in advance
No matter how long he who laughs last laughs, he who laughs first has a head start!
|
|
|
|