Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for capiono

I a method that generates a PDF and the method returns a byte value, but after response.end statement, the shows an error that the "File does not begin with '%PDF-' here is the code: [CODE] private static Byte[] GenerateReports(string templateFilePath, DataTable table, string fileName) { Byte[] Output = null; string …

Member Avatar for Kreadus
0
120
Member Avatar for capiono

I was wondering if it is possible to assign 2 variables to DataView.RowFilter. if it is, how do I code it. I have tried this: [CODE]dataView.RowFilter = FilterExpression + " and " + ARRAFilterExpression; [/CODE] FilterExpression and ARRAFilterExpression are both string variables with string values stored in them. Thanks

0
59
Member Avatar for capiono

Hi, I have a asp.net form that uses form authentication. I want to now implement a role base security buy don't how. Please could someone help me with a sample code on how to do this . Thanks.

Member Avatar for Seoconsultant78
0
54
Member Avatar for capiono

I am trying to switch between to form in different project currently I am going this: [CODE] this.Hide(); form2 f= new form2(); f.Show();[/CODE] the new instance of form2 throws a null exception error. But I think because form2 is not active. How do I work around this or is there …

Member Avatar for kdcorp87
0
90
Member Avatar for capiono

I have a dataset class in my Project, How do I export the tables in the dataset to PDF using ItextSharp Thanks

-1
88
Member Avatar for capiono

I was wondering if it was possible to this: example [CODE] if exists(Select * From table) select item from table set returnValue = 1 Else set returnValue = 0 [/CODE] Or if there any other way of doing this this

Member Avatar for mail2saion
0
187
Member Avatar for capiono

Please does any know how to create a word document or PDF file from the textboxes and datagridview values? Thanks

Member Avatar for capiono
0
80
Member Avatar for capiono

I currently moved my windows form project to a different PC. In the project UI have some text boxes with a default value of "0". Before the move this worked fine. now if I run the code the UI does not show this default values. designer Code: [CODE] namespace PersonalBudget …

Member Avatar for capiono
0
117
Member Avatar for capiono

I want to assign a color to my excel column [CODE] currentRow.Interior.ColorIndex = 17; [/CODE] But I don't want to use one of the colors in the excel palette I do I add my own color. for instances: [CODE] currentRow.Interior.Color = Color.LightBlue; [/CODE] Thanks for the help

0
92
Member Avatar for capiono

Like in asp.net you save items in viewState, is there similar function with windows form?

Member Avatar for capiono
0
65
Member Avatar for capiono

I have property method in my window forms: public int selectMonthIndex { get { return selectMonthIndex = =monthSelection.SelectedIndex; } set { if (monthSelection.SelectedValue.ToString() == "February") { selectMonthIndex = 2; } } } After the selections and the OnSelectedIndexChange was triggered the user enters information and click save. the save function …

Member Avatar for Geekitygeek
0
2K
Member Avatar for capiono

I am trying to return the value of a column if a condition is met: [CODE] cmd.CommandText = "SELECT plan_entity_id FROM PLANNER_INFO Where plan_id = plan_id"; cmd.Parameters.Add("plan_id", SqlDbType.Int, value); con.Open(); returnValue = Convert.ToInt32(cmd.ExecuteScalar()); [/CODE] for instance, if Plan_id is 1 it returns the entity ID which is equals to 1. …

Member Avatar for sknake
1
89
Member Avatar for capiono

I have a link on page 1 if clicked take u to page 2 and page 2 if u click okay it should take u back to page but when I use this on page 2 to: [code] ViewState["back"] = Request.UrlReferrer;[/code] it returns null, how do I fix this on …

Member Avatar for Ramesh S
0
122