|
hi all,
how to display request form details in the notepad filled by the user(like name,addrss,emial, phone number etc).
|
|
|
|
|
can u be more specific?
Best Regards
3ala2
|
|
|
|
|
Hi,
i want to display in notepad which details are entered in the requestform fields.
ex: username :xxx
age:YY
phone no:zzz
these above details are given by user while filling the form. after submiting the details the i want to display those details in notepade as a text file.
thanks
|
|
|
|
|
On the code behind you can create a text file in memory and then in another page stream it to the client as a txt file...
Why do you want to do this?
|
|
|
|
|
Same as previous answer
And give a write permission for ASPNET user on the folder that u want to add the file on
Best Regards
3ala2
|
|
|
|
|
Hello,
I am investigating how to port my C++ MFC application with OpenGL to a web-application.
Searching the internet leads to many keywords, like plugins/ActiveX, X3D, OpenGL ch, Ajax3D and more.
I am completely unexperienced to web-programming, but I am willing to learn and apply this.
Can anybody advise me what could be a good direction?
Best regards,
Peter
|
|
|
|
|
Hi to all,
I have a web application for LAN. Every client (Node) have a File on spacifice location path(like "C:\Image001.jpg"). When every user Access this web Application as soon as his Local file (like "C:\Image001.jpg" Client File) will be automatically upload on the LAN Server without client Browser DialogBox Open.
I have try number of time but i have not got any thing.
Please help me..
Pavan Pareta
|
|
|
|
|
What you tried?
what error you got let all of us know ?
so that only we can help you.
Regards,
Satips.
|
|
|
|
|
My Problem is that i whant to upload File with out client Browser DialogBox Open.
but
<input id="MyFile" type="file" size="23" name="MyFile" runat="server"> Not support for internal upload files.
Pavan Pareta
|
|
|
|
|
I think you'll have problems doing this, as it circumvents the security on any browser to permit this kind of behaviour...
|
|
|
|
|
hi,
have you any idea that how can bind enum type to dropdown.?
i am usinf asp.net 2.0 with vb.net.
Thanks,
Sun Rays
|
|
|
|
|
Try it like this.
public enum Color
{
RED,
GREEN,
BLUE
}
Every Enum type derives from System.Enum. There are two static methods that help bind data to a drop-down list control (and retrieve the value). These are Enum.GetNames and Enum.Parse. Using GetNames, you are able to bind to your drop-down list control as follows:
protected System.Web.UI.WebControls.DropDownList ddColor;
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
ddColor.DataSource = Enum.GetNames(typeof(Color));
ddColor.DataBind();
}
}
Hope this will Solve your problem.
Regards,
Satips.
|
|
|
|
|
How to add and configure TextBox in Item template datalist controls for update the rows....Please send a HTML Coding
With Regards,
Samson
|
|
|
|
|
hi see this code template
<itemtemplate>
<asp:textbox>
Protected Sub DataList1_UpdateCommand(ByVal source As Object, _
ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs)
Dim categoryID As String = _
DataList1.DataKeys(e.Item.ItemIndex).ToString()
Dim categoryName As TextBox = _
CType(e.Item.FindControl("textCategoryName"), TextBox)
Dim description As TextBox = _
CType(e.Item.FindControl("textDescription"), TextBox)
SqlDataSource1.UpdateParameters("original_CategoryID"). _
DefaultValue = categoryID
SqlDataSource1.UpdateParameters("categoryName"). _
DefaultValue = categoryName.Text
SqlDataSource1.UpdateParameters("Description"). _
DefaultValue = description.Text
SqlDataSource1.Update()
DataList1.EditItemIndex = -1
DataList1.DataBind()
End Sub
|
|
|
|
|
how to write a event for a dynamically created controll in C#,
For Example i have created a combo box, Check Box dynamically in C#,
when a User Select a item from combo box, it will will show which item he has selected using a message Box.
Please help me out.
burhan
|
|
|
|
|
Suppose myCombo is the name of your dynamically created control....then add a Event handler like this....
myCombo .SelectedIndexChanged += new System.EventHandler(this.cmbDynamicNameCombo_SelectedIndexChanged);
Now put your code in cmbDynamicNameCombo_SelectedIndexChanged
Tirtha
Miles to go before I sleep
|
|
|
|
|
Hi All,
I work on Crystal Report for .Net. with Asp.net 2005.
How can I Open Crystal Report in PDF format in Browser Window.
in Other word m when I click print button automaticaly Open the Report in pdf format in the browser.
Ala Qunaibi
Ala Qunaibi
|
|
|
|
|
Its something like export crystal report to pdf.Try this:
On Export Button Click:
private void Button1_Click(object sender, System.EventArgs e)
{
MemoryStream oStream; // using System.IO
oStream = (MemoryStream)
report.ExportToStream(
CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
Response.Clear();
Response.Buffer= true;
Response.ContentType = "application/pdf";
Response.BinaryWrite(oStream.ToArray());
Response.End();
}
|
|
|
|
|
Thanks , it is work in successfully,
But , There are problem in arabic character, how can I determine unicode for arabic charater and hindi numbers
Ala Qunaibi
Ala Qunaibi
|
|
|
|
|
Well even I dont know how to do this u can search on net.But it might be something Culture Information.Not sure...
|
|
|
|
|
Thanks .
Ala Qunaibi
|
|
|
|
|
Hi All,
I need Export the gridview to excel.When I click the Export button it should open the save dailog and user should give file name and path or it should take the filename with path. Anyway will do and it is save there.
Thanks in advance...
|
|
|
|
|
GridView does not have direct functionality to export data into Excel, so you would need to add extra efforts on your side to do this job.
There are several ways to export data into Excel and preserve format
1. Use Jet OLEDB Provider. You need to create INSERT SQL statements and loop through the rows of the grid to insert records one by one. But in this case you need to convert your column from numeric data type to string one.
2. Use Microsoft Office Tools for .NET. This way is slower, but gives you more functionality and allows formatting of the data. It allows you to control your output, but could be very slow and you need to pay attention to releasing all the resources associated with it, because it is COM-based.
3. Write code that stores data into CSV or HTML. Those formats recognized by Excel and should preserve formatting
4. Use third party components like Ajax, that could provide desired functionality
Regards,
Satips.
|
|
|
|
|
Hi Satips,
Thanks for the reply.
I got some code from Google.Its working fine.The only thing is that I need to save it on the server and filename should be given by me not by user.Following is the code:
On Export Button Click:
Dim attachment As String = "attachment; filename=Contacts.xls"
Response.ClearContent()
Response.AddHeader("content-disposition", attachment)
Response.ContentType = "application/ms-excel"
Dim sw As StringWriter = New StringWriter()
Dim htw As HtmlTextWriter = New HtmlTextWriter(sw)
gvExport.RenderControl(htw)
Response.Write(sw.ToString())
Response.End()
This throws HttpException so I need to add this:
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
End Sub
Now I just need to save it on server.
Can u please tell how do I do??
Thanks in advance...
|
|
|
|
|
hi,
just gothrough this link for popluating data from dataset to Excel sheet
|
|
|
|