i am newer to the developement industry..i created one html page for entering purchase details. i am using MS access as
database. but i don't know how to connect html page with access data base and how to insert data from html page..so i am asking all of your support in this problem.
I am trying to display a PDF file in my ASP.net page based on the binary data received from the ASP.net Web service. Below is the code. though I am getting the data from the Web Service for some reason, if I run the below mentioned code on page load I am getting the above mentioned error.
I am new in Asp.net & C#. I am working in a project in which I have to give a textarea (like WYSIWYG editor), where user can put text, images anything, same as we get in blogs. How I can create that textarea in asp & if I am able to create that type of textarea, then how the content (includes text, images etc) will be inserted in the DB & how it can be retrieve ?
Private Function GetRequestContent() As [String] Dim sw As New StringWriter() Dim hw As New HtmlTextWriter(sw) Me.grdCart.RenderControl(hw) Return sw.ToString()
I copy in a DataTable a GridView to display this GridView in a another page. It works but the gridview's content is not encoded in UTF-8.
This is the code which copy the gridview in a DataTable :
protected void ButtonDisplay_Click(object sender, EventArgs e) { // On copie dans un DataTable toute GridView filtré DataTable dt = new DataTable(); for (int i = 0; i < GridView1.Columns.Count; i++)
In my asp.net application. I am making one pdf template then bind the data with that template then save it on one folder. then pop the pdf file from that saved directory. Now all are fine. The problem is when i host the application sometimes i am getting message as the file is damaged or corrupted with message box. But when i get this error the i am going to refresh the page i will get the pdf file with data. Why It is not coming very first time. Why it is getting when we click on the refresh of browser.
i have contact-us HTML form in server1..contact.html i want to pass the value on submit [contact.html] to contact.aspx on server2 and retrieve value to contact.html in server 1. how to achieve this.
A user sees a page with a button. When he clicks the button a paragraph of text shows up above the button. With each click, another paragraph of the same text shows up.
Can this be accomplished with a view, partial view, standard button, and without JavaScript?
I have a problem with DetailsView linked with Database, DetailsView is Insert/Edit enabled, and adding/ediditng data works, however........ when I add a new record (DetailsView in Insert mode) and press INSET instead going to record I have just created in Read-Only Mode it shows me blank form, it looks that the "linking" field is null.
insert data to database from a content page of a master page. My code is working fine when i use my code without master page but with content page of master page i dnt knw what goes wrong.
I have navigation and many link on my webproject from html action links. They are ugly with underline. I would like to insert some image with name or play with styles of action link.Is it possible? How to do that?
I am new to .NET and MVC, so this is most likely a simple question: How can I have a default value appear for an Html.TextBox or TextArea field, for example if the code is currently - <%=Html.TextBox("ApplyToFax", Model.Competition.ApplyToFax, New With {.class = "regular", .maxlength = "50"})%>. I am looking to have a default fax number appear in the box when the page loads, for example (999) 999-9999.
I've installed a Free TextBox editor to allow clients to do a write up about themselves and style it with HTML. Been reading about cross site script attacks (XSS) and want to make sure I'm correctly uploading the data collected with the Server.encode method.
Using the ASP.NET grid view. It displays 3 columns with 1 row for each, displaying an integer saved in the database. I would like to have a text input one for each column, so the user can add a new row of integers to the database. (The table only displays the last row updated, that part seems to be working OK)
Here is the code I have that displays data but without the input option I would like.
What is the way this is done in ASP.NET (3.5)? Are there more options in the control or do I need to manually bring in text input controls and give each one manual code to update the database?
This is what I have come up with, but when I run it I get the following error (I decided to just try to use a simplified table just to get an understanding of the basic concepts):
Partial Class label_form Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ' Declaring variables
a. how can i customize the image buttons in the HTML Editor like adding a flash button, windows media player button, image button and silverlight button and when i click on it shows me the wizard to add the embeds.
b. how to make the HTML Editor contents saved directly to the datbase, and do i have to change field type from the ntext type?
c. i am using asyncupload for uploading images how can i make it saved to database too and which datatype i need to make it? or can i save the physical address for this image?