|
Hi,
I have an ASP.NET application which currently generates a price list as a web page, complete with header and footer. I now need to offer the option of generating the same report as a Microsoft Word document. Ideally, the document would contain the header and footer just as the web page did but if necessary, the report would expand to two or more pages.
Can someone suggest the best way of doing this?
Is there a way to export a web page directly to Microsoft Word?
Thanks for any help suggested
|
|
|
|
|
I am doing a .NET web application in which i am using data from XML file to bind to grid.
I have an Add and Delete button also near the GridView. Each row in grid has a check box also. On Checking and Click Delete button, it has to delete the record from XML file.
I am new to XML so, any help will be appreciated..
The piece of code i used was as follows
On click on Delete Button
try
{
string strFileName = HttpContext.Current.Request.PhysicalApplicationPath + "XMLFiles\\UserList.xml";
XmlDocument doc = new XmlDocument();
doc.Load(strFileName);
doc.Save(strFileName);
string strScript = "<script language=\"JavaScript\"> window.dialogArguments.window.location=window.dialogArguments.window.location; window.close();</script>";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "Close", strScript);
}
catch (Exception ex)
{
string strException = ex.Message.ToString();
string strError = "User.aspx" + "~" + "btnDelete_Click" + "~" + strException;
Session.Add("ExceptionError", strError);
Response.Redirect("Errorpage.aspx", false);
}
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Hi guys i have 5 grids in different user controls,
those user controls i called in one aspx page..,
this one will make performance good,
or i am just mentioned all the 5 grids in same page ..,
this one will make my performance good,
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
There won't be any differences.
|
|
|
|
|
I think option 2 will be better, becuase if you use usercontrol, they also take time to load , along with Grid.
please read page and user control life cycle.
cheers,
Abhijit
|
|
|
|
|
hi,
please tell me the validationexpression for validating the date (dd-mm-yyyy format )
Thank you.
|
|
|
|
|
you can go for custom validator for it
Cheers!!
Brij
|
|
|
|
|
hi,
i want to know viewsrs count at a particular time who r viewing my site
thanks in adv
|
|
|
|
|
Yes. You can.
use Global.asax file, There is a function Session_Start() use some counter to count to number of variable, that is the number of user currently viewing your side.
becuase, whenever a user hit the url, from Session_Start() a session will be created.
cheers,
Abhijit
|
|
|
|
|
you can use application variable for this purpose and
increase in appliation variable on session_onstart()
and decreament on session_onend() and your session mode in web.config file must be set to inproc otherwise session_onend() wont call...
umerumerumer
|
|
|
|
|
where use of incapsulation for prepare the programe
|
|
|
|
|
This is asp.net Forum.
harsh thaker wrote: where use of incapsulation for prepare the programe
try to search google.
encapsulation is used to bundle up of a class data and function in a single unit.
cheers,
Abhijit
|
|
|
|
|
Hello dear,
I am getting some problem in uploading mp3, video or large file through file server control in asp.net. I get Page cannot be displayed error. Although i changed web.conig file <httpruntime> configuration. I have extended the execution time and max requestlength but nothing reflected.
Can any body suggest me what's wrong I am doing ?
Any help would be highly appreciated.
Thanks
Rohit
|
|
|
|
|
Is it working fine for small file ?
For which size of file you are getting error ?
how much value did you set in web.config ?
cheers,
Abhijit
|
|
|
|
|
yes dear this is workig fine for small images but specially in mp3 file i am getting page cannot be displayed . I set the maxlength to 100000
|
|
|
|
|
I am using Update Panel in Gridrow and i have set some required field validator control on a textbox..but its not working in updatepanel (Its working and showing "*" but not showing alert message and i have also set showmessageBox property true..but still it not working.)..if i use without updatepanel then its work fine.
If Any one faced that problem then please help me.
Thanks
Girish
|
|
|
|
|
|
Thanks for replay
But still Faceing the following problem after update your soluation..
Error: [Exception... "'Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined
Thanks
|
|
|
|
|
can you please put the piece of code ?
cheers,
Abhijit
|
|
|
|
|
when we use adrototer in masterpage at running time the ad changes but the total page refresh ,so to avoid that problem by using the ajax control could u dispatch the relative code for that.
|
|
|
|
|
when we click on the text box, open a new window below the textbox with some data and click some item on window it displays in the textbox.
|
|
|
|
|
when we click on the text box, open a new window below the textbox with some data and click some item on window it displays in the textbox.just like a justdial search engine.
|
|
|
|
|
Open a popup window, It will contain a list box data. When you click on any item on that list box, close the popup window and update the parent filed with that selected value.
You have to Use , Window.Opener.... or window.parent to update the value from child window to parent window.
cheers,
Abhijit
|
|
|
|
|
Please elaborate it little more
Cheers!!
Brij
|
|
|
|
|
when we prepare search engine,in that we have a text box to click the text box,immediately open a new window at below of the text box with some data if we click on data then that data will display in the text box.just like a justdial wedsite.
plz send the proper guidlines.
|
|
|
|