Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. Also in SQL Server if security is set to Integrated Windows Security you need to create the user in SQL Server and Windows.
  2. Use only one form but have 2 submit buttons, create OnClick functions for each button. Each function can process the parts of the form you need.<body><script runat="server" language="c#">private void Page_Load(){}private void Button1_Click(object sender, System.EventArgs e){...do something}private void Button2_Click(object sender, System.EventArgs e){...do something}</script>...<form runat="server">...form fields, etc<input type="button" value="Button 1" id="Button1" runat="server" OnServerClick="Button1_Click" /><input type="button" value="Button 2" id="Button2" runat="server" OnServerClick="Button2_Click" /></form></body>
  3. function load(file,target) { if(target != "") { target.window.location.href = file; } else { window.location.href = file; } } function wrapUp(url) { try { load(url,top.opener); window.close(); } catch(e) { alert(e.description); } }You may want to look into using hte Page_Load() function in your script then you can check for postback, on post back execute your function to update the users info and then use these lines after.Dim ScriptString As StringScriptString = "<script>wrapUp(ParentWindowURL);</script>"RegisterStartupScript("ScriptKey",ScriptString)Hope this helps
  4. aspnetguy

    CreateFolder

    FSO = Server.CreateObject("Scripting.FileSystemObject")Folder = FSO.CreateFolder("c:\" & Me.textbox1.Text & "_" &Me.textbox2.Text & "_" & newString)What is with the poll?
  5. aspnetguy

    Accessing SQL DB's

    CauseThis error usually happens on Windows NT, Windows 2000 or Windows XP and may be caused by any of the following conditions:- the database file or database folder doesn?t have necessary security permissions to write to, or erase an .ldb file created by Microsoft Access when opening the database- the database file doesn't have sufficient security permissions or write permissions to be modified when updating data in it. The web browser is seen by the web server as a Internet User that has the server account IUSR. This user needs to have write permission to the database file and to the database folder. ResolutionFollow these steps to resolve this issue:1. Use Windows Explorer to find the folder on the disk, which contains the database file (.mdb). This is usually your project folder.2. Right-click on the project folder and select Properties.3. Uncheck the Read-only property.4. Click on the Security tab in the properties window.(Attention: If you don't see such tab (Windows XP), close the properties window, open any folder, select Tools -> Folder Options -> View, and uncheck the option Use simple file sharing.)5. Click Add and find, then select the user IUSR_<COMPUTERNAME>.6. Select the Write checkbox in the Allow; column to assign Write permissions to the IUSR account. Hope this helpsJustin
×
×
  • Create New...