|
Hi,
Help me to use Ajax,
My prob..
I want to use Ajax Technology in My Registration page,
before that I am using forms authentication for my website for login page
here that same application when try with the ajax that working fine after the login.. But before the Login page Ajax Not working..
Thanking you for your reply...
Balu
|
|
|
|
|
Hi
in my appln i will create a java script file at runtime.after that this file will be refered in another page(Html page).so when i give the entire path in the html page for the file name then only it was working.if i give the releative path, at first time it refers the created file.in the next time the file was created but it refers the old file.so each time i want to close the browser.then only it refers the created file.
so what can i do?
|
|
|
|
|
I have already answered that the previous time[^] you asked this question.
---
b { font-weight: normal; }
|
|
|
|
|
Sir,
In the datagrid, there are rows which contains a button called delete.I want to delete the record but before that i want to display the message that are u sure u want to delete the record.and how will i get the return type whether it is clicked yes or no so that accordingly i can proceed.
Please help.
|
|
|
|
|
Your answer has been given in a book named something like , ASP.NET applications ,Problem Design Solution published by Wrox.
As I remember they used a sever linkbutton with text property set to "" but visible property set to true.This makes its server side event active while makes the button invisible. They made use of the automatically generated javascript method called __dopostback. For example one way would be to create a javascript method and associate it to click event for a hyperlink that when clicked invokes that method. And in that method you would show the message box using alert() method and gather the user choice and according to the choice you decide whether to invoke the mentioned method(__dopostback) with parameters relationg to the aforementioned server link button.This causes the server side click event of the server link button to be invoked.
To undrestand this technique you have to know how asp.net generates client side scripts to manage server side events.
-- modified at 9:23 Monday 14th August, 2006
|
|
|
|
|
|
Hello all,
I need to create Powerpoint presentation using asp.net.The format for the presentation is predefined, so I need to use a template for the presentation.This presentation should be generated on the client side.
If anyone of you have any idea how to go about that, then please let me know. Thanks in advance
Thanks,
Avanika
|
|
|
|
|
May be you can try using macros for that.
I am not sure if you really want to build the presentation at client side. Why not you try building at server side and then post at client?
- ashish
|
|
|
|
|
Can you please explain a little more? I got to know after doing some R&D that one way to do is through Office Automation, and this way the presentation would be generated on the server side. How to post it at client.Another point I am doubtful about its behavior in multiuser application. Can you please explain you point little more?
Thanks,
Avanika
|
|
|
|
|
you can use following code to push ppt file to client.
try
{
Byte [] bytes = GetFileContents(filePath);//Get file contents as array of bytes
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment; filename=File" + _fileExtension); //File extension is ppt in your case
Response.AddHeader("Content-Length", bytes.Length.ToString());
Response.ContentType = "application/octet-stream";
Response.Buffer = true;
Response.BinaryWrite(bytes);
Response.Flush();
}
catch(FileNotFoundException fnfe)
{
//File not found
}
catch(Exception ex)
{
//Some exception
}
- ashish
|
|
|
|
|
|
hello sir
I am using C# and asp.net i have problem with frames, i am using Response.redirect() method with frames,how can i call another frame with response.redirect method(),
suppose i have two frames first A and B, search textbox is in frame a when i click on search button i want the result on frame b,.
i am using response.redirect(".aspx?frame=b"),
but this will open the page on frame A. please help me
thanks
prabhakar dwivedi
|
|
|
|
|
Hi,
You have to set the target frame so that the output is displayed in the rigth frame. If you have added the frame set from within the VS .NET then please check the HTML view of the page to find some instructions and also find the target frame property.
You have to specify target frame name in the target frame property.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
Can anybody help in extracting text from a pdf file.
Sathiyaraj Ganesan
|
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/GridViewEx03.asp[^]
The article link is abit wrong. The link is on GridView Examples for ASP.NET 2.0: Displaying Summary Data in the Footer. I am using .NET 2.0 C# and had learn from that article to display summary data in the footer.
protected void GridView4_RowDataBound(object sender, GridViewRowEventArgs e)<br />
{<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
absentTotal += Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "Category"));<br />
}<br />
else if (e.Row.RowType == DataControlRowType.Footer)<br />
{<br />
e.Row.Cells[0].Text = "Total Absent:";<br />
e.Row.Cells[3].Text = absentTotal.ToString("c");<br />
<br />
e.Row.Font.Bold = true;<br />
}<br />
}
I then forgetten that my data values for Category is a string values "A", "P" etc. How can I achieved similar way of calculating the row for Category meaning calculating how many A's and P's. Perhaps the footer of the gridview would show:
Total Absent (A): 5
Total Present (P): 10
thanks in advance. Much appreciated.
|
|
|
|
|
Hello, everyone:
Now i want to export my query result to excel. At first, i have tried to export the results displayed through datagrid directly to excel. However, the amount of query result is quite large, in this case i decide to use page sorting datagrid. but most articles in CP tell us how to export only one page to excel, not all the datatable.
Therefore, is there any better approach to export all the datatable directly to excel? Any idear will be appreciated! Thanks in advance!
|
|
|
|
|
The above link will solve you problem, very nice code and easy to use.
http://www.codeproject.com/csharp/datasettoexcel.asp
Ram
|
|
|
|
|
In a DataList, when the user clicks on the Edit button, a cell (TableCell) and a link are created at runtime. When the user clicks on the link, a calendar pops up. It closes itself when the user clicks on a date. My problem is that I don't know how to populate the cell with the date that the user chooses from the calendar. I can, however, get the date from the calendar to populate the text outside the datalist. I'd be appreciate if you coud show me some samples on how to achieve this. Thanks.
The problem here is i am able to populate the textbox outside the datalist but not inside a datalist.
frossie
|
|
|
|
|
I want to know once we set AuthenticationTicket and encrypt it and place it in the authentication cookie then how asp.net validates the information we just placed in the cookie , how it only accepts an encrypted instance of AuthenticationTicket. Can someone tamper with a cookie on the client side and fool asp.net. How asp.net prevents this kind of attacks ?
My another question is about Context.User . We know HTTP protocol is statless , once we set the authentication cookie and set Context.User in code for some page then in later requests for another pages when we check Context.User we see that its value is maintained. I want to know how this takes place . can someone tell me the full process .Does asp.net do it using the authentication cookie ? is yes Where it takes place ? If someone can show me a flowchart about the actions asp.net does it will be good.
|
|
|
|
|
|
Thanks for your help. I apologize for the bold text.
|
|
|
|
|
Why Application_PostAuthenticateRequest and Application_AuthenticateRequest events happen twice ? When I put a breakpoint in their code I see that when I run the application they are called twice ? Can someone tell me why they have to be called twice ? Illustrating their position in the asp.net's events flowchart will be helpful . Help me please .
|
|
|
|
|
Basically, when a web page is processed, the application will get through a couple of events starting with the BeginRequest, AuthenticateRequest, PostAuthenticateRequest ..... For example when you first access a restricted web page, say Home.aspx, you can see that these two events occur, and because you are not logged on yet you will redirected to the Login page, and as a result of this the two events get fired again. And then if in the Login page there are a couple of links requesting for the resources at the server side and they are handled by the ASP.NET engine like the WebResource.axd, you'll see that these events again occurs. For more information on the events of the Application, you can see the HttpApplication[^]
|
|
|
|
|
i´m trying to programm a simple chat room with asp.net 1.1 and VB (with code behind).
I´ve searched for samples but there was no good one putting in my project, which already exists.
Someone have a sample with instructions to install?
It´s only for private use so i´m searching "freeware".
thangs fpr answering and sorry for bad english
Chrissi
|
|
|
|