Quantcast
Channel: Off-Topic Posts (Do Not Post Here) forum
Viewing all 14169 articles
Browse latest View live

Would you consider this Legal downloads of windows 7?

$
0
0

http://www.pcsteps.com/45-download-windows-7-iso-legally-free/

I was looking around for downloads but can't find any on microsoft's website wanted to check if this was legal before i downloaded them. Thanks for your time guys


Linked Deployment Shares - MDT 2013

$
0
0

Hi All,

We're currently running MDT 2013 on a WS 2012 R2 Server. We have 3 linked deployment shares setup with other WS 2012 R2 Servers running MDT 2013 and i was wondering if there was a script/way to schedule the Linked Deployment Shares Sync?

I seen the below script posted but how would i schedule that to run?

https://gallery.technet.microsoft.com/scriptcenter/Replicate-Linked-bb17a9d6

ASP passing data from application to stored procedure

$
0
0

I have a gridview and has three columns only. one of these column has the campaignId. I am trying to pass the value from grid to stored procedure on clickbutton (stored procedure will insert data to different table once it recessives campaignId) . I am really stuck and I couldnt figure it out.

This is my class

      

using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Data.SqlTypes;
namespace SpecialmL
{
    public partial class Specialmail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ClientsConnectionString"].ConnectionString);
            SqlCommand comm = new SqlCommand();
            comm.CommandText = "sph_NonProfit_ReconMail_SingleCampaign2"; // stored procedure name
            comm.CommandType = CommandType.StoredProcedure;
            comm.Connection = conn;
            Button btn = (Button)sender;
            string CommandName = btn.CommandName;
            string CommandArgument = btn.CommandArgument;
        }
    }
}

and this is my aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Specialmail.aspx.cs" Inherits="SpecialmL.Specialmail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

  void CustomersGridView_SelectedIndexChanged(Object sender, EventArgs e)
  {
    // Get the currently selected row using the SelectedRow property.
    GridViewRow row = CustomersGridView.SelectedRow;
    
    // Display the first name from the selected row.
    // In this example, the third column (index 2) contains
    // the first name.
    MessageLabel.Text = "You selected " + row.Cells[2].Text + ".";
  }

  void CustomersGridView_SelectedIndexChanging(Object sender, GridViewSelectEventArgs e)
  {
    // Get the currently selected row. Because the SelectedIndexChanging event
    // occurs before the select operation in the GridView control, the
    // SelectedRow property cannot be used. Instead, use the Rows collection
    // and the NewSelectedIndex property of the e argument passed to this 
    // event handler.
    GridViewRow row = CustomersGridView.Rows[e.NewSelectedIndex];
    
    // You can cancel the select operation by using the Cancel
    // property. For this example, if the user selects a customer with 
    // the ID "ANATR", the select operation is canceled and an error message
    // is displayed.
    if (row.Cells[1].Text == "ANATR")
    {
      e.Cancel = true;
      MessageLabel.Text = "You cannot select " + row.Cells[2].Text + "."; 
    }
  }

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
  <head runat="server">
    <title>GridView Select Example</title>
</head>
<body>
    <form id="form1" runat="server">

     <h3>GridView Select Example</h3>

     <asp:gridview id="CustomersGridView" 
       datasourceid="CustomersSource" 
       autogeneratecolumns="False"
       autogenerateselectbutton="True"
       selectedindex="1"
       onselectedindexchanged="CustomersGridView_SelectedIndexChanged"
       onselectedindexchanging="CustomersGridView_SelectedIndexChanging"   
       runat="server" DataKeyNames="ID">

         <Columns>
             <asp:BoundField DataField="ID" 
                 HeaderText="ID" 
                 InsertVisible="False" ReadOnly="True" 
                 SortExpression="ID" />
             <asp:BoundField DataField="CustomData" 
                 HeaderText="CustomData" 
                 SortExpression="CustomData" />
             <asp:BoundField DataField="Name" 
                 HeaderText="Name" 
                 SortExpression="Name" />
             <asp:TemplateField>
        <ItemTemplate>
           <asp:Button ID="AddButton" runat="server" CommandName="AddToCart" 
               CommandArgument = "Button1"  OnClick = "Button1_Click"
                  Text='Submit'
                   />
        </ItemTemplate>
        </asp:TemplateField>

            </Columns>

       <selectedrowstyle backcolor="LightCyan"
         forecolor="DarkBlue"
         font-bold="true"/>  

     </asp:gridview>

      <br/>

      <asp:label id="MessageLabel"
        forecolor="Red"
        runat="server"/>

      <!-- This example uses Microsoft SQL Server and connects  -->
      <!-- to the sample database. Use an ASP.NET     -->
      <!-- expression to retrieve the connection string value   -->
      <!-- from the Web.config file.                            -->
        <asp:SqlDataSource ID="CustomersSource"
            SelectCommand="select customdata, name, ID from asdm.dbo.Campaigns where ExtraInfo = 'NPT'"
            ConnectionString='<%$ ConnectionStrings:ASDMConnectionString %>' runat="server" />
       
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ClientsConnectionString %>" SelectCommand="sph_NonProfit_ReconMail_SingleCampaign2" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="CustomersGridView" DefaultValue="" Name="CampaignId" PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>

    </form>
  </body>
