User Profile
Collapse
-
create only one hidden field . if u know XML then it is very easy. just write XML tags to hidden field and you can access every value or attribute of the tag you have written to hidden field. -
i think you have two tables one for questions and other for answers .
if this is the case use inner join and then convert it to pivot table. you will get the desired result for formatting.
and for the radio button. u can do it with javascript . implement onclick event on radio button. and store the clicked radio buttons value in hidden field and get the value from hidden field in code behind. and store it to database.Leave a comment:
-
use "iTextSharp " and use the following code to read contents of pdf in your code
...Code:using iTextSharp.text.pdf; using iTextSharp.text; private void openPDF() { string str = ""; string newFile = "c:\\New Document.pdf"; Document doc = new Document(); PdfReader reader = newLeave a comment:
-
i can help you and can post sample code, when you post your Question.Leave a comment:
-
Check Your connection string ..
ConnectionStrin g="data source=(local); initial catalog=dbName; integrated security=SSPI;p ersist security info=False"
if SqlServer have windows authentication
other wise have to provide uid=sa;pwd=pwdLeave a comment:
-
Reading Contents of File
i have tested a small application in which i have read a txt file and dislplayed the text on label control without saving it on server. You can read file in bytes array.
...Code:using System.IO; public partial class _Default : System.Web.UI.Page { byte[] byt; protected void Page_Load(object sender, EventArgs e) {Last edited by Frinavale; Jul 9 '09, 01:15 PM. Reason: Added code tags. Please post code in [code] [/code] tags.Leave a comment:
-
You can do this for only reading the contents of the file updloaded by user but you have to provide Asynchronous call back.
FileUpload1.Fil eContent.BeginR ead( ............... .....);Leave a comment:
-
Getting the value of Dynamic Generated RB in a GridView
In the GridView create the the template like this
<asp:TemplateFi eld HeaderText="Ass ign">
<ItemTemplate >
<input ID="Radio1" type="radio" name="RdBtn" value='<%# Eval("ID") %>' />
</ItemTemplate>
</asp:TemplateFie ld>
...Leave a comment:
-
Do it Like this.
DataAccess da = new DataAccess();
DataTable dt = da.SelectRecord ("SELECT Day.* FROM [Day];");
comboBox1.DataS ource = dt;
comboBox1.Displ ayMember = "Day_ID";
comboBox1.Value Member = "Day_Name";Leave a comment:
No activity results to display
Show More
Leave a comment: