|
Hi all,
I want to put an download link, when viwer click on the clink the relavent file has to be download. I dnt want to manage the file in zip format. If the user uploades the file as document, he can able to download the same file in document format and save in the local system.
Plz any one suggest me..............
Thanks in advance
Bye
Know is Drop, Unknown is Ocean
Know is Drop, Unknown is Ocean
|
|
|
|
|
Read my article it will give you some pointers on how you can achieve this
Article Here
|
|
|
|
|
how to insert asp.netcheckbox to a datagrid column to select individual records,
|
|
|
|
|
|
|
Dear all,
i am bit new to dotnet world, i am making web application using asp.net and C# (Visual studio2005).I wanted to Know how i can format string or number. Like if i select textbox to show only six digit. then even it is one digit it has to show as six digit
please give me some link or examples
Thanks
regards
imran khan
|
|
|
|
|
Try like this ...
string strTextboxValue=Textbox1.Text.Trim();
int i=int.Parse(strTextboxValue);
Arindam
|
|
|
|
|
Thank for reply,
Actually i wanted to do other way . that is for database i am fetching max no. in integer. now that integer type veriable i will assaign to textbox in formatted way. that is if integer veriable comes 1, it should show as 000001 in text box
HOw i can do it . please guide.
regards
imran khan
|
|
|
|
|
You can try this
here number is the value comes from database
str = String.Format("{0:D6}", number);
sachin
Very[D]
|
|
|
|
|
An error occurred while loading the document.Fix the Error,and try loading the Document again.
the error message follows:
The designer could not be shown for this file because none of the classes within it can be designed.
i got this error hw can i clear this error i am using .net 2003
thanks
Ramesh
|
|
|
|
|
i m developing an application with VS.Net 2003.
I have some reports made in crystal reports.
in one of my reports
i have to mentain master detail relationship.
how to achieve this with using hyperlinks..
any suggetion..
|
|
|
|
|
how do you retreive the variable values that you post from one page, in the calling page?
that is, in PHP you can use
$variable=$_POST['control name']
is there a similar thing in ASP.NET?
I want to know of a method other than passing variables with the URL.
|
|
|
|
|
The traditional way of retrieve the posted value is (common to ASP as well as ASP.NET),
Dim myname as String = Request.Form("Control Name")
If you use ASP.NET's Server controls, there is no need to use the traditional way. You just retrieve on the button click event as,
Dim myname as String = ControlName.Text
'Assume that the Control is a TextBox
Regards,
Venkatesh Mookkan.
Software Engineer, India
|
|
|
|
|
If you use the Server.Transfer method to move between your pages, you can also transfer your variable values using the HttpContext
|
|
|
|
|
Hi friends
i have a problem to install VS.NET 2.0 in XP professional Service Pack 2
when i start the installation,It gives error that
Suite integration toolkit executable has encountered a problem.
plz help me
PATHAN
|
|
|
|
|
Hi everybody,
I am working with Crystal Reports 9.0 and using it from Visual Studio 2005 with ASP.NET Application written in C#. The report has subreport within it.
Now the problem is that while I am trying to run the report with the DB other than Original DB with which I created Report, gives me following error.
Failed to open a rowset. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Procedure or Function 'usp_MYProcedure' expects parameter '@MyProjectNo', which was not supplied. SQL State: 42000 Native Error: Failed to open a rowset. Error in File D:\WINDOWS\TEMP\MyReport {01B3207D-27E0-4335-A678-95A00B9EF675}.rpt: Failed to open a rowset.
For one of the reports, it gives Missing Parameter Values error.
i.e. the above problems occur while I am connecting the application with other DB which is exact replica of the original DB (with which I have created the Crystal Report), but with different name.
Any suggestion is appreciated. Thanks in advance.
Sandip Kansara
Software Engineer
India.
|
|
|
|
|
|
how to upload 1gb data through mail in .net using C#
|
|
|
|
|
Whether you are uploading a 1 GB file through
1. Mail attachement or
2. File upload control
Both case to send a request of 1 GB to server, you have to tell the server that you are going to send a request having size more that 4096 KB( Becuase by default MAX request size length that you can send to IIS is system defined and it is 4096 KB)
Configure you application to tell IIS the same as following
Add this in web.Config file
<httpRuntime maxRequestLength="size in KB" executionTimeout="seconds">
Put the amount of data you want to Transfer in KB and adjust the time in seconds.
I hope it solves your problem ...
Arindam D. Tewary
|
|
|
|
|
if you want to get a file upload control i can tell you some method.
but sorry for my poor english ,if you know some chinese,contract me ,i will tell you .
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
suppose i have a html table with 5 records means 5 rows.i want that when my server side code will return a html table with 2 rows to client
side javascript then how could i dynamically remove all rows from my existing html table and add new 2 rows.so basically i have to know
how could i parse server side code by javascript and add 1 row in my table one after one and i want to have crossbrowser javascript for this case.
pls guide me with sample code
tbhattacharjee
|
|
|
|
|
==========================================================================
For Cross browser compatibility you can use this javasctipt code to detect which browser in is use. And then subsequently do the required.
==========================================================================
function whichBrs() {
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("opera") != -1) return 'Opera';
if (agt.indexOf("staroffice") != -1) return 'Star Office';
if (agt.indexOf("webtv") != -1) return 'WebTV';
if (agt.indexOf("beonex") != -1) return 'Beonex';
if (agt.indexOf("chimera") != -1) return 'Chimera';
if (agt.indexOf("netpositive") != -1) return 'NetPositive';
if (agt.indexOf("phoenix") != -1) return 'Phoenix';
if (agt.indexOf("firefox") != -1) return 'Firefox';
if (agt.indexOf("safari") != -1) return 'Safari';
if (agt.indexOf("skipstone") != -1) return 'SkipStone';
if (agt.indexOf("msie") != -1) return 'Internet Explorer';
if (agt.indexOf("netscape") != -1) return 'Netscape';
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
if (agt.indexOf('\/') != -1) {
if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
return navigator.userAgent.substr(0,agt.indexOf('\/'));}
else return 'Netscape';} else if (agt.indexOf(' ') != -1)
return navigator.userAgent.substr(0,agt.indexOf(' '));
else return navigator.userAgent;
}
==========================================================================
For creating number of rows in HTML table you can do like this ...
==========================================================================
Assume that you are getting a DataTable dTSourceTable from the server side
code
Now in HTML/aspx you have to insert server side code
<br />
<br />
<table width="100%" border="1"><br />
<% for(int p=0;p<dTSourceTable.Rows.Count;p++){%><br />
<tr><br />
<td width="100%">Display something here ...</td><br />
</tr><br />
<%} %><br />
</table><br />
<br />
Dont forget to declare "dTSourceTable" as a class level public variable in code behind file. Otherwise it will give error.
Hope it helps you ...
Arinda D Tewary
|
|
|
|
|
Assume that you are getting a DataTable "dTSourceTable" from the server side
code
Now in HTML/aspx you have to insert server side code
<table width="100%" border="1" >
<% for(int p=0;p<dTSourceTable.Rows.Count;p++){%>
<tr>
<td width="100%">Row</td>
</tr>
<%} %>
</table>
"dTSourceTable" must be declared public and class level variable in code behind file.
Arindam D. Tewary
|
|
|
|
|
sometime we render a image in a page just like writting the code like bitmap.Save (Response.OutputStream, ImageFormat.Gif);
but if i do it in this way then we can position the image according to my position.so pls tell me how could i directly attach any
output stream content to placeholder control or image control in asp.net.pls guide me with sample code
tbhattacharjee
|
|
|
|
|
i wrote a code which basically read a TIFF file and on fly it converts TIFF file to GIF and then render the GIF file to aspx page.
my code is working fine but it does not open in its original size.when image is render in aspx page then a symbol is coming
and when i click on that in IE browser then my image shows in its original size.so i want to know how could i write a code
as a result from the begining the image render in its original size.pls guide me with sample code
here i am giving my small code which basically read a TIFF file and on fly it converts TIFF file to GIF and then render the GIF file to aspx page.
string FName=Request.PhysicalApplicationPath +"Images\\Tridip.TIF";
bool fFound=false;
byte[] b1=null;
if(File.Exists(FName))
{
MemoryStream stream = new MemoryStream ();
fFound=true;
System.IO.FileStream fs1=null;
fs1=System.IO.File.Open(FName,FileMode.Open,FileAccess.Read);
b1=new byte[fs1.Length];
fs1.Read(b1,0,(int)fs1.Length);
Bitmap bitmap = new Bitmap (fs1);
Response.ContentType = "image/gif";
bitmap.Save (Response.OutputStream, ImageFormat.Gif);
fs1.Close();
}
else
{
fFound=false;
}
tbhattacharjee
|
|
|
|