</html>


Write Xml from asp.net to c directory

$
0
0

i want to use asp.net page with vb language to retrieve data from oracle, fill a data table and save the data to xml file and open it in excel

I have been able to save the file in xml format but getting problem with date formats "2015-06-25T00:00:00+04:00"

Is there a better way to do the above and get a correct format to open in excel.

Microsoft Edge - Glitch

$
0
0

Ok Edge is good but I have identified a glitch.

When you open edge the colour of the tab (at the top) and  your favourite tab is the light theme as selected...

but...

as you go to different websites it gets darker and darker until it is black with black text and you cant see it.

brgds

Rob

Scyn Of database

$
0
0
Ples can anyone help me on how to go about scyn a database, I develop a php website and the database is phpmy sql and I also made a desktop application using vb2010 and my database is sql server 2008, and I have hosted the phpmysql to a server and I want to use my offline application to store record so that after all I will just upload all record to the online database which is MySQL, ple if anyone can help me in this or a tutorial on how to go about it I will be a happy man.

ASP.NET MVC4 RAZOR INGEN

$
0
0


HELLO,,,,,

how to get ip & mac addresses clinet browser with rigester new account and store in the database by html helper ingen razor click

button event javascript function() -asp.net MVC4?

Thank you very match.

ماذا يحتاج الاعلام العراقي

$
0
0
بلنظر للتطور الحاصل في علم الاتصالات و الاهمية القصوى في تطوير المجتمعات على جميع المستويات الاقتصادية و السياسية و الاجتماعية .



لابد أن يرافق هذا التطور تطور ملموس في مجال الاعلام ليكون رافدآ حضاريآ و حيويآ في مواكبة التطور العلمي الحاصل في العالم و من أجل أن تتقدم المسيرة السياسية و الاقتصادية في العراق بعد مرحلة التغير نحو الديمقراطية .

لا بد أن يكون لنقابة الصحفيين دورآ مميزآ في خلق كوادر أعلامية و صحفية بمستوى هذا التطور و يكون رائدآ أساسيآ من أجل أن تكون العين الثاقبة لتشخصي المراحل الايجابية و معالجة السلبيات من أجل بناء وطن حر ديمقراطي و من هنا لا بد أن تتقدم النقابة بمشاريع من أجل بناء أولآ الصحفي بعيدآ عن الروتين الذي بني على ثلاث قرون مضية و تبتعد عن الولاءات الطائفية و الحزبية و الفئوية الطبقية .

و من أجل ذلك لا بد من أعداد برنامج لتطوير المهارات المهنية من أجل أستقصاء الاحداث و التطورات بشفافية عالية و أن يساهم المشاركين في هذا البرنامج في بناء وطن ضرب بثقافته أطناب الارض و أنتشر في عموم العالم .

أن التطور العلمي الحاصل في علوم الاتصال و نظرياته المتعددة يستوجب على كل صحفي أن يجيد أستخدام التكنلوجيا المتطورة في الانترنت و الحاسوب و كيفية أستخدامها بشكلها الصحيح و ذلك من أجل التوثيق لكل ما ينشر و ليكون مادة أرشيفية يستفاد منها الدارسون سواء كانوا في رسائلهم الجامعية أو حياتهم اليومية .

و لابد أ نستعرض بشكل موضوعي أن الغالبية العظمى من الصحفيين يفتقرون الى أستخدام مستلزمات العمل الصحفي الصحيح ، و ذلك لتأخر وصول معالم هذا التطور الى العراق .

أننا لا نريد أن نضع العراقيل أمام عمل الصحفي و لكن و بكل صراحة الذي لا يجيد أستخدام تلك التكنلوجيا لا يستطيع أن يؤدي عمله بشكله يستطيع من خلاله خدمة المسيرة بل سيكون عبئآ على المسيرة الاعلامية و الصحفية التي أصبحنا أوحج اليها من أي زمن مضى.

من اجل تطوير مجتمعنا الذي هو بأمس الحاجة الى معرفة ما يجري الى الساحة السياسية و الاقتصادية و ليكون عنصرآ فعالآ في بناء وطنه و تحصينه من الرياح العاتية التي تسير الاعلام العالمي من أجل تشويش أفكار المواطن العراقي و لابد أن يكون الصحفي الصمام الامين لمواجهة تلك التيارات الاعلامية التي لا ترغب أن ترى العراق حرآ ديمقراطيآ بجانب العمل في حياته السياسية و الاجتماعية و الاقتصادية شعوب الارض المتطورة و من هنا لا بد أن يتضمن البرنامج النقاط التالية :

1. تدريب الكادر الاداري في نقابة الصحفيين و فروعها في مختلف محافظات القطر من أجل معرفة الحاسوب و التوثيق الالكتروني.

2. التنسيق مع دوائر الدولة الرئيسية من أجل زج منتسبيهم الاعلامية للأستفاد و معرفة العمل الصحفي الرصين.

3. مشاركة الاعلامين في مؤسسات المجتمع المدني و المؤسسات الغير مرتبطة بالدولة في تلك الدورات و من أجل تطوير مهارتهم الصحفية .

4. مفاتحة وزارة العلوم و التكنلوجيا من أجل زج مجموعة من الصحفيين و على شكل وجبات من أجل تدريبهم في مركز تدريب على الحاسوب لمعرفة طرق أستخدام الحاسوب بغية الحصول على شهادة معترف بها من الناحية الادارية .

5. أعداد خطة عمل مع اتحاد الصحفيين الدولي ( الشرق الاوسط) لتدريب و تطوير مهارات الصحفيين في مجال مبادئ الصحافة الاستقصائية خارج القطر.

Error page

$
0
0

When I have custom error turned on for my site, and then try www.domain.com/robots.txt..// , it errors out to an error page which says 

Server Error in '/' Application.

Runtime Error

Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated. 

How can debug this error or fix it so that the standard error page shows up?

Thanks.

- Dhillip


Auto List Members In The VB Editor [Office 365 for Mac]

$
0
0

Hello all.

I was searching for "Auto List Members" functionality on my Office 365 for Mac for two days right now. I spoke with guys on tech support and no one can tell me does my version has this functionality or not and if it has where to turn in on.

Second thing is I don't have Properties window also. 

I'm starting with VBA after few years of doing something else and I can't visualize my work without this two things.


Thanks for any clues!

Changing Default DeflateMemLevel Using An Htaccess File.

$
0
0
How can I create an Htaccess file to change the deflate memory level which is 9 by default to an desired value on Apache web server. 

change fileupload tooltip

$
0
0

Hi, I want to change fileupload text in a asp.net project.

 <asp:FileUpload ID="fuDokuman" runat="server" CssClass="fileuploadstili" ToolTip = "Choose a file"/>

I write this code but does not work.

I prepare webconfig:

 <httpRuntime enableVersionHeader="true" maxUrlLength="10999" maxQueryStringLength="2097151" maxRequestLength="1048576" executionTimeout="525600" sendCacheControlHeader="true" enableKernelOutputCache="true" enableHeaderChecking="true" />

Fileupload text write default but I want to use another text actually I must write english my asp.net deafult turkish. How to overcome this problem?

Enable PowerShell remoting on new Azure VM?

$
0
0

I've created a new VM in Windows Azure to use to act as a host to learn a bit of Powershell Remoting. After the VM was created I RDP'd onto the box and enabled remoting via the following command:

> Enable-PSRemoting

I confirmed both prompts with 'a' replies and it finished without errors. If I run

> Get-PSSessionConfiguration

I can see that three endpoints (?) have been set up. In the Azure portal I can see that the Powershell port is open - both 5986 is open as a public and private port.

I've added the public IP address of the machine to my hosts file, but when I try the following:

> Enter-PSSession -ComputerName AZURESERVERNAME

I get an error:

