Search

You searched for the word(s): userid:780448

Matching Posts

  • Re: Use a label value in a javascript

    Hi, Use the innerText property. Please see the example code below <html xmlns="http://www.w3.org/1999/xhtml" > < head id= "Head1" runat= "server" > < title >Untitled Page</ title > < script type= "text/javascript" > function GetLabelValues() { var Name = document.getElementById(" <%= lblName.ClientID %> "); var Address = document.getElementById(" <%= lblAddress.ClientID %> "); alert(Name.innerText
    Posted to Client Side Web Development (Forum) by FarhanK on 5/30/2009
  • Re: Limit entry to a single text box

    Hi, Please try the code below. It uses javascript to fulfill your need. <html xmlns="http://www.w3.org/1999/xhtml"> < head runat= "server" > < title ></ title > < script type= "text/javascript" > function CheckEntry() { var objTxt_1 = document.getElementById(" <%= Txtbox_1.ClientID %> "); var objTxt_2 = document.getElementById(" <%= Txtbox_2.ClientID %> "); if (objTxt_1.value.toLowerCase() == objTxt_2.value
    Posted to Getting Started (Forum) by FarhanK on 5/25/2009
  • Re: query to XML file

    Hi, Please see the code below to generate the xml result of a query into a file. Just assign your query (With For XML Auto) to @Query variable. Switches used for BCP -U User ID (SQL Server) -P Password (SQL Server) -S Server Name (SQL Server) -- Code... Declare @Cmd Varchar(6000) Declare @Query Varchar(2000) Set @Query = 'Select * From TestDB..TempEmployee As [Store] For Xml Auto, Elements, Root(''Stores'')' Set @cmd = 'bcp "' + @Query + '" queryout '
  • Re: Group by function result

    Guys, I think you all have missed one this. First of all this query is not correct as FirstName, LastName and Time_Submitted columns are not included in group by clause so this query will result in error. A right query will be something like Select Count(id), Firstname, Lastname, Time_submitted, DATEPART(weekday, Time_Submitted) as DayOfWeek From This_Table Group by FirstName, LastName, Time_Submitted, DATEPART(weekday,time_submitted) But again I think this query will not be of use as it will probably
  • Re: Can I use a Session variable in a function

    Hi, I may be wrong but are you trying to use session variable in another class or code file besides the page? Try using the the line below... ConnectionString = System.Web.HttpContext.Current.Session("ConnectionString").ToString() Apologies if I am wrong....
    Posted to State Management (Forum) by FarhanK on 5/2/2009
  • Re: How to - Image Resizing with ASP.net C# - Help!

    Hi, Check this code for image resizing. ''' &lt;summary&gt; ''' Resizing code taken from http://www.codeproject.com/KB/GDI-plus/imageresize.aspx ''' </summary> ''' <param name="imageStream"></param> ''' <param name="width"></param> ''' <param name="height"></param> ''' <returns></returns> Private Function ResizeImage( ByVal
    Posted to Getting Started (Forum) by FarhanK on 3/4/2009
  • Re: please help to solve this query !!!

    Hi, Please run the query below in your query analyzer and check if this the desired result. Declare @Tab Table ( Id Int Identity (1,1), [Name] Varchar (100), [Address] Varchar (100), DateMoved DateTime ) Insert Into @Tab ([Name], [Address], DateMoved) Select 'xxx' , 'aa,sssss' , GetDate () - 10 Union Select 'xxx' , 'ab,sssss' , GetDate () - 10 Union Select 'xxx' , 'ac,sssss' , GetDate () - 10 Union Select 'yyy' , 'aa,bbbbb' , GetDate
  • Re: Query with COUNT(*) problem

    Hi Marko, I've created an example for you. All you have to do is to copy and paste the code below in the Query Analyzer and Execute (Press F5). Check out the results and let me know if this works for you. Basicall what you have asked for is a simple problem of pivoting. I've created temporary tables (in memory) for the problem you can use your original tables to check the solution. Declare @Customer Table ( CustomerId Int , CustomerName Varchar (100) ) Declare @Product Table ( ProductId Int
  • Re: Validation: if - then logic

    HI, You can call the focus() function of any control in that area. Check out the code below.. < html xmlns= "http://www.w3.org/1999/xhtml" > < head runat= "server" > < title >Untitled Page</ title > < script type= "text/javascript" > function ClientValidate(source, arguments) { var optLabInitiated = document.getElementById(" <%= radLABInitiated.ClientID %> "); var optCallerInitiated = document.getElementById(" <%
    Posted to Web Forms (Forum) by FarhanK on 11/25/2008
  • Re: Validation: if - then logic

    Hi, I believe what you are asking can be done with a custom validator. Please check out the code below. < html xmlns= "http://www.w3.org/1999/xhtml" > < head runat= "server" > < title >Untitled Page</ title > < script type= "text/javascript" > function ClientValidate(source, arguments) { var optLabInitiated = document.getElementById(" <%= radLABInitiated.ClientID %> "); var optCallerInitiated = document.getElementById("
    Posted to Web Forms (Forum) by FarhanK on 11/24/2008
Page 1 of 26 (254 items) 1 2 3 4 5 Next > ... Last »