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
R

Rahman Mahmoodi

@Rahman Mahmoodi
About
Posts
15
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Asp.net 2 - show webform as pop up form?
    R Rahman Mahmoodi

    Yes, Thank you. This one worked however the size is not working so it still shows the form as full screen but the max button is disabled.

    ASP.NET csharp asp-net algorithms question

  • Asp.net 2 - show webform as pop up form?
    R Rahman Mahmoodi

    Thank you, however I think I needed to provide bit more details in the first place ... ok, I have a page which is using a master page file. I want to click a button and then show another page eg 'popupform.aspx'. Can i call the code you provided from the code behinde of my original form? I kept it in the html portion as below: function ShowWindow() { window.open('mywindow','','formname.aspx',height='400',width='400') } asp:Button ID="Button1" runat="server" Text="Button" "OnClick"="ShowWindow" But it raises the error of: "Error 1 'ShowWindow' is not a member of 'ASP.getpostpage_aspx'." it looks like it down't like that javascript part. any ideas? PS: I kept onclcik inside double quites becuase it was not allowed in the message :) -- modified at 4:11 Friday 14th April, 2006

    ASP.NET csharp asp-net algorithms question

  • Asp.net 2 - show webform as pop up form?
    R Rahman Mahmoodi

    hello guys, i was wondering about the possibilities to show a web form as a pop up form (just for selection eg searching) and possibly get the ID of the selection when the user selects an item eg after search result Anyone ever tryed? thx

    ASP.NET csharp asp-net algorithms question

  • FTP put file doesn't work with Mainframe
    R Rahman Mahmoodi

    hello guys, I am having a VB6 COM FTP application that is being called by some VBScript. It works perfectly fine in Windows based ftp server. However, one of the client is trying to use it in IBM Mainframe box (don't know the version yet) but it doesn't work. connection to mainframe occurs ok however when trying to put the file to mainframe it doesn't work. The vb6 code is as below: In an ideal windows ftp environment I call it as: myFTP.PutRemoteFile("c:\test.txt", "", "/MyFTPFoder") and it works fine. However, the client has some funny naming convension of their mainframe file system. eg RemoteFolder is as F1.Test.ASL.Mne.FTS (they call it dataset)etc. my questions are: Is it a valid naming convension for the mainframe eg F1.Test.ASL.Mne.FTS?? or it needs to be mapped to a physical drive? Is there any reason the ftp shouldn't work in mainframe while working in windows? Thx Public Function PutRemoteFile(LocalFilename, RemoteFilename, RemoteFolder) As Boolean On Error GoTo handler Dim bRet As Boolean PutRemoteFile = False LocalFilename = Trim$(LocalFilename) RemoteFilename = Trim$(RemoteFilename) RemoteFolder = CStr(Trim(RemoteFolder)) ''''set the directory as per user's input and check if there is no error. If error returns false. If FtpSetCurrentDirectory(hConnection, RemoteFolder) = False Then Err.Raise vbObjectError, TypeName(Me), "Directory doesn't exist in Remote folder : " & ExtendedError(Err.LastDllError) PutRemoteFile = False Exit Function End If 'Is the local file set? If LocalFilename = "" Then Err.Raise vbObjectError, TypeName(Me), "LocalFilename is blank - it must refer to a valid local file" End If 'Does the local file actually exist? If (Not FS.FileExists(LocalFilename)) Then Err.Raise vbObjectError, TypeName(Me), "LocalFilename '" & LocalFilename & "' does not exist or the user context does not have read-access" End If 'Are we connected? If (Not Me.FTPServerIsOpen) Then Err.Raise vbObjectError, TypeName(Me), "Must call OpenFTPServer first" End If 'If it ends in \ then we assume the caller wants to use the same filename as the RemoteFilename RemoteFilename = Trim$(RemoteFilename) '''If remote file name doesn't exist assuming it will be same as local! If RemoteFilename = "" Then RemoteFilename = FS.GetFileName(LocalFilename) End If 'Some/most f

    COM com sysadmin help question

  • VB6 XML String parse
    R Rahman Mahmoodi

    hello guys, I am working on a COM object in vb 6 that is posting a URL to possibly a Web service. The result will be in the form of a xml format eg: " " "

    Visual Basic com xml

  • VB /VB.net Encryption component
    R Rahman Mahmoodi

    hello guys, I am looking for a free component which enables me to use encryption using vb6 preferabley DES or RSA or alternatively any other one will go. In case it is vb.net possibly would like to be able to call it from vb6/vbscript. any example, resources around? Any help will be appreciatd..

    Visual Basic csharp security help tutorial

  • Looping through the controls in webform? why this code doesn't work??
    R Rahman Mahmoodi

    Thanks for your help. Looks we posted at the same time ;-) I did it in the 2nd option looks though I still don't know the first option of yours. I am doing something like this for the first option: Dim frm As System.Web.UI.HtmlControls.HtmlForm For Each ctl In frm.Controls but it raises the null reference error? that is something you meant? TA

    ASP.NET winforms design help question

  • Looping through the controls in webform? why this code doesn't work??
    R Rahman Mahmoodi

    Ok, here we are!! I did as this and now it works though very funny! Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim ctl As Control Dim mychk As CheckBox For Each ctl In Me.Page.FindControl("Form1").Controls If (TypeOf ctl Is CheckBox) Then mychk = CType(ctl, CheckBox) If (mychk.Checked) Then Response.Write(mychk.Text) End If End If Next End Sub

    ASP.NET winforms design help question

  • Looping through the controls in webform? why this code doesn't work??
    R Rahman Mahmoodi

    Hello thanks for the reply and tips. So how can you make it work then? I couldn't find something like: Me.Page.htmlForm.Controls??? How can i loop through the HTMLForm Controls? many thanks

    ASP.NET winforms design help question

  • Looping through the controls in webform? why this code doesn't work??
    R Rahman Mahmoodi

    Hello guys, I want to loop through all the controls in the webform and see if there is any checkbox and if so see if they are selected or not. The code doesn't raise any error but doesn't do anything either. It works fine in Windows forms application!! Even i changed the variable types to System.Web.UI.Control and System.Web.UI.WebControls.CheckBox. Still does nothing. Can anyone make it working please?? Any tips? Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim ctl As Control Dim mychk As CheckBox ''Dim ctl As System.Web.UI.Control ''Dim mychk As System.Web.UI.WebControls.CheckBox For Each ctl In Me.Controls If (TypeOf ctl Is CheckBox) Then mychk = CType(ctl, CheckBox) If (mychk.Checked) Then Response.Write(mychk.Text) End If End If Next End Sub

    ASP.NET winforms design help question

  • Storing some info at textboxes!
    R Rahman Mahmoodi

    hello guys, I simply would like to store some details within the textboxes most preferably in design time (excluding ID) ... but can't find anything approperiate ... for example I want to store the Data Type of the textbox eg it is String, Number, Date, Boolean etc ... TextBoxes had Tag property but I can't find it. Anything to store to? Any better solutions? TA

    ASP.NET design tutorial question

  • Validating and redirecting using a class ...
    R Rahman Mahmoodi

    It is actually a class ... i think i mentioned clearly about it and it inherits from the System.Web.UI.Page ...

    ASP.NET design help

  • Validating and redirecting using a class ...
    R Rahman Mahmoodi

    hello guys, Just I was wondering why this code doesn't work. Basically, i have a class that inhirits from the System.web.ui.page ... just I am checking if the session is valid and if yes I redirect user to page requested else to the login page. However it raises error : Exception Details: System.Web.HttpException: Response is not available in this context. Source Error: Line 25: Response.Redirect(pageToVisit); Line 26: else Line 27: Response.Redirect("Login.aspx"); Line 28: } Line 29: My class is as below: using System; using System.Web; using System.Web.SessionState; using System.Web.UI; namespace MobileShop { /// /// Summary description for CheckLogin. /// public class CheckLogin: System.Web.UI.Page { } public void CheckLogins(string pageToVisit) { if (Session["Authenticated"]=="yes") Response.Redirect(pageToVisit); else Response.Redirect("Login.aspx"); }

    ASP.NET design help

  • To call Session_End when the user closes the browser window??
    R Rahman Mahmoodi

    Hi gufa, your suggestion looks very nice. However, wouldn't it be as a pop up window? How if the users has blocked pop up window? Can i do it someway transparents so users really don't know about it ...? sorry, i am not very good in javascript though can figure out what you mean. thanks

    ASP.NET question

  • To call Session_End when the user closes the browser window??
    R Rahman Mahmoodi

    Hi guys, I just want to do some clean up in the Session_End at Global.aspx. However, if the user closes the browser window that event is not fired. how can I call explicity protected void Session_End(Object sender, EventArgs e) when the user closes the browser window? I have a button that user can press logoff and I can abondan the session but if the user closes the window it doesn't fire. possible at all? -- modified at 1:42 Wednesday 14th September, 2005

    ASP.NET 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