Enter-PSSession : Connecting to remote server AZURESERVERNAME failed with the following error message : A specified logon session does not exist. It may already have been terminated. For more information, see the about_Remote_Troubleshooting Help topic. At line:1 char:1 + Enter-PSSession -ComputerName AZURESERVERNAME + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (AZURESERVERNAME:String) [Enter-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

I've also tried setting all hosts as trused as follows:
  > cd wsman::localhost\client
  > Set-Item .\TrustedHosts *
  > Restart-Service WinRM

But that doesn't seemed to have helped either.

Is there anything else I need to do to get this working?

Thanks

MSN/Outlook/Live Email Blocked

$
0
0
I switched my company servers to a new web hosting provider and it appears that the hosting providers network is blocked by Microsoft... I am a Microsoft partner and none of my emails can get to my customers on any of Microsoft emails. Please assist me with unblocking 8.38.78.62-8.38.78.63. Whatever caused block on that network was not me as I have just setup the mail server on new dedicated hosting machine yesterday. Previously on Hostgator108.179.205.134 and 108.179.205.224 if Microsoft wants to compare history of my mail. It is all either receipts for purchases or me contacting the customer which is not working at all now :(.

VS2015 web Publish using FTP does not work?

$
0
0
I try to publish my website using FTP method from within visual studio 2015 Pro. I then get the following error message in the output:

The components for communicating with FTP servers are not installed

Exactly the same project works in VS2013 to the same FTP server. Can anyone reproduce this ? What software do I need to install ?
When searching for this problem on Internet I only find strange solutions for VS2013 deinstalling Xamarin which I don't have installed.



How to implement google cloud print windows phone 8.1 winRT in wpf?

$
0
0
I have to print a file using google cloud print in windows 8.1 WinRT application.Help me to implement...

windows eight phone not connecting to the internet

$
0
0
my window 8 phone nokia lumia 635 is not connecting to the internet neither with wifi or the packet data so help

OAuth2 - User asked to Authorize multiple times

$
0
0
I'm writing an application to use the TFS RestAPI and am trying to figure out the OAuth2 flow. It seems to be working just fine, but every time I go to log in, I'm asked to Authorize my application rather than simply asked to log in again. What am I doing wrong? Should I be storing something locally? What should I be sending in my subsequent requests to keep from having to authorize every time I want to log into my application?

Avast Anti-Virus prevents to send emails time to time

$
0
0

Avast Anti-Virus prevents to send emails time to time, it occurred on a computer in my home network, and then on the other one. This Avast does not issue any messages, just emails remain in the Outbox and do not appear in Sent items.

I know three ways to send emails in this situation. All this three ways are bad.

  1) Exclusion of scanning outgoing emails in the avast settings. This is bad, since sending emails goes unchecked.

  2) Exclusion of checking port 80 in the avast settings. I found it here -https://forum.avast.com/?topic=143284.0 There is explanation there, why it is bad.

  3) Restart of the computer, just after restarting outgoing emails go normally.

My post app is Live Mail 2012 (Build 16.4.3528.0331). 

Can somebody explain this? 

Dota

$
0
0
ISHOD 7--


--Prljavo čitanje
--1. Prva transakcija promijeni vrijednost retka
--2. Druga transakcija pročita tu vrijednost – prljavo čitanje
--3. Prva transakcija odustan


--Ovo se Događa ako jedna transakcija pristupa podacima koji su pod drugom
--Transakcijom.

--Rijesavamo Ga -- podizanjem izolacijskog nivoa barem na READ COMMITTED.


-----------------

alter proc p3
  @IDkomercijalist int
  as
  delete from Komercijalist where IDKomercijalist=@IDkomercijalist
  go
  BEGIN TRY
    BEGIN TRAN
        EXEC p3 275
        EXEC p3 276
        EXEC p3 277
    COMMIT TRAN
    PRINT 'Brisanje uspješno'
END TRY
BEGIN CATCH
    ROLLBACK TRAN
    PRINT 'Greška pri brisanju'
END CATCH
GO


-------------------------ISHOD 6--------------------
create type drzavagrad as table
(
Drzava nvarchar(50),
Grad nvarchar(50)

alter proc karloubacujedrugiput
@grad xml
as
insert into Drzava(Naziv)
select

tabela.porat.value('@Naziv','nvarchar(50)')
from @grad.nodes('/Drzava') as tabela(porat)

insert into Grad(Naziv)
select
tabela.porat.value('.','nvarchar(50)')
from @grad.nodes('/Drzava/Grad') as tabela(porat)
go

declare @karlokozul xml ='<Drzava Naziv = "Hrvatska">
<Grad>Bjelovar</Grad>
<Grad>Vinkovci</Grad>
<Grad>Slavoska barka</Grad>
</Drzava>'
exec karloubacujedrugiput @karlokozul

select * from Drzava

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------


CREATE TYPE Kupac AS TABLE
(
    Ime nvarchar(50),
    Prezime nvarchar(50),
    Email nvarchar(50),
    Telefon nvarchar(25)
    
)
GO

alter PROC UmetniKupce
    @Kupac Kupac READONLY
AS
INSERT INTO Kupac(Ime,Prezime,Email,Telefon)
SELECT Ime,Prezime,Email,Telefon FROM @Kupac
GO

DECLARE @k Kupac
INSERT INTO @k(Ime,Prezime,Email,Telefon) VALUES ('Karlo','SADA','ASDA','2323')
INSERT INTO @k(Ime,Prezime,Email,Telefon) VALUES ('Karlo','SADA','ASDA','2323')


EXEC UmetniKupce @k

SELECT * FROM Kupac    
GO

-----------------------------------ISHOD 3---------------
USE AdventureWorksOBP

DBCC TRACEON (3604)
GO
DBCC IND ('AdventureWorksOBP',racun,1)
--pod--200
---index-1


DBCC PAGE ('AdventureWorksOBP',1,1040,3)with tableresults
--prvi 43659
----zadnji 43816




--na 1071

insert into Racun(BrojRacuna,DatumIzdavanja,KupacID)
values ('232323',12-08-1989,4)



--na 1040

SET STATISTICS IO ON

select IDkupac
from Kupac
where Prezime = 'Adamas'
and GradID =9

create nonclustered  index i5 on Kupac(IDKupac)
create nonclustered  index i6 on Kupac(GradID)

select IDkupac
from Kupac
where Prezime = 'Adamas'
and GradID =9




drop index Kupac.i3
drop index Kupac.i1


select IDKupac,ime,Prezime
from Kupac
where prezime like 'A%'
and gradID =9


create nonclustered index Indkup on Kupac(IDkupac)
include(Prezime)
create nonclustered index Indkup2 on Kupac(GradID)
include(ime)


----------------------------ISHOD 4-----------------------
create proc p1

@Naziv nvarchar(50),
@IDdrzava int output
as
insert into Grad(naziv,DrzavaID)
values(@Naziv,@IDdrzava)

exec p1 'naziv',2
exec p2 'naziv',2



go
CREATE PROC CRUD
    @Operacija char(1),
    @IDStudent int OUTPUT,
    @Ime nvarchar(50),
    @Prezime nvarchar(50),
    @JMBAG char(11)
AS
IF @Operacija = 'U'
    UPDATE Student
    SET Ime = @Ime, Prezime = @Prezime, JMBAG = @JMBAG
    WHERE IDStudent = @IDStudent
ELSE IF @Operacija = 'I' BEGIN
    INSERT INTO Student (Ime, Prezime, JMBAG) VALUES (@Ime, @Prezime, @JMBAG)
    SET @IDStudent = SCOPE_IDENTITY()
END
ELSE IF @Operacija = 'D'
    DELETE FROM Student WHERE IDStudent = @IDStudent


    exec CRUD 'U',5,'DJURO','DJURIC','a'
        exec CRUD 'D',5,'DJURO','DJURIC','a'
            exec CRUD 'I',5,'DJURO','DJURIC','a'
                
                


-------ISHOD 5------------
CREATE TABLE Zapisnik
(
    IDZapisnik int IDENTITY(1,1) PRIMARY KEY,
    Poruka nvarchar(max),
    Vrijeme datetime DEFAULT getdate()
)


go
alter trigger triger on Drzava after insert,update,delete

AS
  DECLARE @naziv nvarchar(50)
   SELECT @naziv=IDDrzava from inserted
 
IF EXISTS(SELECT * FROM inserted) AND NOT EXISTS(SELECT * FROM deleted)
BEGIN

insert into Zapisnik(Sadrzaj) values ('Umetnut je novi redak s IDDrzava :' + @naziv + '"')

END
ELSE IF NOT EXISTS(SELECT * FROM inserted) AND EXISTS(SELECT * FROM deleted)
BEGIN

insert into Zapisnik(Sadrzaj) values ('Obrisan je redak s IDDrzava :' + @naziv + '"')
END
ELSE IF EXISTS(SELECT * FROM inserted) AND EXISTS(SELECT * FROM deleted) BEGIN

insert into Zapisnik(Sadrzaj) values ('Primijenjen je redak s IDDrzava : '+ @naziv + '"')
end
go
select * from Zapisnik
insert into Drzava(Naziv) values('Kasokasapa')
delete  from Drzava where Naziv = 'Kasokasapa'
select * from Drzava
go


------------------------------------------------

alter trigger trigiii on KreditnaKartica after update
as
declare @istekgodina int
declare @istekmjesec int
select  @istekgodina=IstekGodina from inserted
select  @istekmjesec=IstekMjesec from inserted

IF EXISTS(select @istekgodina) AND EXISTS(select @istekmjesec)
BEGIN
insert into Zapisnik1(Sadrzaj) values ('Primijenjen trajanje više kartica : ')
end
go

update KreditnaKartica
set tip='American', Broj='102102',IstekGodina=2015
where IDKreditnaKartica=2
Viewing all 14169 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>