Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~7K People Reached
Favorite Tags
Member Avatar for Nfurman

Hello guys, There's some issue with my UIPickerView controller. The data won't pop up in it. The 'Drum' by itself is visible but empty. My code is: - (void)viewDidLoad { [[self navigationController]setToolbarHidden:YES animated:YES]; [self setItemShow:theItem]; self.uiPickerViewData=[[[NSMutableArray alloc]initWithObjects:@"One",@"Two", nil]autorelease]; [super viewDidLoad]; } And method which will work when button is getting …

Member Avatar for scottdurica
0
1K
Member Avatar for Nfurman

Hello! I've got trivial problem and have no time to re-read manuals. I need to construct a function in SQL2005 which selects from DB and returns datatable. Something like this: [CODE] create function GetAllStudents() returns Table as begin ( select StudentID,StudentName,StudentFamilyName,Birthday,HisClass from Students ) return DataTable [/CODE] I need it …

Member Avatar for noamwegner
0
108
Member Avatar for Nfurman

Hi guys, I am learning Objective-C and today at night I managed a simple program, an usual one from ordinary exercise. Code: [CODE] #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Welcome to multiplication table test"); int rightAnswers; //the sum …

Member Avatar for gusano79
0
156
Member Avatar for br_astronut

HELP! I am a medium duty VB.Net developer and want to start developing web applications and converting some of my VB apps to web apps. I know the basics and have put together a working ASP.Net application with no problem. I have the mechanics working fine. I just can't seem …

Member Avatar for matthewskyle
0
261
Member Avatar for manraj82

Hi guys, I am in the process of creating a login form in ASP.Net and I have not written any code for it yet bcos I dont know how to go about doing it.In the past I have created basic login forms in ASP.net by redirecting them to a page …

Member Avatar for crishlay
0
1,000
Member Avatar for Nfurman

