|
if u want to share the data between the 2 users then you can use the aplication object for that otherwise session object is the right way to put the data.
it will not effect the performance of the application.
Pankaj Gupta
(Take it easy)
|
|
|
|
|
Hi,
I am trying to create csv file ,its working fine but problem is its creating on server side, and i want it to create on client machine.
Now i am using this code ,
FileStream sb=new FileStream("C:\\CSVFile.csv", FileMode.OpenOrCreate);
StreamWriter sw = new StreamWriter(sb);
sw.WriteLine("{0},{1},{2},{3}",
1,1000,"City","Cust_Name");
sw.Close();
Please help me,its very urgent.
RoseMary
|
|
|
|
|
Something like this may work:
ASCIIEncoding asciiEncoding = new ASCIIEncoding();
byte[] sendBytes = asciiEncoding.GetBytes( sendText );
MemoryStream memoryStream = new MemoryStream( sendBytes );
Response.ClearContent();
Response.ClearHeaders();
//Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Length", memoryStream.Length.ToString() );
Response.AddHeader("Content-Disposition", "attachment;filename=bs.bad" );
//Response.Charset = "UTF-8";
Response.BinaryWrite(sendBytes);
Response.Flush();
Response.End();
|
|
|
|
|
how can i call a javascript function from the server.it shoucd be called in 'if else' condition
thank you
|
|
|
|
|
why do want to write javscript if you have to do it in serverside? That you can write in c#.
Best Regards,
Apurva Kaushal
|
|
|
|
|
i need to show a message box.
in the page a time countdown is going on.if i click next button without selecting nothing i need to show a confirm box.
how can i do?
thank you
|
|
|
|
|
If you just want to show a message box on a click of a button then you can do it like this:
Button1.Attributes.Add("onclick", "javascript: alert('hi test');");
Best Regards,
Apurva Kaushal
|
|
|
|
|
thats right..but i want to call a javascript in 'if else' loop. so can in call javascript only in one condition
|
|
|
|
|
you can write a javascript function and then call that function on onclick of the button. Alternatively you can also write two functions and call them based upon your if else criteria.
Best Regards,
Apurva Kaushal
|
|
|
|
|
how to call a javascript function without giving attribute.add
|
|
|
|
|
you can write it in the html part also for the button, but why you don't want to use attribute.add method?
Best Regards,
Apurva Kaushal
|
|
|
|
|
i am developing online exam.in question session, if i click next button without check radiobox i need to show alert. else continue.i have give time countdown in javascript.so if i give attribute.add time will stop countdowning. so i plan to call javascript only in if-else loop when radio not checked
thank you
|
|
|
|
|
For this you can write a simple javascript validate function and call that function on onclick of the button. In that button you just have to check whether any of the radiobuttons have been checked or not. And I don't think so that because of this validate function any of your other javascript function will get affected. Here[^] you can get the example of how to validate a radio button.
Best Regards,
Apurva Kaushal
|
|
|
|
|
|
Hello,I have a button,when i click on that button it opens the OpenFile window like a window after click on the browse button
Plzz Give me some idea regarding this
Advanced Thanks
Srilakshmi
|
|
|
|
|
Try it using the Javascript.
Regards,
Satips.
|
|
|
|
|
you can open a new browser window with the help of javascript.
window.open()
function is used for that
Pankaj Gupta
(Take it easy)
|
|
|
|
|
Hi All,
My requirement is like this:--
Suppose if i have a table having numerous cols as well as rows , i need to make the header always visble and there shouldn't be paging(so as to avoid postbacks). Also the page shouldn't be lengthy to accomodate all the records.
A <div> is a possible solution for this. But as we scroll down the div the header also goes up, instead i need to make the header fixed and scroll thru the records so as to make out the title of each column.
Please help me out with an answer.
Thank You.
Regards,
Jeeva
-- modified at 0:45 Friday 3rd November, 2006
|
|
|
|
|
try it out by using panel.
Regards,
Akhilesh Yadav
|
|
|
|
|
what property of panel we can set so that we can make header of grid steady??? is there any property for that??
Regards,
DJ Rock
|
|
|
|
|
You can create a table with 2 rows.
first row conatining the cols equal to grid.
...
(equal to cols in the grid)
fix the width of the cols of the table equal to grid.
and dont show the header of the grid.
it just give the view as you want.
Pankaj Gupta
(Take it easy)
|
|
|
|
|
hi all,
can anyone help me with displaying of graph dynamically. i am trying to compare with different data in the same graph and while moving mouse over the graph area, a pointer(icon) should move along the graph line.(u can refer to http://finance.yahoo.com/charts).i am restricted not to use any third party tools and to be done using c# and asp.net.
thanks in advance
regards
bskvarma
|
|
|
|
|
Hi,
I want to get the data from database ( table is having only one column ), it has to be displayed as the first column in the grid.( which is a template column ).
Please share your ideas.
Thanks in advance
Regards,
Libran
|
|
|
|
|
hi
What data you are having in your database??? and why you want to display in template column???
|
|
|
|
|
column is having movie shows like morning,noon show, matinee etc.I have other template columns which are having check boxes.
|
|
|
|