|
means when i run my project via Visual Studio.. inserting breakpoints in the code and debug the codes
|
|
|
|
|
sir
i want to develop a small website based on the data base. I know litle bit of VB , which are the knowledge is required for the develop of the website
Examble .: Courier company
Regards
mano
|
|
|
|
|
You should really pickup a book or two on ASP.NET and read through them. What is required is too lengthy to be answered fully here.
Failure is not an option; it's the default selection.
|
|
|
|
|
u'll download a opencode website,modify little code,
|
|
|
|
|
What?
Failure is not an option; it's the default selection.
|
|
|
|
|
Really? Quite often, that's harder than starting off from scratch.
|
|
|
|
|
Start here[^].
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Vb is hard for me ,I am just how to dotnet
|
|
|
|
|
ok u send the details on contact@7weboceans.in i will do it for you but you have to pay
|
|
|
|
|
Hi
When I use of crystal report (sap 13) and .netframework 4 in my application(c#-VS2010) I will be faces with this error :
Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
But when I choose .NetFramework 3.5 , it works fine.
Thanks very much
|
|
|
|
|
modify web.config file,about crystal report configure, .net frameword3.5 and 4.0 import file don't one
|
|
|
|
|
A completely useless and uninformative answer
Failure is not an option; it's the default selection.
|
|
|
|
|
Hi
Almost in all web sites in internet there is a propaganda at left or right top corner of the web site.
Now I want to Use propaganda in my site (VS2010 – C#). HOW CAN I DO IT?
Thanks very much
|
|
|
|
|
By propaganda you mean advertisements. There are many ways. Most sites use services such as adsense[^]. If you want to do it yourself there is the AdRotator[^] control available.
Failure is not an option; it's the default selection.
|
|
|
|
|
Good answer. +5
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi
How can I Limit size of pictures for upload in my web site (VS2010 – C#)?
Thanks very much
|
|
|
|
|
You can find that information in a place we like to call, documentation[^]
"The default size limit is 4096 kilobytes (KB), or 4 megabytes (MB). You can allow larger files to be uploaded by setting the maxRequestLength attribute of the httpRuntime element."
Failure is not an option; it's the default selection.
|
|
|
|
|
suggest used JS, U'll know the file size befor U loadup.
|
|
|
|
|
Do you want to limit the size under a certain value?
|
|
|
|
|
Hi
I export my GrideView from asp.net to excel but the fields which contain Persian character don’t export finely (VS2010 – C#). HOW CAN I DO IT?
My code is :
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("content-disposition",
string.Format("attachment;filename={0}.xls", "Exported"));
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/ms-excel";
using (StringWriter sw = new StringWriter())
{
using (HtmlTextWriter htw = new HtmlTextWriter(sw))
{
// Create a table to contain the grid
Table table = new Table();
foreach (GridViewRow row in GridView1.Rows)
{
table.Rows.Add(row);
}
// render the table into the htmlwriter
table.RenderControl(htw);
// render the htmlwriter into the response
HttpContext.Current.Response.Write(sw.ToString());
HttpContext.Current.Response.End();
}
}
Thanks very much
|
|
|
|
|
Format your code snippets
Failure is not an option; it's the default selection.
|
|
|
|
|
if you want export fine,you used row[m][n],each other cell, you'll format fields to excel.
|
|
|
|
|
A completely useless and uninformative answer
Failure is not an option; it's the default selection.
|
|
|
|
|
You don't export the GridView, you export the DataSource of the GridView.
Assuming you are using a DataTable as the DatSource
StringBuilder sb = new StringBuilder();
List<string> rows = new List<string>();
foreach(DataColumn col in DataSource.Columns)
{
rows.Add(col.ColumnName);
}
sb.AppendLine(string.Join(",", rows.ToArray()));
rows.Clear();
foreach(DataRow row in DataSource.Rows)
{
foreach(object item in row.ItemArray)
{
rows.Add(item.ToString());
}
sb.AppendLine(string.Join(",", rows.ToArray()));
rows.Clear();
}
Response.ContentType = "Application/x-msexcel";
Response.AddHeader("content-disposition", "attachment;filename=export.csv");
Response.Clear();
using(StreamWriter writer = new StreamWriter(Response.OutputStream, Encoding.UTF8))
{
writer.Write(sb.ToString());
}
Response.End();
Failure is not an option; it's the default selection.
|
|
|
|