Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

Imran Adam

@Imran Adam
About
Posts
43
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to save and display a sorted ListBox Control??
    I Imran Adam

    Sorry for cross posting. Does this mean i get no help ?? :(

    ------------------- Redcastle CRM

    ASP.NET database question help tutorial

  • Save sorted ListBox Items??
    I Imran Adam

    Sorry forgot to mention, I need to have these 2 pages. Everything one 1 page is not suitable in my case. Many Thanks

    ------------------- Redcastle CRM

    C# database question help

  • Save sorted ListBox Items??
    I Imran Adam

    Hi I have a query with the ListBox control. I have two pages on my web app, a main page and a sort page. The main page contains a table populated with names from a SQL database. The sort page contains a ListBox with all the names from the main page and 2 buttons, Up and Down. The user can move the names Up and Down by clicking the name and pressing Up or Down. Now i would like to know, How can i save the 'sorted' listBox and display that order on the Main Page?? I would greatly appreciate some help. Many Thanks PS this is what i have for moving the items UP/Down protected void Button1_Click(object sender, EventArgs e) { int i = lstBox1.SelectedIndex; string str = lstBox1.SelectedItem.ToString(); if (i > 0) { lstBox1.Items.RemoveAt(i); lstBox1.Items.Insert(i - 1, str); lstBox1.SelectedIndex = i - 1; } } ------------------- Redcastle CRM

    C# database question help

  • How to save and display a sorted ListBox Control??
    I Imran Adam

    Hi I have a query with the ListBox control. I have two pages on my web app, a main page and a sort page. The main page contains a table populated with names from an SQL database. The sort page contains a ListBox with all the names from the main page and 2 buttons, Up and Down. The user can move the names Up and Down by clicking the name and pressing Up or Down. Now i would like to know, How can i save the 'sorted' listBox and display that order on the Main Page?? I would greatly appreciate some help. Many Thanks PS this is what i have for moving the items UP/Down protected void Button1_Click(object sender, EventArgs e) { int i = lstAssoc.SelectedIndex; string str = lstAssoc.SelectedItem.ToString(); if (i > 0) { lstAssoc.Items.RemoveAt(i); lstAssoc.Items.Insert(i - 1, str); lstAssoc.SelectedIndex = i - 1; } } ------------------- Redcastle CRM

    ASP.NET database question help tutorial

  • Help with WebConfigurationManager ??
    I Imran Adam

    Aah sorted.... :) Just for the record I added this to my web.config: <connectionStrings> <add name="ScrabbleConnectionString" ; connectionString="Data Source=JETTA\SQLEXPRESS;Initial Catalog=Scrabble;Integrated Security=True" providerName="System.Data.SqlClient " /> </connectionStrings> I also added the name of the "connectionString" to the line in my code that was causing the problem, I.E: string connect = WebConfigurationManager.ConnectionString s["ScrabbleConnectionString&# 034;].Co nectionString; Thanks Cheers :)

    ASP.NET help question workspace

  • Help with WebConfigurationManager ??
    I Imran Adam

    Hi I have this line of code in my Web Application; string connect = WebConfigurationManager.ConnectionString s["Scrabble"].Connection String; It will not compile as i am getting the following error: "The name 'WebConfigurationManager' does not exist in the current context" If i add Using System.Web.Configuration to the top of the page, it will compile. However it falls over again on the same line with the message: "Object reference not set to an instance of an object" What am i doing wrong here??? Thanks again

    Cheers :)

    ASP.NET help question workspace

  • JavaScript Help??
    I Imran Adam

    Hi Yes i did think of that. However, Marquee is only compatible with IE. Other browsers like FireFox cannot interpret the tag. Thanks

    Cheers :)

    ASP.NET question javascript tools performance help

  • JavaScript Help??
    I Imran Adam

    Hi I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box. How can i acheive this effect?? This is the javascript i have; <script language="JavaScript"> function getObject( obj ) { var strObj if ( document.all ) { strObj = document.all.item( obj ); } else if ( document.getElementById ) { strObj = document.getElementById( obj ); } return strObj; } var theTop = 200; var theHeight = 100; var theWidth = 150; var theLeft = 350; var toClip = 200; function scrollNews( newsDiv, toMove ) { theDiv = getObject( newsDiv.toString() ); if ( theDiv == null ) { return; } if ( document.layers ) { theDiv.clip.top = toMove; theDiv.clip.bottom = toMove + toClip; theDiv.top = theTop - toMove; } else { theDiv = theDiv.style; theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop - toMove + 'px'; } if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) ) { toMove = 0; if ( document.layers ) { theDiv.clip.top = theTop; theDiv.clip.bottom = toClip; theDiv.top = theTop } else { theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop + 'px'; } } toMove = (toMove + 2); //speed of scroll setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100); } </script> Any help is much appreciated

    Cheers :)

    ASP.NET question javascript tools performance help

  • Javascript Help??
    I Imran Adam

    Hi I would like to know "how to stop vertical scrolling text in javascript after one iteration". What i have is the text that scrolls continuously, and i want it to make it stop at the top of the box. How can i acheive this effect?? This is the javascript i have; <script language="JavaScript"> function getObject( obj ) { var strObj if ( document.all ) { strObj = document.all.item( obj ); } else if ( document.getElementById ) { strObj = document.getElementById( obj ); } return strObj; } var theTop = 200; var theHeight = 100; var theWidth = 150; var theLeft = 350; var toClip = 200; function scrollNews( newsDiv, toMove ) { theDiv = getObject( newsDiv.toString() ); if ( theDiv == null ) { return; } if ( document.layers ) { theDiv.clip.top = toMove; theDiv.clip.bottom = toMove + toClip; theDiv.top = theTop - toMove; } else { theDiv = theDiv.style; theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop - toMove + 'px'; } if ( ( theTop + theHeight - toMove ) < ( theTop - theHeight - 20 ) ) { toMove = 0; if ( document.layers ) { theDiv.clip.top = theTop; theDiv.clip.bottom = toClip; theDiv.top = theTop } else { theDiv.clip = "rect(" + toMove + "px " + (theWidth + theLeft) + "px " + (toMove + toClip) + "px 0px)"; theDiv.top = theTop + 'px'; } } toMove = (toMove + 2); //speed of scroll setTimeout("scrollNews('" + newsDiv + "'," + toMove + ")", 100); } </script> Any help is much appreciated :)

    Web Development question javascript tools performance help

  • JavaScript Help?
    I Imran Adam

    Where can i post a thread for help with javascript? There is no "JS" forum? Thanks

    C# javascript help question

  • How to delete a row in a ASP.NET dataGrid
    I Imran Adam

    Hello experts i would like to know how to delete a row from a dataGrid (which is in edit mode), i am using paging and the built in edit, update, cancel methods. I have been looking all over the posts most seem to be using databases and since i am using a XML file as my surce of data i am abit lost. heres what i have in my delete event Handler.. private void dgStudents_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int rowToDelete = e.Item.ItemIndex; dsStudents.student.Rows[rowToDelete].Delete(); //refresh datagrid control to show changes BindData(); } the rowToDelete int will get the row to delete, but when i run this and click on delete, i get a runtime error of "There is no Row at position 0" Help please?? Cheers

    Cheers :)

    ASP.NET help csharp asp-net design xml

  • How to delete a row from a dataGrid
    I Imran Adam

    Hello experts i would like to know how to delete a row from a dataGrid (which is in edit mode), i am using paging and the built in edit, update, cancel methods. I have been looking all over the posts most seem to be using databases and since i am using a XML file as my surce of data i am abit lost. heres what i have in my delete event Handler.. private void dgStudents_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { int rowToDelete = e.Item.ItemIndex; dsStudents.student.Rows[rowToDelete].Delete(); //refresh datagrid control to show changes BindData(); } the rowToDelete int will get the row to delete, but when i run this and click on delete, i get a runtime error of "There is no Row at position 0" Help please?? Cheers :)

    C# help design xml tutorial question

  • MessageBox in Web Forms
    I Imran Adam

    Thanks for that:) now i'd just like to know, if i had a hyperlink on my page and when the user clicked on that link a messageBox should appear. How could i acheive this?? similar procedure using client side scripts??

    Cheers :)

    C# asp-net winforms question

  • MessageBox in Web Forms
    I Imran Adam

    Hi I would like to know how would i display a messageBox in a web form. I know in Windows forms you would use something like MessageBox.Show("Hello"); How could i show this kind of dialog box (or equivalent)on a web form, if a user clicks a button??

    Cheers :)

    C# asp-net winforms question

  • custimizing repeater controls
    I Imran Adam

    Hello guys i am trying to customise my repeater control i have placed on my web form. When i try to edit the element i get the following error, hence i cannot see any data on the screen: Per the active schema, the element 'tr' cannot be nested within 'form'?? please could you offer some help?? P.S this is what i have, there is a problem with the tag but i dont know what it is :( . . . Cheers :)

    C# help database xml question

  • Web Application <th> elements?</th>
    I Imran Adam

    I am trying to customize my repeater control for my web application. I am trying to add the column headings for my control using I am getting the following error for the tags.. Per the active schema, the element 'th' cannot be nested within 'thead' I dont know what i am doing wrong?? please help? (I have created a schema for my XML file) BTW tags are working fine. Cheers :)

    C# xml help database question

  • how to use "bgcolor"?
    I Imran Adam

    Thanks Pete!

    Cheers :)

    C# html help tutorial question

  • how to use "bgcolor"?
    I Imran Adam

    thanks!

    Cheers :)

    C# html help tutorial question

  • how to use "bgcolor"?
    I Imran Adam

    Thanks Ennis Ray Lynch, Jr. how would i use a css attribute? e.g. if i wanted to have a blue background on a field name. Id use something like bgcolor=blue. How to you do that with a css attribute??

    Cheers :)

    C# html help tutorial question

  • query check field which has a _
    I Imran Adam

    You could try and use the IsPunctuation method to check for a '_'.

    Cheers :)

    C# question database
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups