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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

SABhatti

@SABhatti
About
Posts
330
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • hide documents
    S SABhatti

    Do not store the files in the directory instead store them in the database. Have a look [^]

    -----

    Web Development php sales tools help tutorial

  • assigning a value to serverside control
    S SABhatti

    you should avoid classic asp style... code. instead do this document.getElementById('textboxid').value = requiredvalue; where textboxid is client id of the the text box. if you do not know it, you can view it in view source code available in the browser..

    -----

    ASP.NET javascript sysadmin help

  • Crystal_Report
    S SABhatti

    I have converted this code from vb without testing, so please correct any syntax error ... DiskFileDestinationOptions DiskOpts = New DiskFileDestinationOptions(); // export options to hard disk // oReport is a ReportDocument oReport.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile; // export option TYPE oReport.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat; // PDF file location and filename DiskOpts.DiskFileName = ExportPath + requiredFilename; // Destination options oReport.ExportOptions.DestinationOptions = DiskOpts; // Export oReport.Export(); // clear cr viewer and report document crViewer.ReportSource = null; oReport.Dispose(); oReport = null; // do this if you want to give the option to save or download the file, other wise go to Response.Redirect line at the end Response.Clear(); Response.AppendHeader("Content-Disposition", "attachment; filename=filename.pdf"); Response.ContentType = "application/pdf"; Response.WriteFile(ExportPath + requiredFilename); Response.End(); // if you just want to open the the file then just do this and skip the above lines from Response.Clear to Response.End Response.Redirect(pdffilenameandpath, true);

    -----

    C# csharp question

  • Set the DropDownList AutoPostBack property for some items
    S SABhatti

    set the AutoPostBack property to FALSE for the dropdownlist (ddl). Create a javascript fucntion e.g. function ddlOnchange(selectedValue) { if(selectedValue == 'yourrequired value') document.formname.submit(); else return false; } and add onchange attribute to the ddl in code behind file e.g. ddl.Attributes.Add("onchange", "javascript:ddlOnchange(this.value);");

    -----

    ASP.NET question tutorial

  • Dropdown list issue in data grid
    S SABhatti

    Please check this article http://www.codeproject.com/aspnet/ScrollingGrid.asp

    -----

    ASP.NET css help database tutorial

  • Dropdown list issue in data grid
    S SABhatti

    I think you are using style sheet to fix the datagrid header. It is not possible to hide the drop down lists with just the z-index. Instead you have to use iframe to hide them. You will be setting the z-index for iframe greater than the drop down lists and z-index for your header row will be greater than the iframe. And then you will have to reposition/resize the iframe to go right beneath the header row. This way you will be able to hide the drop down lists. If I am getting you right then I will suggest to use a separate table with just one row on top of data grid. And then on load get the header row from data grid and add it to the table. I have done it this way. There is quite a lot of javascript involved to achieve this. But if you search online you should be able to find articles.

    -----

    ASP.NET css help database tutorial

  • How to call client-side Javascript function after an UpdatePanel asychronous (Ajax) request is over
    S SABhatti

    your post is ambiguous. Are you trying to ask or tell? If you are asking about how to call a javascript function after updating a update panel then use the scriptmanager e.g. ScriptManager.RegisterStartupScript(idOfTheUpdatepanel, GetType(UpdatePanel), "scriptkey", javascriptFunctionOrScriptToBeCalled, True);

    -----

    ASP.NET javascript php com sysadmin help

  • How to get text From Page1 to Page2?
    S SABhatti

    you can pass data between pages in multiple ways: 1. store the data in session and then redirect (response.redirect or server.transfer) to the next page and access the data from session. 2. you can pass data in query string 3. you can set postbackurl for the button and then access the values from the previous page using Request.Form like: in page 1 do this: <asp:Button ID="button1" Runat=server Text="submit" PostBackUrl="~/Page2.aspx" /> and then on page 2 use string field1data = Request.Form("fieldfrompage1"); `4. you can access the previous page controls using PreviousPage.Controls.. ----- `

    ASP.NET csharp asp-net com tutorial

  • Values on Form 2 appears on Form 1 !!!!
    S SABhatti

    thanks for your guidance...:-D:laugh: I did this but it gave me server error.. so the server at that time must have been busy..;P

    -----

    C#

  • Values on Form 2 appears on Form 1 !!!!
    S SABhatti

    Sorry I misunderstood your question, I was thinking about web form where you cannot have two forms on the page. And the forum is not letting me delete this message. -- modified at 15:55 Monday 26th November, 2007

    -----

    C#

  • How to know which tree view node on master page is clicked on the form level
    S SABhatti

    ss.mmm wrote:

    TreeNode _Del = new TreeNode(); _Del.Text = "Administrator"; _Del.NavigateUrl = "~\\Form1.aspx";

    as you are navigating to the same URL, so quick fix is to add a parameter in the URL like: _Del.NavigateUrl = "~\\Form1.aspx?node=1"; and _Del1.NavigateUrl = "~\\Form1.aspx?node=2"; and in the code you can show and hide the panels based on node.

    -----

    C# question data-structures help tutorial

  • Disabled/Read-Only Fields Color
    S SABhatti

    well don't disable it instead set readonly=true and then set the background color to whatever you want. I normally use LightGrey as background color which looks fine with black text. (I am referring to a web form text box not windows)

    -----

    C# question

  • Using Session Variable in Javascript Method.
    S SABhatti

    What are you really trying to do? You are in ASP.NET forum which means you have an idea how web forms works. So basically you add a ASP:Button in you page and onclientclick you call the javascript function, in that function you change the value of any hidden field or regular textbox and submit the form. And on server side you add the click handler to the button and in that eevnt handler you get the value of that field. Please go through quickstart tutorials[^] to understand the whole flow. e.g. you will call the following javascript function onclicentclick of the button: function TestOne() { // stringOne is asp:hidden field document.myform.stringOne.value = 'stringOne'; docuemt.myform.submit(); } and on server side in event handler for click event of button you will do this: Session["Test"] = stringOne.Value;

    -----

    ASP.NET javascript help

  • Using Session Variable in Javascript Method.
    S SABhatti

    Session is a Sever object not client, so you cannot access it in javascript code. You have to pass the string to the server either through querystring or through any form field and then get it on the server and add it to the session

    -----

    ASP.NET javascript help

  • Reading a multiline TextBox
    S SABhatti

    from the error it you are trying to save data that is larger than the allowed size in database. So either restrict the user to enter data for allowed size or increase the size in database.

    newbie.net wrote:

    Also while reading i need to read it as a ordered list..How can we do that?

    what you mean by "you want to read it as ordered list"?

    -----

    ASP.NET help database question

  • posting to confirmation page
    S SABhatti

    :-D nope I live in NY

    -----

    ASP.NET csharp question

  • Borders when embedding flash in a page
    S SABhatti

    Christian here is what you have to do, I have tested in IE: in your main page do this: <FRAMESET frameborder= "0 px" framespacing="0 px" Rows="217, *" > <FRAME name="xSelection" src="frame1.htm" scrolling="no" NORESIZE> <FRAME name="xIndividualStore" src="frame2.htm" scrolling="no" NORESIZE> </FRAMESET> Rows for the first frame should be fixed. you might have to test for the flash object by increasing and decreasing the number of rows until it fits the flash object. Rows for the second frame can be automatic. And top and bottom margins (margins in body tag of both pages) for frame1.htm and frame2.htm should be 0. This way you will get your required results. Make sure your flash object does not have any blank lines at the end.

    -----

    Web Development question c++ adobe hardware json

  • encrypt strings within web.config
    S SABhatti

    have a look here[^] or google results[^]

    -----

    ASP.NET tutorial csharp asp-net hosting help

  • posting to confirmation page
    S SABhatti

    use response.redirect to send the user to confirmation page after sending email

    -----

    ASP.NET csharp question

  • Finding an item in a listview
    S SABhatti

    have you googled it[^]

    -----

    C# question
  • Login

  • Don't have an account? Register

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