Hello again, I have a method: [CODE] public static void GetStudents(DropDownList list, Label lbl) { SqlConnection conn = new SqlConnection(Config.DbConnectionString); SqlCommand cmd = new SqlCommand("GetStudentsToDDL", conn); cmd.CommandType = CommandType.StoredProcedure; SqlDataReader reader; try { conn.Open(); reader = cmd.ExecuteReader(); while (reader.Read()) { ListItem item = new ListItem(); item.Text = reader["StudentName"].ToString() + " …

Member Avatar for Nfurman
0
96
Member Avatar for Nfurman

Hi again, I need an professional advise how to implement dropdownlist in very professional way. So, my code is: [CODE] <asp:DropDownList id="ddlStudents" runat="server" CssClass="textbox" OnSelectedIndexChanged="ddlStudents_SelectedIndexChanged" AutoPostBack="true" EnableViewState="true"> <asp:ListItem Value="0">Choose</asp:ListItem> </asp:DropDownList> [/CODE] The rest of data I get from SQL DB. Is it the right way to populate the default value …

Member Avatar for Nfurman
0
99
Member Avatar for Nfurman

Hello again, I have a problem with dropdownlist. DropDownList: [CODE] <asp:DropDownList id="ddlStudents" runat="server" CssClass="textbox" OnSelectedIndexChanged="ddlStudents_SelectedIndexChanged" AutoPostBack="True" EnableViewState="False"> <asp:ListItem Value="0">Choose</asp:ListItem> </asp:DropDownList> [/CODE] Method which fills the ddl with data from DB [CODE] protected void GetStudents() { SqlConnection conn = new SqlConnection(connection); SqlCommand cmd = new SqlCommand("GetFullStudentProfile", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText …

Member Avatar for Nfurman
0
182
Member Avatar for Nfurman

Hello. I am doing an exercise and faced an problem my code is: [CODE] protected void ddlStudents_SelectedIndexChanged(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(connection); SqlCommand comm = new SqlCommand("GetFullStudentProfile",conn); comm.CommandType = CommandType.StoredProcedure; comm.CommandText = "GetFullStudentProfile"; SqlDataReader reader; try { conn.Open(); reader = comm.ExecuteReader(); reader.Read(); StringBuilder sb = new …

Member Avatar for Nfurman
0
111
Member Avatar for Nfurman

Hello, My code is: [CODE] protected void Button1_Click(object sender, EventArgs e) { string EducatorName = tbEducatorName.ToString(); string Educatorfamilyname = tbEducatorFamilyname.ToString(); int Hisclass =Int32.Parse(ddlClasses.DataValueField.ToString()); SqlConnection conn = new SqlConnection(DBconn); SqlCommand cmd = new SqlCommand("AddNewEducator", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "AddNewEducator"; cmd.Parameters.Add("@EducatorName", SqlDbType.VarChar).Value = EducatorName; cmd.Parameters.Add("@Educatorfamilyname", SqlDbType.VarChar).Value = Educatorfamilyname; cmd.Parameters.Add("@EducatorClass", SqlDbType.Int).Value …

Member Avatar for Nfurman
0
101
Member Avatar for Nfurman

Hello this is my CSS: [CODE] div#menu { width:680px; height:30px; position:absolute; top: 300px; left:300px; } #linkbar { list-style:none; margin:0; padding:0; } #linkbar a:hover { background-color:#CCCC00; color:Black; } #linkbar a:visited { background-color:#CC6600; color:White; } #linkbar a:visited:hover { background-color:#CCCC00; color:Black; } #linkbar a { behavior: url(/css/border-radius.htc); border-radius: 10px; display:block; float:right; margin:3px; background-color:#006600; …

Member Avatar for Nfurman
0
144
Member Avatar for Nfurman

hello, iam very new in jQuery. Need help asap please. on my asp.net page I want to use two jQuery functions. 1. Clears textBox when user clicks on it. 2. Clears all inputs when user clicks on btnCancel button. I made two functions [CODE] //clears value from onclicked input $(document).ready(function …

Member Avatar for pritaeas
0
126
Member Avatar for Nfurman

Hello! [CODE] private void btnRecord_Click(object sender, EventArgs e) { //try //{ Random num = new Random(2); XmlDocument xmlDoc = new XmlDocument(); XmlElement contact = xmlDoc.CreateElement("contact"); XmlElement name = xmlDoc.CreateElement("name"); XmlElement familyname = xmlDoc.CreateElement("familyname"); XmlElement momos = xmlDoc.CreateElement("momos"); XmlAttribute contactid = xmlDoc.CreateAttribute("id"); contactid.Value = num.ToString(); XmlText firtnametext = xmlDoc.CreateTextNode(tbName.Text); XmlText lastname …

Member Avatar for hielo
0
105
Member Avatar for Nfurman

Hello again, How can I count the message size from: [CODE] msg.Body = tbText.Text; [/CODE] ? I need to get KBs.

Member Avatar for Lusiphur
0
90
Member Avatar for Nfurman

Hello. I am developing simple exercise formapp and I need to detect internet connection every 2 seconds. #1. I do check internet connection like this [CODE] public static bool Connection() { bool connection; try { System.Net.IPHostEntry objIPHE = System.Net.Dns.GetHostEntry("www.google.com"); connection = true; } catch { connection = false; } return …

Member Avatar for Nfurman
0
938
Member Avatar for Nfurman

Hello again I have 1 well working function and one working stored procedure which counts the quantity of rows in table. Now I've created special table which has only two rows 1. Id (int null)(!++) 2. Rows(int not null) In Rows I want to store the quantity of rows from …

Member Avatar for jaikanth123
0
157
Member Avatar for Nfurman

Hi, I try to develop Forms App which will count my working hours, taxes, expenses etc... At moment Iam working on calendar. On the first form I have combobox which sends the name of month into the ReturnNumberOfDaysInCurrentMonth(). The Class returns the number of month for DateTime.DaysInMonth(int,int), which returns the …

Member Avatar for jbisono
0
69
Member Avatar for Nfurman

Please someone can help me. I need a function which just returns the number of rows from known table. I tried it like: [CODE] CREATE FUNCTION getRows ( @id int ) RETURNS int AS BEGIN DECLARE @rownums int SELECT Count(*) FROM dbo.MainData where id=@id RETURN @rownums END [/CODE] But it …

Member Avatar for skgopy
0
236
Member Avatar for Nfurman

Hello. Because my client's table has two rows getting int values as ids from other table to display the string values. Table 1 Table 2 Item: 12 12 = 'Cat' For displaying the values I have created view in DB [CODE] create view ClientsView as select cl.id,cl.Name,cl.Familyname,cl.Position,cl.Email,cl.OfficePhone,cl.Mobile,cl.Website,cl.Comment,cl.[Date],cont.country,cl.Street,cl.City,clgr.[Group] from Clients as …

0
74
Member Avatar for Nfurman

Hello! How can I insert into DB date using DetailsView. I have variable: [CODE] DateTime now=DateTime.UtcNow; [/CODE] I need to send it's value into the database automatically when an user inserts new record in my DetailsView. The code: [CODE] <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False" CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None" Height="50px" …

Member Avatar for kvprajapati
0
193
Member Avatar for Nfurman

Hi, I need some free picture viewer to plug him into my aspx page. It should have to navigation buttons << | >>. Can somebody advice me some?

Member Avatar for Nfurman
0
82
Member Avatar for Nfurman

Hello guys. My future site physically locating in: C:\inetpub\wwwroot directory, which is accessible as [url]http://localhost[/url]. IIS 7.0 knows this site as 127.0.0.2. This means, that I created new site in IIS and assigned physical location even the directory of my over-mentioned site. Looks like everything works fine. In SQL Server …

0
76
Member Avatar for Nfurman

Hello. I am constructing feedback form - SMTP - ADO - Captcha OK. Everything works fine to me. Except one important thing. After smtp and sql injection and Reset(), user can hit back in browser and after that resend message. that's not good. How to make the data in form …

Member Avatar for Nfurman
0
95
Member Avatar for Nfurman

Hello guys! Well, my question must be simple and someone will fall in laugh while thinking what kind of morons are exist in the world. :-) Question #1: Ok, I have a HTML table stored in one of the columns in SQL-table (is this approach right, or should I store …

Member Avatar for kvprajapati
0
75
Member Avatar for sangeeta_ratha

hi, Im using a repeater control bound to a database table. everything works fine. i need to display the total of a column from that database table in the footer template of my repeater control. but im clueless as to how it can b done. Any help would be appreciated. …

Member Avatar for apegram
0
719
Member Avatar for Nfurman

Hi, I am trying to make some "a la captcha" it must be simple, but not for me. my code is: [CODE] using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page …

Member Avatar for Nfurman
0
161
Member Avatar for Nfurman

Hello again. Default.aspx [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class contact : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; ShowCaptchaNums(); } protected void Country_SelectedIndexChanged(object sender, EventArgs e) { if (Country.Text == "United States") { State.Enabled = …

0
113
Member Avatar for Nfurman

Hello again I have two drop-down lists on my web application. #1. Country list #2. US states list By default #2 is disabled [CODE] protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; } [/CODE] I need to enable it only if user will choose "United States". My trial …

Member Avatar for Nfurman
0
98
Member Avatar for Nfurman

Hello guys! I am developing simple desktop application that suppose to connect to SQL DB launched on remote server. Everything going fine, exept that when connecting to DB I get exeption "Login failed for user 'guest'." So, looks like i need to create some user with password and give him …

Member Avatar for Nfurman
0
194